[2025-03-28 00:00:05] Production.INFO: next invoice date [2025-03-28 00:00:05] Production.INFO: 2025-04-28 [2025-03-28 00:00:05] Production.INFO: getdaysdiff [2025-03-28 00:00:05] Production.INFO: +31 [2025-03-28 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (103,10,2,31,31,'RMScheduler',2025-03-28 00:00:05,1,0,,,0) [2025-03-28 00:00:05] Production.INFO: next invoice date [2025-03-28 00:00:05] Production.INFO: 2025-04-28 [2025-03-28 00:00:05] Production.INFO: getdaysdiff [2025-03-28 00:00:05] Production.INFO: +31 [2025-03-28 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (103,16,1,31,31,'RMScheduler',2025-03-28 00:00:05,1,0,,,0) [2025-03-28 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:00:06 [end_date_ymd] => 2025-03-28 00:00:06 [RateCDR] => 1 ) [2025-03-28 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-27 21:00:06' and `end` < '2025-03-28 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-28 00:00:19] Production.INFO: count ==1553 [2025-03-28 00:00:20] Production.ERROR: pbx CDR StartTime 2025-03-27 21:00:06 - End Time 2025-03-28 00:00:06 [2025-03-28 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777690', 'tblTempUsageDetail_20' ) start [2025-03-28 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777690', 'tblTempUsageDetail_20' ) end [2025-03-28 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777690', 'tblTempVendorCDR_20' ) start [2025-03-28 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777690', 'tblTempVendorCDR_20' ) end [2025-03-28 00:00:20] Production.INFO: ProcessCDR(1,14777690,1,1,2) [2025-03-28 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777690', 'tblTempUsageDetail_20' ) start [2025-03-28 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777690', 'tblTempUsageDetail_20' ) end [2025-03-28 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:00:24] Production.INFO: ==25469== Releasing lock... [2025-03-28 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:00:24] Production.INFO: 41 MB #Memory Used# [2025-03-28 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:01:06 [end_date_ymd] => 2025-03-28 00:01:06 [RateCDR] => 1 ) [2025-03-28 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-27 21:01:06' and `end` < '2025-03-28 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-28 00:01:21] Production.INFO: count ==1083 [2025-03-28 00:01:22] Production.ERROR: pbx CDR StartTime 2025-03-27 21:01:06 - End Time 2025-03-28 00:01:06 [2025-03-28 00:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777696', 'tblTempUsageDetail_20' ) start [2025-03-28 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777696', 'tblTempUsageDetail_20' ) end [2025-03-28 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777696', 'tblTempVendorCDR_20' ) start [2025-03-28 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777696', 'tblTempVendorCDR_20' ) end [2025-03-28 00:01:22] Production.INFO: ProcessCDR(1,14777696,1,1,2) [2025-03-28 00:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777696', 'tblTempUsageDetail_20' ) start [2025-03-28 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777696', 'tblTempUsageDetail_20' ) end [2025-03-28 00:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:01:27] Production.INFO: ==25561== Releasing lock... [2025-03-28 00:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:01:27] Production.INFO: 37 MB #Memory Used# [2025-03-28 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:02:05 [end_date_ymd] => 2025-03-28 00:02:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:02:05' and `end` < '2025-03-28 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-28 00:02:18] Production.INFO: count ==1085 [2025-03-28 00:02:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:02:05 - End Time 2025-03-28 00:02:05 [2025-03-28 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777701', 'tblTempUsageDetail_20' ) start [2025-03-28 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777701', 'tblTempUsageDetail_20' ) end [2025-03-28 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777701', 'tblTempVendorCDR_20' ) start [2025-03-28 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777701', 'tblTempVendorCDR_20' ) end [2025-03-28 00:02:19] Production.INFO: ProcessCDR(1,14777701,1,1,2) [2025-03-28 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777701', 'tblTempUsageDetail_20' ) start [2025-03-28 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777701', 'tblTempUsageDetail_20' ) end [2025-03-28 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:02:22] Production.INFO: ==25636== Releasing lock... [2025-03-28 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:02:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:03:05 [end_date_ymd] => 2025-03-28 00:03:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:03:05' and `end` < '2025-03-28 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-28 00:03:18] Production.INFO: count ==1102 [2025-03-28 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:03:05 - End Time 2025-03-28 00:03:05 [2025-03-28 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777706', 'tblTempUsageDetail_20' ) start [2025-03-28 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777706', 'tblTempUsageDetail_20' ) end [2025-03-28 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777706', 'tblTempVendorCDR_20' ) start [2025-03-28 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777706', 'tblTempVendorCDR_20' ) end [2025-03-28 00:03:19] Production.INFO: ProcessCDR(1,14777706,1,1,2) [2025-03-28 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777706', 'tblTempUsageDetail_20' ) start [2025-03-28 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777706', 'tblTempUsageDetail_20' ) end [2025-03-28 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:03:22] Production.INFO: ==25708== Releasing lock... [2025-03-28 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:03:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-28 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:04:05 [end_date_ymd] => 2025-03-28 00:04:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:04:05' and `end` < '2025-03-28 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-28 00:04:23] Production.INFO: count ==1104 [2025-03-28 00:04:24] Production.ERROR: pbx CDR StartTime 2025-03-27 21:04:05 - End Time 2025-03-28 00:04:05 [2025-03-28 00:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777711', 'tblTempUsageDetail_20' ) start [2025-03-28 00:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777711', 'tblTempUsageDetail_20' ) end [2025-03-28 00:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777711', 'tblTempVendorCDR_20' ) start [2025-03-28 00:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777711', 'tblTempVendorCDR_20' ) end [2025-03-28 00:04:24] Production.INFO: ProcessCDR(1,14777711,1,1,2) [2025-03-28 00:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777711', 'tblTempUsageDetail_20' ) start [2025-03-28 00:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777711', 'tblTempUsageDetail_20' ) end [2025-03-28 00:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:04:27] Production.INFO: ==25784== Releasing lock... [2025-03-28 00:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:04:27] Production.INFO: 37.75 MB #Memory Used# [2025-03-28 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:05:05 [end_date_ymd] => 2025-03-28 00:05:05 [RateCDR] => 1 ) [2025-03-28 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:05:05' and `end` < '2025-03-28 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:05:32] Production.INFO: count ==1105 [2025-03-28 00:05:33] Production.ERROR: pbx CDR StartTime 2025-03-27 21:05:05 - End Time 2025-03-28 00:05:05 [2025-03-28 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777716', 'tblTempUsageDetail_20' ) start [2025-03-28 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777716', 'tblTempUsageDetail_20' ) end [2025-03-28 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777716', 'tblTempVendorCDR_20' ) start [2025-03-28 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777716', 'tblTempVendorCDR_20' ) end [2025-03-28 00:05:33] Production.INFO: ProcessCDR(1,14777716,1,1,2) [2025-03-28 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777716', 'tblTempUsageDetail_20' ) start [2025-03-28 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777716', 'tblTempUsageDetail_20' ) end [2025-03-28 00:05:37] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:05:37] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:05:37] Production.INFO: ==25860== Releasing lock... [2025-03-28 00:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:05:37] Production.INFO: 36.75 MB #Memory Used# [2025-03-28 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:06:06 [end_date_ymd] => 2025-03-28 00:06:06 [RateCDR] => 1 ) [2025-03-28 00:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:06:06' and `end` < '2025-03-28 00:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:06:29] Production.INFO: count ==1108 [2025-03-28 00:06:29] Production.ERROR: pbx CDR StartTime 2025-03-27 21:06:06 - End Time 2025-03-28 00:06:06 [2025-03-28 00:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777721', 'tblTempUsageDetail_20' ) start [2025-03-28 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777721', 'tblTempUsageDetail_20' ) end [2025-03-28 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777721', 'tblTempVendorCDR_20' ) start [2025-03-28 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777721', 'tblTempVendorCDR_20' ) end [2025-03-28 00:06:29] Production.INFO: ProcessCDR(1,14777721,1,1,2) [2025-03-28 00:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777721', 'tblTempUsageDetail_20' ) start [2025-03-28 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777721', 'tblTempUsageDetail_20' ) end [2025-03-28 00:06:33] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:06:33] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:06:33] Production.INFO: ==25938== Releasing lock... [2025-03-28 00:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:06:33] Production.INFO: 36.75 MB #Memory Used# [2025-03-28 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:07:05 [end_date_ymd] => 2025-03-28 00:07:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:07:05' and `end` < '2025-03-28 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-28 00:07:28] Production.INFO: count ==1115 [2025-03-28 00:07:29] Production.ERROR: pbx CDR StartTime 2025-03-27 21:07:05 - End Time 2025-03-28 00:07:05 [2025-03-28 00:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777726', 'tblTempUsageDetail_20' ) start [2025-03-28 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777726', 'tblTempUsageDetail_20' ) end [2025-03-28 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777726', 'tblTempVendorCDR_20' ) start [2025-03-28 00:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777726', 'tblTempVendorCDR_20' ) end [2025-03-28 00:07:29] Production.INFO: ProcessCDR(1,14777726,1,1,2) [2025-03-28 00:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777726', 'tblTempUsageDetail_20' ) start [2025-03-28 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777726', 'tblTempUsageDetail_20' ) end [2025-03-28 00:07:33] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:07:33] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:07:34] Production.INFO: ==26011== Releasing lock... [2025-03-28 00:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:07:34] Production.INFO: 37.75 MB #Memory Used# [2025-03-28 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:08:06 [end_date_ymd] => 2025-03-28 00:08:06 [RateCDR] => 1 ) [2025-03-28 00:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:08:06' and `end` < '2025-03-28 00:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:08:21] Production.INFO: count ==1113 [2025-03-28 00:08:22] Production.ERROR: pbx CDR StartTime 2025-03-27 21:08:06 - End Time 2025-03-28 00:08:06 [2025-03-28 00:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777731', 'tblTempUsageDetail_20' ) start [2025-03-28 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777731', 'tblTempUsageDetail_20' ) end [2025-03-28 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777731', 'tblTempVendorCDR_20' ) start [2025-03-28 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777731', 'tblTempVendorCDR_20' ) end [2025-03-28 00:08:22] Production.INFO: ProcessCDR(1,14777731,1,1,2) [2025-03-28 00:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777731', 'tblTempUsageDetail_20' ) start [2025-03-28 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777731', 'tblTempUsageDetail_20' ) end [2025-03-28 00:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:08:26] Production.INFO: ==26086== Releasing lock... [2025-03-28 00:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:08:26] Production.INFO: 37.75 MB #Memory Used# [2025-03-28 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:09:05 [end_date_ymd] => 2025-03-28 00:09:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:09:05' and `end` < '2025-03-28 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-28 00:09:18] Production.INFO: count ==1110 [2025-03-28 00:09:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:09:05 - End Time 2025-03-28 00:09:05 [2025-03-28 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777736', 'tblTempUsageDetail_20' ) start [2025-03-28 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777736', 'tblTempUsageDetail_20' ) end [2025-03-28 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777736', 'tblTempVendorCDR_20' ) start [2025-03-28 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777736', 'tblTempVendorCDR_20' ) end [2025-03-28 00:09:19] Production.INFO: ProcessCDR(1,14777736,1,1,2) [2025-03-28 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777736', 'tblTempUsageDetail_20' ) start [2025-03-28 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777736', 'tblTempUsageDetail_20' ) end [2025-03-28 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:09:22] Production.INFO: ==26162== Releasing lock... [2025-03-28 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:09:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:10:06 [end_date_ymd] => 2025-03-28 00:10:06 [RateCDR] => 1 ) [2025-03-28 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-27 21:10:06' and `end` < '2025-03-28 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-28 00:10:19] Production.INFO: count ==1113 [2025-03-28 00:10:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:10:06 - End Time 2025-03-28 00:10:06 [2025-03-28 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777742', 'tblTempUsageDetail_20' ) start [2025-03-28 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777742', 'tblTempUsageDetail_20' ) end [2025-03-28 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777742', 'tblTempVendorCDR_20' ) start [2025-03-28 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777742', 'tblTempVendorCDR_20' ) end [2025-03-28 00:10:19] Production.INFO: ProcessCDR(1,14777742,1,1,2) [2025-03-28 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777742', 'tblTempUsageDetail_20' ) start [2025-03-28 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777742', 'tblTempUsageDetail_20' ) end [2025-03-28 00:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:10:24] Production.INFO: ==26277== Releasing lock... [2025-03-28 00:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:10:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:11:06 [end_date_ymd] => 2025-03-28 00:11:06 [RateCDR] => 1 ) [2025-03-28 00: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-27 21:11:06' and `end` < '2025-03-28 00: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-28 00:11:19] Production.INFO: count ==1136 [2025-03-28 00:11:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:11:06 - End Time 2025-03-28 00:11:06 [2025-03-28 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777747', 'tblTempUsageDetail_20' ) start [2025-03-28 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777747', 'tblTempUsageDetail_20' ) end [2025-03-28 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777747', 'tblTempVendorCDR_20' ) start [2025-03-28 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777747', 'tblTempVendorCDR_20' ) end [2025-03-28 00:11:19] Production.INFO: ProcessCDR(1,14777747,1,1,2) [2025-03-28 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777747', 'tblTempUsageDetail_20' ) start [2025-03-28 00:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777747', 'tblTempUsageDetail_20' ) end [2025-03-28 00:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:11:24] Production.INFO: ==26356== Releasing lock... [2025-03-28 00:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:11:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:12:05 [end_date_ymd] => 2025-03-28 00:12:05 [RateCDR] => 1 ) [2025-03-28 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:12:05' and `end` < '2025-03-28 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:12:18] Production.INFO: count ==1148 [2025-03-28 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:12:05 - End Time 2025-03-28 00:12:05 [2025-03-28 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777752', 'tblTempUsageDetail_20' ) start [2025-03-28 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777752', 'tblTempUsageDetail_20' ) end [2025-03-28 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777752', 'tblTempVendorCDR_20' ) start [2025-03-28 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777752', 'tblTempVendorCDR_20' ) end [2025-03-28 00:12:18] Production.INFO: ProcessCDR(1,14777752,1,1,2) [2025-03-28 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777752', 'tblTempUsageDetail_20' ) start [2025-03-28 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777752', 'tblTempUsageDetail_20' ) end [2025-03-28 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:12:22] Production.INFO: ==26430== Releasing lock... [2025-03-28 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:12:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:13:05 [end_date_ymd] => 2025-03-28 00:13:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:13:05' and `end` < '2025-03-28 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-28 00:13:18] Production.INFO: count ==1150 [2025-03-28 00:13:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:13:05 - End Time 2025-03-28 00:13:05 [2025-03-28 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777757', 'tblTempUsageDetail_20' ) start [2025-03-28 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777757', 'tblTempUsageDetail_20' ) end [2025-03-28 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777757', 'tblTempVendorCDR_20' ) start [2025-03-28 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777757', 'tblTempVendorCDR_20' ) end [2025-03-28 00:13:19] Production.INFO: ProcessCDR(1,14777757,1,1,2) [2025-03-28 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777757', 'tblTempUsageDetail_20' ) start [2025-03-28 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777757', 'tblTempUsageDetail_20' ) end [2025-03-28 00:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:13:23] Production.INFO: ==26504== Releasing lock... [2025-03-28 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:13:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-28 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:14:05 [end_date_ymd] => 2025-03-28 00:14:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:14:05' and `end` < '2025-03-28 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-28 00:14:17] Production.INFO: count ==1150 [2025-03-28 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:14:05 - End Time 2025-03-28 00:14:05 [2025-03-28 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777762', 'tblTempUsageDetail_20' ) start [2025-03-28 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777762', 'tblTempUsageDetail_20' ) end [2025-03-28 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777762', 'tblTempVendorCDR_20' ) start [2025-03-28 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777762', 'tblTempVendorCDR_20' ) end [2025-03-28 00:14:18] Production.INFO: ProcessCDR(1,14777762,1,1,2) [2025-03-28 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777762', 'tblTempUsageDetail_20' ) start [2025-03-28 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777762', 'tblTempUsageDetail_20' ) end [2025-03-28 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:14:21] Production.INFO: ==26577== Releasing lock... [2025-03-28 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:14:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-28 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:15:05 [end_date_ymd] => 2025-03-28 00:15:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:15:05' and `end` < '2025-03-28 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-28 00:15:18] Production.INFO: count ==1150 [2025-03-28 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:15:05 - End Time 2025-03-28 00:15:05 [2025-03-28 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777767', 'tblTempUsageDetail_20' ) start [2025-03-28 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777767', 'tblTempUsageDetail_20' ) end [2025-03-28 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777767', 'tblTempVendorCDR_20' ) start [2025-03-28 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777767', 'tblTempVendorCDR_20' ) end [2025-03-28 00:15:18] Production.INFO: ProcessCDR(1,14777767,1,1,2) [2025-03-28 00:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777767', 'tblTempUsageDetail_20' ) start [2025-03-28 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777767', 'tblTempUsageDetail_20' ) end [2025-03-28 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:15:22] Production.INFO: ==26653== Releasing lock... [2025-03-28 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:15:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:16:05 [end_date_ymd] => 2025-03-28 00:16:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:16:05' and `end` < '2025-03-28 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-28 00:16:18] Production.INFO: count ==1146 [2025-03-28 00:16:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:16:05 - End Time 2025-03-28 00:16:05 [2025-03-28 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777772', 'tblTempUsageDetail_20' ) start [2025-03-28 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777772', 'tblTempUsageDetail_20' ) end [2025-03-28 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777772', 'tblTempVendorCDR_20' ) start [2025-03-28 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777772', 'tblTempVendorCDR_20' ) end [2025-03-28 00:16:18] Production.INFO: ProcessCDR(1,14777772,1,1,2) [2025-03-28 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777772', 'tblTempUsageDetail_20' ) start [2025-03-28 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777772', 'tblTempUsageDetail_20' ) end [2025-03-28 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:16:22] Production.INFO: ==26725== Releasing lock... [2025-03-28 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:16:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:17:06 [end_date_ymd] => 2025-03-28 00:17:06 [RateCDR] => 1 ) [2025-03-28 00: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-27 21:17:06' and `end` < '2025-03-28 00: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-28 00:17:18] Production.INFO: count ==1142 [2025-03-28 00:17:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:17:06 - End Time 2025-03-28 00:17:06 [2025-03-28 00:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777777', 'tblTempUsageDetail_20' ) start [2025-03-28 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777777', 'tblTempUsageDetail_20' ) end [2025-03-28 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777777', 'tblTempVendorCDR_20' ) start [2025-03-28 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777777', 'tblTempVendorCDR_20' ) end [2025-03-28 00:17:19] Production.INFO: ProcessCDR(1,14777777,1,1,2) [2025-03-28 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777777', 'tblTempUsageDetail_20' ) start [2025-03-28 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777777', 'tblTempUsageDetail_20' ) end [2025-03-28 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:17:22] Production.INFO: ==26801== Releasing lock... [2025-03-28 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:17:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:18:05 [end_date_ymd] => 2025-03-28 00:18:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:18:05' and `end` < '2025-03-28 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-28 00:18:17] Production.INFO: count ==1128 [2025-03-28 00:18:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:18:05 - End Time 2025-03-28 00:18:05 [2025-03-28 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777782', 'tblTempUsageDetail_20' ) start [2025-03-28 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777782', 'tblTempUsageDetail_20' ) end [2025-03-28 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777782', 'tblTempVendorCDR_20' ) start [2025-03-28 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777782', 'tblTempVendorCDR_20' ) end [2025-03-28 00:18:18] Production.INFO: ProcessCDR(1,14777782,1,1,2) [2025-03-28 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777782', 'tblTempUsageDetail_20' ) start [2025-03-28 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777782', 'tblTempUsageDetail_20' ) end [2025-03-28 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:18:21] Production.INFO: ==26882== Releasing lock... [2025-03-28 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:18:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:19:06 [end_date_ymd] => 2025-03-28 00:19:06 [RateCDR] => 1 ) [2025-03-28 00:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:19:06' and `end` < '2025-03-28 00:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:19:18] Production.INFO: count ==1135 [2025-03-28 00:19:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:19:06 - End Time 2025-03-28 00:19:06 [2025-03-28 00:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777787', 'tblTempUsageDetail_20' ) start [2025-03-28 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777787', 'tblTempUsageDetail_20' ) end [2025-03-28 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777787', 'tblTempVendorCDR_20' ) start [2025-03-28 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777787', 'tblTempVendorCDR_20' ) end [2025-03-28 00:19:19] Production.INFO: ProcessCDR(1,14777787,1,1,2) [2025-03-28 00:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777787', 'tblTempUsageDetail_20' ) start [2025-03-28 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777787', 'tblTempUsageDetail_20' ) end [2025-03-28 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:19:22] Production.INFO: ==26964== Releasing lock... [2025-03-28 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:19:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:20:05 [end_date_ymd] => 2025-03-28 00:20:05 [RateCDR] => 1 ) [2025-03-28 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:20:05' and `end` < '2025-03-28 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-28 00:20:18] Production.INFO: count ==1143 [2025-03-28 00:20:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:20:05 - End Time 2025-03-28 00:20:05 [2025-03-28 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777793', 'tblTempUsageDetail_20' ) start [2025-03-28 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777793', 'tblTempUsageDetail_20' ) end [2025-03-28 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777793', 'tblTempVendorCDR_20' ) start [2025-03-28 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777793', 'tblTempVendorCDR_20' ) end [2025-03-28 00:20:19] Production.INFO: ProcessCDR(1,14777793,1,1,2) [2025-03-28 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777793', 'tblTempUsageDetail_20' ) start [2025-03-28 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777793', 'tblTempUsageDetail_20' ) end [2025-03-28 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:20:22] Production.INFO: ==27051== Releasing lock... [2025-03-28 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:20:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-28 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:21:05 [end_date_ymd] => 2025-03-28 00:21:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:21:05' and `end` < '2025-03-28 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-28 00:21:18] Production.INFO: count ==1154 [2025-03-28 00:21:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:21:05 - End Time 2025-03-28 00:21:05 [2025-03-28 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777798', 'tblTempUsageDetail_20' ) start [2025-03-28 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777798', 'tblTempUsageDetail_20' ) end [2025-03-28 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777798', 'tblTempVendorCDR_20' ) start [2025-03-28 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777798', 'tblTempVendorCDR_20' ) end [2025-03-28 00:21:18] Production.INFO: ProcessCDR(1,14777798,1,1,2) [2025-03-28 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777798', 'tblTempUsageDetail_20' ) start [2025-03-28 00:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777798', 'tblTempUsageDetail_20' ) end [2025-03-28 00:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:21:23] Production.INFO: ==27138== Releasing lock... [2025-03-28 00:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:21:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:22:05 [end_date_ymd] => 2025-03-28 00:22:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:22:05' and `end` < '2025-03-28 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-28 00:22:18] Production.INFO: count ==1154 [2025-03-28 00:22:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:22:05 - End Time 2025-03-28 00:22:05 [2025-03-28 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777803', 'tblTempUsageDetail_20' ) start [2025-03-28 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777803', 'tblTempUsageDetail_20' ) end [2025-03-28 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777803', 'tblTempVendorCDR_20' ) start [2025-03-28 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777803', 'tblTempVendorCDR_20' ) end [2025-03-28 00:22:18] Production.INFO: ProcessCDR(1,14777803,1,1,2) [2025-03-28 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777803', 'tblTempUsageDetail_20' ) start [2025-03-28 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777803', 'tblTempUsageDetail_20' ) end [2025-03-28 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:22:22] Production.INFO: ==27219== Releasing lock... [2025-03-28 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:22:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:23:05 [end_date_ymd] => 2025-03-28 00:23:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:23:05' and `end` < '2025-03-28 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-28 00:23:18] Production.INFO: count ==1150 [2025-03-28 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:23:05 - End Time 2025-03-28 00:23:05 [2025-03-28 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777808', 'tblTempUsageDetail_20' ) start [2025-03-28 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777808', 'tblTempUsageDetail_20' ) end [2025-03-28 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777808', 'tblTempVendorCDR_20' ) start [2025-03-28 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777808', 'tblTempVendorCDR_20' ) end [2025-03-28 00:23:18] Production.INFO: ProcessCDR(1,14777808,1,1,2) [2025-03-28 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777808', 'tblTempUsageDetail_20' ) start [2025-03-28 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777808', 'tblTempUsageDetail_20' ) end [2025-03-28 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:23:22] Production.INFO: ==27300== Releasing lock... [2025-03-28 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:23:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:24:06 [end_date_ymd] => 2025-03-28 00:24:06 [RateCDR] => 1 ) [2025-03-28 00:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:24:06' and `end` < '2025-03-28 00:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:24:19] Production.INFO: count ==1153 [2025-03-28 00:24:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:24:06 - End Time 2025-03-28 00:24:06 [2025-03-28 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777813', 'tblTempUsageDetail_20' ) start [2025-03-28 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777813', 'tblTempUsageDetail_20' ) end [2025-03-28 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777813', 'tblTempVendorCDR_20' ) start [2025-03-28 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777813', 'tblTempVendorCDR_20' ) end [2025-03-28 00:24:19] Production.INFO: ProcessCDR(1,14777813,1,1,2) [2025-03-28 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777813', 'tblTempUsageDetail_20' ) start [2025-03-28 00:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777813', 'tblTempUsageDetail_20' ) end [2025-03-28 00:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:24:23] Production.INFO: ==27383== Releasing lock... [2025-03-28 00:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:24:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:25:05 [end_date_ymd] => 2025-03-28 00:25:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:25:05' and `end` < '2025-03-28 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-28 00:25:18] Production.INFO: count ==1153 [2025-03-28 00:25:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:25:05 - End Time 2025-03-28 00:25:05 [2025-03-28 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777818', 'tblTempUsageDetail_20' ) start [2025-03-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777818', 'tblTempUsageDetail_20' ) end [2025-03-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777818', 'tblTempVendorCDR_20' ) start [2025-03-28 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777818', 'tblTempVendorCDR_20' ) end [2025-03-28 00:25:19] Production.INFO: ProcessCDR(1,14777818,1,1,2) [2025-03-28 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777818', 'tblTempUsageDetail_20' ) start [2025-03-28 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777818', 'tblTempUsageDetail_20' ) end [2025-03-28 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:25:22] Production.INFO: ==27502== Releasing lock... [2025-03-28 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:25:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:26:05 [end_date_ymd] => 2025-03-28 00:26:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:26:05' and `end` < '2025-03-28 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-28 00:26:18] Production.INFO: count ==1145 [2025-03-28 00:26:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:26:05 - End Time 2025-03-28 00:26:05 [2025-03-28 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777823', 'tblTempUsageDetail_20' ) start [2025-03-28 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777823', 'tblTempUsageDetail_20' ) end [2025-03-28 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777823', 'tblTempVendorCDR_20' ) start [2025-03-28 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777823', 'tblTempVendorCDR_20' ) end [2025-03-28 00:26:18] Production.INFO: ProcessCDR(1,14777823,1,1,2) [2025-03-28 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777823', 'tblTempUsageDetail_20' ) start [2025-03-28 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777823', 'tblTempUsageDetail_20' ) end [2025-03-28 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:26:22] Production.INFO: ==27578== Releasing lock... [2025-03-28 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:26:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:27:05 [end_date_ymd] => 2025-03-28 00:27:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:27:05' and `end` < '2025-03-28 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-28 00:27:18] Production.INFO: count ==1129 [2025-03-28 00:27:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:27:05 - End Time 2025-03-28 00:27:05 [2025-03-28 00:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777828', 'tblTempUsageDetail_20' ) start [2025-03-28 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777828', 'tblTempUsageDetail_20' ) end [2025-03-28 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777828', 'tblTempVendorCDR_20' ) start [2025-03-28 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777828', 'tblTempVendorCDR_20' ) end [2025-03-28 00:27:19] Production.INFO: ProcessCDR(1,14777828,1,1,2) [2025-03-28 00:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777828', 'tblTempUsageDetail_20' ) start [2025-03-28 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777828', 'tblTempUsageDetail_20' ) end [2025-03-28 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:27:22] Production.INFO: ==27650== Releasing lock... [2025-03-28 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:27:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:28:05 [end_date_ymd] => 2025-03-28 00:28:05 [RateCDR] => 1 ) [2025-03-28 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:28:05' and `end` < '2025-03-28 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:28:18] Production.INFO: count ==1129 [2025-03-28 00:28:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:28:05 - End Time 2025-03-28 00:28:05 [2025-03-28 00:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777833', 'tblTempUsageDetail_20' ) start [2025-03-28 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777833', 'tblTempUsageDetail_20' ) end [2025-03-28 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777833', 'tblTempVendorCDR_20' ) start [2025-03-28 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777833', 'tblTempVendorCDR_20' ) end [2025-03-28 00:28:19] Production.INFO: ProcessCDR(1,14777833,1,1,2) [2025-03-28 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777833', 'tblTempUsageDetail_20' ) start [2025-03-28 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777833', 'tblTempUsageDetail_20' ) end [2025-03-28 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:28:22] Production.INFO: ==27729== Releasing lock... [2025-03-28 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:28:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:29:05 [end_date_ymd] => 2025-03-28 00:29:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:29:05' and `end` < '2025-03-28 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-28 00:29:17] Production.INFO: count ==1128 [2025-03-28 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:29:05 - End Time 2025-03-28 00:29:05 [2025-03-28 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777838', 'tblTempUsageDetail_20' ) start [2025-03-28 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777838', 'tblTempUsageDetail_20' ) end [2025-03-28 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777838', 'tblTempVendorCDR_20' ) start [2025-03-28 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777838', 'tblTempVendorCDR_20' ) end [2025-03-28 00:29:18] Production.INFO: ProcessCDR(1,14777838,1,1,2) [2025-03-28 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777838', 'tblTempUsageDetail_20' ) start [2025-03-28 00:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777838', 'tblTempUsageDetail_20' ) end [2025-03-28 00:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:29:23] Production.INFO: ==27805== Releasing lock... [2025-03-28 00:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:29:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:30:06 [end_date_ymd] => 2025-03-28 00:30:06 [RateCDR] => 1 ) [2025-03-28 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:30:06' and `end` < '2025-03-28 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:30:19] Production.INFO: count ==1134 [2025-03-28 00:30:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:30:06 - End Time 2025-03-28 00:30:06 [2025-03-28 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777843', 'tblTempUsageDetail_20' ) start [2025-03-28 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777843', 'tblTempUsageDetail_20' ) end [2025-03-28 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777843', 'tblTempVendorCDR_20' ) start [2025-03-28 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777843', 'tblTempVendorCDR_20' ) end [2025-03-28 00:30:19] Production.INFO: ProcessCDR(1,14777843,1,1,2) [2025-03-28 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777843', 'tblTempUsageDetail_20' ) start [2025-03-28 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777843', 'tblTempUsageDetail_20' ) end [2025-03-28 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:30:23] Production.INFO: ==27886== Releasing lock... [2025-03-28 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:30:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:31:05 [end_date_ymd] => 2025-03-28 00:31:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:31:05' and `end` < '2025-03-28 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-28 00:31:17] Production.INFO: count ==1137 [2025-03-28 00:31:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:31:05 - End Time 2025-03-28 00:31:05 [2025-03-28 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777849', 'tblTempUsageDetail_20' ) start [2025-03-28 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777849', 'tblTempUsageDetail_20' ) end [2025-03-28 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777849', 'tblTempVendorCDR_20' ) start [2025-03-28 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777849', 'tblTempVendorCDR_20' ) end [2025-03-28 00:31:18] Production.INFO: ProcessCDR(1,14777849,1,1,2) [2025-03-28 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777849', 'tblTempUsageDetail_20' ) start [2025-03-28 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777849', 'tblTempUsageDetail_20' ) end [2025-03-28 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:31:21] Production.INFO: ==27968== Releasing lock... [2025-03-28 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:31:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:32:06 [end_date_ymd] => 2025-03-28 00:32:06 [RateCDR] => 1 ) [2025-03-28 00: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-27 21:32:06' and `end` < '2025-03-28 00: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-28 00:32:18] Production.INFO: count ==1106 [2025-03-28 00:32:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:32:06 - End Time 2025-03-28 00:32:06 [2025-03-28 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777854', 'tblTempUsageDetail_20' ) start [2025-03-28 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777854', 'tblTempUsageDetail_20' ) end [2025-03-28 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777854', 'tblTempVendorCDR_20' ) start [2025-03-28 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777854', 'tblTempVendorCDR_20' ) end [2025-03-28 00:32:19] Production.INFO: ProcessCDR(1,14777854,1,1,2) [2025-03-28 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777854', 'tblTempUsageDetail_20' ) start [2025-03-28 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777854', 'tblTempUsageDetail_20' ) end [2025-03-28 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:32:22] Production.INFO: ==28048== Releasing lock... [2025-03-28 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:32:22] Production.INFO: 37 MB #Memory Used# [2025-03-28 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:33:05 [end_date_ymd] => 2025-03-28 00:33:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:33:05' and `end` < '2025-03-28 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-28 00:33:17] Production.INFO: count ==1103 [2025-03-28 00:33:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:33:05 - End Time 2025-03-28 00:33:05 [2025-03-28 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777859', 'tblTempUsageDetail_20' ) start [2025-03-28 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777859', 'tblTempUsageDetail_20' ) end [2025-03-28 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777859', 'tblTempVendorCDR_20' ) start [2025-03-28 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777859', 'tblTempVendorCDR_20' ) end [2025-03-28 00:33:18] Production.INFO: ProcessCDR(1,14777859,1,1,2) [2025-03-28 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777859', 'tblTempUsageDetail_20' ) start [2025-03-28 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777859', 'tblTempUsageDetail_20' ) end [2025-03-28 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:33:21] Production.INFO: ==28133== Releasing lock... [2025-03-28 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:33:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:34:05 [end_date_ymd] => 2025-03-28 00:34:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:34:05' and `end` < '2025-03-28 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-28 00:34:18] Production.INFO: count ==1091 [2025-03-28 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:34:05 - End Time 2025-03-28 00:34:05 [2025-03-28 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777864', 'tblTempUsageDetail_20' ) start [2025-03-28 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777864', 'tblTempUsageDetail_20' ) end [2025-03-28 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777864', 'tblTempVendorCDR_20' ) start [2025-03-28 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777864', 'tblTempVendorCDR_20' ) end [2025-03-28 00:34:18] Production.INFO: ProcessCDR(1,14777864,1,1,2) [2025-03-28 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777864', 'tblTempUsageDetail_20' ) start [2025-03-28 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777864', 'tblTempUsageDetail_20' ) end [2025-03-28 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:34:22] Production.INFO: ==28209== Releasing lock... [2025-03-28 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:34:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:35:05 [end_date_ymd] => 2025-03-28 00:35:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:35:05' and `end` < '2025-03-28 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-28 00:35:17] Production.INFO: count ==1078 [2025-03-28 00:35:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:35:05 - End Time 2025-03-28 00:35:05 [2025-03-28 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777869', 'tblTempUsageDetail_20' ) start [2025-03-28 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777869', 'tblTempUsageDetail_20' ) end [2025-03-28 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777869', 'tblTempVendorCDR_20' ) start [2025-03-28 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777869', 'tblTempVendorCDR_20' ) end [2025-03-28 00:35:18] Production.INFO: ProcessCDR(1,14777869,1,1,2) [2025-03-28 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777869', 'tblTempUsageDetail_20' ) start [2025-03-28 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777869', 'tblTempUsageDetail_20' ) end [2025-03-28 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:35:21] Production.INFO: ==28282== Releasing lock... [2025-03-28 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:35:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:36:05 [end_date_ymd] => 2025-03-28 00:36:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:36:05' and `end` < '2025-03-28 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-28 00:36:18] Production.INFO: count ==1078 [2025-03-28 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:36:05 - End Time 2025-03-28 00:36:05 [2025-03-28 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777874', 'tblTempUsageDetail_20' ) start [2025-03-28 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777874', 'tblTempUsageDetail_20' ) end [2025-03-28 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777874', 'tblTempVendorCDR_20' ) start [2025-03-28 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777874', 'tblTempVendorCDR_20' ) end [2025-03-28 00:36:19] Production.INFO: ProcessCDR(1,14777874,1,1,2) [2025-03-28 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777874', 'tblTempUsageDetail_20' ) start [2025-03-28 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777874', 'tblTempUsageDetail_20' ) end [2025-03-28 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:36:22] Production.INFO: ==28365== Releasing lock... [2025-03-28 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:36:22] Production.INFO: 37 MB #Memory Used# [2025-03-28 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:37:05 [end_date_ymd] => 2025-03-28 00:37:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:37:05' and `end` < '2025-03-28 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-28 00:37:17] Production.INFO: count ==1077 [2025-03-28 00:37:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:37:05 - End Time 2025-03-28 00:37:05 [2025-03-28 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777879', 'tblTempUsageDetail_20' ) start [2025-03-28 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777879', 'tblTempUsageDetail_20' ) end [2025-03-28 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777879', 'tblTempVendorCDR_20' ) start [2025-03-28 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777879', 'tblTempVendorCDR_20' ) end [2025-03-28 00:37:18] Production.INFO: ProcessCDR(1,14777879,1,1,2) [2025-03-28 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777879', 'tblTempUsageDetail_20' ) start [2025-03-28 00:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777879', 'tblTempUsageDetail_20' ) end [2025-03-28 00:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:37:23] Production.INFO: ==28444== Releasing lock... [2025-03-28 00:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:37:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:38:05 [end_date_ymd] => 2025-03-28 00:38:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:38:05' and `end` < '2025-03-28 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-28 00:38:18] Production.INFO: count ==1072 [2025-03-28 00:38:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:38:05 - End Time 2025-03-28 00:38:05 [2025-03-28 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777884', 'tblTempUsageDetail_20' ) start [2025-03-28 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777884', 'tblTempUsageDetail_20' ) end [2025-03-28 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777884', 'tblTempVendorCDR_20' ) start [2025-03-28 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777884', 'tblTempVendorCDR_20' ) end [2025-03-28 00:38:19] Production.INFO: ProcessCDR(1,14777884,1,1,2) [2025-03-28 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777884', 'tblTempUsageDetail_20' ) start [2025-03-28 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777884', 'tblTempUsageDetail_20' ) end [2025-03-28 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:38:22] Production.INFO: ==28529== Releasing lock... [2025-03-28 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:38:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:39:05 [end_date_ymd] => 2025-03-28 00:39:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:39:05' and `end` < '2025-03-28 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-28 00:39:18] Production.INFO: count ==1074 [2025-03-28 00:39:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:39:05 - End Time 2025-03-28 00:39:05 [2025-03-28 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777889', 'tblTempUsageDetail_20' ) start [2025-03-28 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777889', 'tblTempUsageDetail_20' ) end [2025-03-28 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777889', 'tblTempVendorCDR_20' ) start [2025-03-28 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777889', 'tblTempVendorCDR_20' ) end [2025-03-28 00:39:19] Production.INFO: ProcessCDR(1,14777889,1,1,2) [2025-03-28 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777889', 'tblTempUsageDetail_20' ) start [2025-03-28 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777889', 'tblTempUsageDetail_20' ) end [2025-03-28 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:39:22] Production.INFO: ==28613== Releasing lock... [2025-03-28 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:39:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-28 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:40:06 [end_date_ymd] => 2025-03-28 00:40:06 [RateCDR] => 1 ) [2025-03-28 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-27 21:40:06' and `end` < '2025-03-28 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-28 00:40:18] Production.INFO: count ==1072 [2025-03-28 00:40:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:40:06 - End Time 2025-03-28 00:40:06 [2025-03-28 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777895', 'tblTempUsageDetail_20' ) start [2025-03-28 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777895', 'tblTempUsageDetail_20' ) end [2025-03-28 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777895', 'tblTempVendorCDR_20' ) start [2025-03-28 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777895', 'tblTempVendorCDR_20' ) end [2025-03-28 00:40:19] Production.INFO: ProcessCDR(1,14777895,1,1,2) [2025-03-28 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777895', 'tblTempUsageDetail_20' ) start [2025-03-28 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777895', 'tblTempUsageDetail_20' ) end [2025-03-28 00:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:40:24] Production.INFO: ==28699== Releasing lock... [2025-03-28 00:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:40:24] Production.INFO: 37 MB #Memory Used# [2025-03-28 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:41:05 [end_date_ymd] => 2025-03-28 00:41:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:41:05' and `end` < '2025-03-28 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-28 00:41:18] Production.INFO: count ==1058 [2025-03-28 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:41:05 - End Time 2025-03-28 00:41:05 [2025-03-28 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777900', 'tblTempUsageDetail_20' ) start [2025-03-28 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777900', 'tblTempUsageDetail_20' ) end [2025-03-28 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777900', 'tblTempVendorCDR_20' ) start [2025-03-28 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777900', 'tblTempVendorCDR_20' ) end [2025-03-28 00:41:18] Production.INFO: ProcessCDR(1,14777900,1,1,2) [2025-03-28 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777900', 'tblTempUsageDetail_20' ) start [2025-03-28 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777900', 'tblTempUsageDetail_20' ) end [2025-03-28 00:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:41:23] Production.INFO: ==28823== Releasing lock... [2025-03-28 00:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:41:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-28 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:42:05 [end_date_ymd] => 2025-03-28 00:42:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:42:05' and `end` < '2025-03-28 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-28 00:42:18] Production.INFO: count ==1004 [2025-03-28 00:42:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:42:05 - End Time 2025-03-28 00:42:05 [2025-03-28 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777905', 'tblTempUsageDetail_20' ) start [2025-03-28 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777905', 'tblTempUsageDetail_20' ) end [2025-03-28 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777905', 'tblTempVendorCDR_20' ) start [2025-03-28 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777905', 'tblTempVendorCDR_20' ) end [2025-03-28 00:42:19] Production.INFO: ProcessCDR(1,14777905,1,1,2) [2025-03-28 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777905', 'tblTempUsageDetail_20' ) start [2025-03-28 00:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777905', 'tblTempUsageDetail_20' ) end [2025-03-28 00:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:42:23] Production.INFO: ==28912== Releasing lock... [2025-03-28 00:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:42:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-28 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:43:06 [end_date_ymd] => 2025-03-28 00:43:06 [RateCDR] => 1 ) [2025-03-28 00:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:43:06' and `end` < '2025-03-28 00:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:43:18] Production.INFO: count ==959 [2025-03-28 00:43:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:43:06 - End Time 2025-03-28 00:43:06 [2025-03-28 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777910', 'tblTempUsageDetail_20' ) start [2025-03-28 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777910', 'tblTempUsageDetail_20' ) end [2025-03-28 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777910', 'tblTempVendorCDR_20' ) start [2025-03-28 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777910', 'tblTempVendorCDR_20' ) end [2025-03-28 00:43:19] Production.INFO: ProcessCDR(1,14777910,1,1,2) [2025-03-28 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777910', 'tblTempUsageDetail_20' ) start [2025-03-28 00:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777910', 'tblTempUsageDetail_20' ) end [2025-03-28 00:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:43:24] Production.INFO: ==28994== Releasing lock... [2025-03-28 00:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:43:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-28 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:44:05 [end_date_ymd] => 2025-03-28 00:44:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:44:05' and `end` < '2025-03-28 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-28 00:44:18] Production.INFO: count ==913 [2025-03-28 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:44:05 - End Time 2025-03-28 00:44:05 [2025-03-28 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777915', 'tblTempUsageDetail_20' ) start [2025-03-28 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777915', 'tblTempUsageDetail_20' ) end [2025-03-28 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777915', 'tblTempVendorCDR_20' ) start [2025-03-28 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777915', 'tblTempVendorCDR_20' ) end [2025-03-28 00:44:18] Production.INFO: ProcessCDR(1,14777915,1,1,2) [2025-03-28 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777915', 'tblTempUsageDetail_20' ) start [2025-03-28 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777915', 'tblTempUsageDetail_20' ) end [2025-03-28 00:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:44:23] Production.INFO: ==29072== Releasing lock... [2025-03-28 00:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:44:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-28 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:45:05 [end_date_ymd] => 2025-03-28 00:45:05 [RateCDR] => 1 ) [2025-03-28 00:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:45:05' and `end` < '2025-03-28 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-28 00:45:18] Production.INFO: count ==876 [2025-03-28 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:45:05 - End Time 2025-03-28 00:45:05 [2025-03-28 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777920', 'tblTempUsageDetail_20' ) start [2025-03-28 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777920', 'tblTempUsageDetail_20' ) end [2025-03-28 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777920', 'tblTempVendorCDR_20' ) start [2025-03-28 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777920', 'tblTempVendorCDR_20' ) end [2025-03-28 00:45:19] Production.INFO: ProcessCDR(1,14777920,1,1,2) [2025-03-28 00:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777920', 'tblTempUsageDetail_20' ) start [2025-03-28 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777920', 'tblTempUsageDetail_20' ) end [2025-03-28 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:45:22] Production.INFO: ==29160== Releasing lock... [2025-03-28 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:45:22] Production.INFO: 35 MB #Memory Used# [2025-03-28 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:46:05 [end_date_ymd] => 2025-03-28 00:46:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:46:05' and `end` < '2025-03-28 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-28 00:46:18] Production.INFO: count ==835 [2025-03-28 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:46:05 - End Time 2025-03-28 00:46:05 [2025-03-28 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777925', 'tblTempUsageDetail_20' ) start [2025-03-28 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777925', 'tblTempUsageDetail_20' ) end [2025-03-28 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777925', 'tblTempVendorCDR_20' ) start [2025-03-28 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777925', 'tblTempVendorCDR_20' ) end [2025-03-28 00:46:18] Production.INFO: ProcessCDR(1,14777925,1,1,2) [2025-03-28 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777925', 'tblTempUsageDetail_20' ) start [2025-03-28 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777925', 'tblTempUsageDetail_20' ) end [2025-03-28 00:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:46:23] Production.INFO: ==29251== Releasing lock... [2025-03-28 00:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:46:23] Production.INFO: 35 MB #Memory Used# [2025-03-28 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:47:05 [end_date_ymd] => 2025-03-28 00:47:05 [RateCDR] => 1 ) [2025-03-28 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:47:05' and `end` < '2025-03-28 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:47:18] Production.INFO: count ==780 [2025-03-28 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:47:05 - End Time 2025-03-28 00:47:05 [2025-03-28 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777930', 'tblTempUsageDetail_20' ) start [2025-03-28 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777930', 'tblTempUsageDetail_20' ) end [2025-03-28 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777930', 'tblTempVendorCDR_20' ) start [2025-03-28 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777930', 'tblTempVendorCDR_20' ) end [2025-03-28 00:47:18] Production.INFO: ProcessCDR(1,14777930,1,1,2) [2025-03-28 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777930', 'tblTempUsageDetail_20' ) start [2025-03-28 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777930', 'tblTempUsageDetail_20' ) end [2025-03-28 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:47:22] Production.INFO: ==29334== Releasing lock... [2025-03-28 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:47:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-28 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:48:06 [end_date_ymd] => 2025-03-28 00:48:06 [RateCDR] => 1 ) [2025-03-28 00:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:48:06' and `end` < '2025-03-28 00:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:48:18] Production.INFO: count ==726 [2025-03-28 00:48:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:48:06 - End Time 2025-03-28 00:48:06 [2025-03-28 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777935', 'tblTempUsageDetail_20' ) start [2025-03-28 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777935', 'tblTempUsageDetail_20' ) end [2025-03-28 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777935', 'tblTempVendorCDR_20' ) start [2025-03-28 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777935', 'tblTempVendorCDR_20' ) end [2025-03-28 00:48:18] Production.INFO: ProcessCDR(1,14777935,1,1,2) [2025-03-28 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777935', 'tblTempUsageDetail_20' ) start [2025-03-28 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777935', 'tblTempUsageDetail_20' ) end [2025-03-28 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:48:22] Production.INFO: ==29421== Releasing lock... [2025-03-28 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:48:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:49:05 [end_date_ymd] => 2025-03-28 00:49:05 [RateCDR] => 1 ) [2025-03-28 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:49:05' and `end` < '2025-03-28 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:49:18] Production.INFO: count ==720 [2025-03-28 00:49:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:49:05 - End Time 2025-03-28 00:49:05 [2025-03-28 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777940', 'tblTempUsageDetail_20' ) start [2025-03-28 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777940', 'tblTempUsageDetail_20' ) end [2025-03-28 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777940', 'tblTempVendorCDR_20' ) start [2025-03-28 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777940', 'tblTempVendorCDR_20' ) end [2025-03-28 00:49:18] Production.INFO: ProcessCDR(1,14777940,1,1,2) [2025-03-28 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777940', 'tblTempUsageDetail_20' ) start [2025-03-28 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777940', 'tblTempUsageDetail_20' ) end [2025-03-28 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:49:22] Production.INFO: ==29506== Releasing lock... [2025-03-28 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:49:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:50:06 [end_date_ymd] => 2025-03-28 00:50:06 [RateCDR] => 1 ) [2025-03-28 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-27 21:50:06' and `end` < '2025-03-28 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-28 00:50:19] Production.INFO: count ==745 [2025-03-28 00:50:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:50:06 - End Time 2025-03-28 00:50:06 [2025-03-28 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777946', 'tblTempUsageDetail_20' ) start [2025-03-28 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777946', 'tblTempUsageDetail_20' ) end [2025-03-28 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777946', 'tblTempVendorCDR_20' ) start [2025-03-28 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777946', 'tblTempVendorCDR_20' ) end [2025-03-28 00:50:19] Production.INFO: ProcessCDR(1,14777946,1,1,2) [2025-03-28 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777946', 'tblTempUsageDetail_20' ) start [2025-03-28 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777946', 'tblTempUsageDetail_20' ) end [2025-03-28 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:50:22] Production.INFO: ==29606== Releasing lock... [2025-03-28 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:50:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:51:05 [end_date_ymd] => 2025-03-28 00:51:05 [RateCDR] => 1 ) [2025-03-28 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:51:05' and `end` < '2025-03-28 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:51:17] Production.INFO: count ==746 [2025-03-28 00:51:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:51:05 - End Time 2025-03-28 00:51:05 [2025-03-28 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777951', 'tblTempUsageDetail_20' ) start [2025-03-28 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777951', 'tblTempUsageDetail_20' ) end [2025-03-28 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777951', 'tblTempVendorCDR_20' ) start [2025-03-28 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777951', 'tblTempVendorCDR_20' ) end [2025-03-28 00:51:18] Production.INFO: ProcessCDR(1,14777951,1,1,2) [2025-03-28 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777951', 'tblTempUsageDetail_20' ) start [2025-03-28 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777951', 'tblTempUsageDetail_20' ) end [2025-03-28 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:51:21] Production.INFO: ==29700== Releasing lock... [2025-03-28 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:51:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:52:05 [end_date_ymd] => 2025-03-28 00:52:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:52:05' and `end` < '2025-03-28 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-28 00:52:17] Production.INFO: count ==749 [2025-03-28 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:52:05 - End Time 2025-03-28 00:52:05 [2025-03-28 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777956', 'tblTempUsageDetail_20' ) start [2025-03-28 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777956', 'tblTempUsageDetail_20' ) end [2025-03-28 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777956', 'tblTempVendorCDR_20' ) start [2025-03-28 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777956', 'tblTempVendorCDR_20' ) end [2025-03-28 00:52:18] Production.INFO: ProcessCDR(1,14777956,1,1,2) [2025-03-28 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777956', 'tblTempUsageDetail_20' ) start [2025-03-28 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777956', 'tblTempUsageDetail_20' ) end [2025-03-28 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:52:21] Production.INFO: ==29788== Releasing lock... [2025-03-28 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:52:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:53:05 [end_date_ymd] => 2025-03-28 00:53:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:53:05' and `end` < '2025-03-28 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-28 00:53:18] Production.INFO: count ==743 [2025-03-28 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:53:05 - End Time 2025-03-28 00:53:05 [2025-03-28 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777961', 'tblTempUsageDetail_20' ) start [2025-03-28 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777961', 'tblTempUsageDetail_20' ) end [2025-03-28 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777961', 'tblTempVendorCDR_20' ) start [2025-03-28 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777961', 'tblTempVendorCDR_20' ) end [2025-03-28 00:53:18] Production.INFO: ProcessCDR(1,14777961,1,1,2) [2025-03-28 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777961', 'tblTempUsageDetail_20' ) start [2025-03-28 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777961', 'tblTempUsageDetail_20' ) end [2025-03-28 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:53:21] Production.INFO: ==29873== Releasing lock... [2025-03-28 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:53:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:54:05 [end_date_ymd] => 2025-03-28 00:54:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:54:05' and `end` < '2025-03-28 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-28 00:54:17] Production.INFO: count ==727 [2025-03-28 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-27 21:54:05 - End Time 2025-03-28 00:54:05 [2025-03-28 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777966', 'tblTempUsageDetail_20' ) start [2025-03-28 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777966', 'tblTempUsageDetail_20' ) end [2025-03-28 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777966', 'tblTempVendorCDR_20' ) start [2025-03-28 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777966', 'tblTempVendorCDR_20' ) end [2025-03-28 00:54:17] Production.INFO: ProcessCDR(1,14777966,1,1,2) [2025-03-28 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777966', 'tblTempUsageDetail_20' ) start [2025-03-28 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777966', 'tblTempUsageDetail_20' ) end [2025-03-28 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:54:21] Production.INFO: ==29954== Releasing lock... [2025-03-28 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:54:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:55:06 [end_date_ymd] => 2025-03-28 00:55:06 [RateCDR] => 1 ) [2025-03-28 00:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 21:55:06' and `end` < '2025-03-28 00:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 00:55:18] Production.INFO: count ==724 [2025-03-28 00:55:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:55:06 - End Time 2025-03-28 00:55:06 [2025-03-28 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777971', 'tblTempUsageDetail_20' ) start [2025-03-28 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777971', 'tblTempUsageDetail_20' ) end [2025-03-28 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777971', 'tblTempVendorCDR_20' ) start [2025-03-28 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777971', 'tblTempVendorCDR_20' ) end [2025-03-28 00:55:18] Production.INFO: ProcessCDR(1,14777971,1,1,2) [2025-03-28 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777971', 'tblTempUsageDetail_20' ) start [2025-03-28 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777971', 'tblTempUsageDetail_20' ) end [2025-03-28 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:55:22] Production.INFO: ==30057== Releasing lock... [2025-03-28 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:55:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:56:05 [end_date_ymd] => 2025-03-28 00:56:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:56:05' and `end` < '2025-03-28 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-28 00:56:17] Production.INFO: count ==721 [2025-03-28 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:56:05 - End Time 2025-03-28 00:56:05 [2025-03-28 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777976', 'tblTempUsageDetail_20' ) start [2025-03-28 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777976', 'tblTempUsageDetail_20' ) end [2025-03-28 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777976', 'tblTempVendorCDR_20' ) start [2025-03-28 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777976', 'tblTempVendorCDR_20' ) end [2025-03-28 00:56:18] Production.INFO: ProcessCDR(1,14777976,1,1,2) [2025-03-28 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777976', 'tblTempUsageDetail_20' ) start [2025-03-28 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777976', 'tblTempUsageDetail_20' ) end [2025-03-28 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:56:21] Production.INFO: ==30197== Releasing lock... [2025-03-28 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:56:21] Production.INFO: 34 MB #Memory Used# [2025-03-28 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:57:05 [end_date_ymd] => 2025-03-28 00:57:05 [RateCDR] => 1 ) [2025-03-28 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-27 21:57:05' and `end` < '2025-03-28 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-28 00:57:18] Production.INFO: count ==726 [2025-03-28 00:57:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:57:05 - End Time 2025-03-28 00:57:05 [2025-03-28 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777981', 'tblTempUsageDetail_20' ) start [2025-03-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777981', 'tblTempUsageDetail_20' ) end [2025-03-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777981', 'tblTempVendorCDR_20' ) start [2025-03-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777981', 'tblTempVendorCDR_20' ) end [2025-03-28 00:57:18] Production.INFO: ProcessCDR(1,14777981,1,1,2) [2025-03-28 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777981', 'tblTempUsageDetail_20' ) start [2025-03-28 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777981', 'tblTempUsageDetail_20' ) end [2025-03-28 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:57:22] Production.INFO: ==30291== Releasing lock... [2025-03-28 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:57:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:58:06 [end_date_ymd] => 2025-03-28 00:58:06 [RateCDR] => 1 ) [2025-03-28 00: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-27 21:58:06' and `end` < '2025-03-28 00: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-28 00:58:18] Production.INFO: count ==727 [2025-03-28 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-27 21:58:06 - End Time 2025-03-28 00:58:06 [2025-03-28 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777986', 'tblTempUsageDetail_20' ) start [2025-03-28 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777986', 'tblTempUsageDetail_20' ) end [2025-03-28 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777986', 'tblTempVendorCDR_20' ) start [2025-03-28 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777986', 'tblTempVendorCDR_20' ) end [2025-03-28 00:58:18] Production.INFO: ProcessCDR(1,14777986,1,1,2) [2025-03-28 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777986', 'tblTempUsageDetail_20' ) start [2025-03-28 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777986', 'tblTempUsageDetail_20' ) end [2025-03-28 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:58:23] Production.INFO: ==30386== Releasing lock... [2025-03-28 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:58:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 21:59:06 [end_date_ymd] => 2025-03-28 00:59:06 [RateCDR] => 1 ) [2025-03-28 00: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-27 21:59:06' and `end` < '2025-03-28 00: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-28 00:59:18] Production.INFO: count ==727 [2025-03-28 00:59:19] Production.ERROR: pbx CDR StartTime 2025-03-27 21:59:06 - End Time 2025-03-28 00:59:06 [2025-03-28 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777991', 'tblTempUsageDetail_20' ) start [2025-03-28 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777991', 'tblTempUsageDetail_20' ) end [2025-03-28 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777991', 'tblTempVendorCDR_20' ) start [2025-03-28 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777991', 'tblTempVendorCDR_20' ) end [2025-03-28 00:59:19] Production.INFO: ProcessCDR(1,14777991,1,1,2) [2025-03-28 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777991', 'tblTempUsageDetail_20' ) start [2025-03-28 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777991', 'tblTempUsageDetail_20' ) end [2025-03-28 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 00:59:22] Production.INFO: ==30488== Releasing lock... [2025-03-28 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 00:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:00:06 [end_date_ymd] => 2025-03-28 01:00:06 [RateCDR] => 1 ) [2025-03-28 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:00:06' and `end` < '2025-03-28 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:00:18] Production.INFO: count ==727 [2025-03-28 01:00:19] Production.ERROR: pbx CDR StartTime 2025-03-27 22:00:06 - End Time 2025-03-28 01:00:06 [2025-03-28 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777997', 'tblTempUsageDetail_20' ) start [2025-03-28 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14777997', 'tblTempUsageDetail_20' ) end [2025-03-28 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777997', 'tblTempVendorCDR_20' ) start [2025-03-28 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14777997', 'tblTempVendorCDR_20' ) end [2025-03-28 01:00:19] Production.INFO: ProcessCDR(1,14777997,1,1,2) [2025-03-28 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14777997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14777997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14777997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14777997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777997', 'tblTempUsageDetail_20' ) start [2025-03-28 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14777997', 'tblTempUsageDetail_20' ) end [2025-03-28 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:00:22] Production.INFO: ==30589== Releasing lock... [2025-03-28 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:00:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:01:06 [end_date_ymd] => 2025-03-28 01:01:06 [RateCDR] => 1 ) [2025-03-28 01:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:01:06' and `end` < '2025-03-28 01:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:01:18] Production.INFO: count ==724 [2025-03-28 01:01:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:01:06 - End Time 2025-03-28 01:01:06 [2025-03-28 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778002', 'tblTempUsageDetail_20' ) start [2025-03-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778002', 'tblTempUsageDetail_20' ) end [2025-03-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778002', 'tblTempVendorCDR_20' ) start [2025-03-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778002', 'tblTempVendorCDR_20' ) end [2025-03-28 01:01:18] Production.INFO: ProcessCDR(1,14778002,1,1,2) [2025-03-28 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778002', 'tblTempUsageDetail_20' ) start [2025-03-28 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778002', 'tblTempUsageDetail_20' ) end [2025-03-28 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:01:22] Production.INFO: ==30703== Releasing lock... [2025-03-28 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:01:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:02:05 [end_date_ymd] => 2025-03-28 01:02:05 [RateCDR] => 1 ) [2025-03-28 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:02:05' and `end` < '2025-03-28 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:02:18] Production.INFO: count ==720 [2025-03-28 01:02:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:02:05 - End Time 2025-03-28 01:02:05 [2025-03-28 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778007', 'tblTempUsageDetail_20' ) start [2025-03-28 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778007', 'tblTempUsageDetail_20' ) end [2025-03-28 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778007', 'tblTempVendorCDR_20' ) start [2025-03-28 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778007', 'tblTempVendorCDR_20' ) end [2025-03-28 01:02:18] Production.INFO: ProcessCDR(1,14778007,1,1,2) [2025-03-28 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778007', 'tblTempUsageDetail_20' ) start [2025-03-28 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778007', 'tblTempUsageDetail_20' ) end [2025-03-28 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:02:22] Production.INFO: ==30800== Releasing lock... [2025-03-28 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:02:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:03:06 [end_date_ymd] => 2025-03-28 01:03:06 [RateCDR] => 1 ) [2025-03-28 01:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:03:06' and `end` < '2025-03-28 01:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:03:18] Production.INFO: count ==720 [2025-03-28 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:03:06 - End Time 2025-03-28 01:03:06 [2025-03-28 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778012', 'tblTempUsageDetail_20' ) start [2025-03-28 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778012', 'tblTempUsageDetail_20' ) end [2025-03-28 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778012', 'tblTempVendorCDR_20' ) start [2025-03-28 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778012', 'tblTempVendorCDR_20' ) end [2025-03-28 01:03:18] Production.INFO: ProcessCDR(1,14778012,1,1,2) [2025-03-28 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778012', 'tblTempUsageDetail_20' ) start [2025-03-28 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778012', 'tblTempUsageDetail_20' ) end [2025-03-28 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:03:22] Production.INFO: ==30899== Releasing lock... [2025-03-28 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:04:05 [end_date_ymd] => 2025-03-28 01:04:05 [RateCDR] => 1 ) [2025-03-28 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:04:05' and `end` < '2025-03-28 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:04:18] Production.INFO: count ==720 [2025-03-28 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:04:05 - End Time 2025-03-28 01:04:05 [2025-03-28 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778017', 'tblTempUsageDetail_20' ) start [2025-03-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778017', 'tblTempUsageDetail_20' ) end [2025-03-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778017', 'tblTempVendorCDR_20' ) start [2025-03-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778017', 'tblTempVendorCDR_20' ) end [2025-03-28 01:04:18] Production.INFO: ProcessCDR(1,14778017,1,1,2) [2025-03-28 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778017', 'tblTempUsageDetail_20' ) start [2025-03-28 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778017', 'tblTempUsageDetail_20' ) end [2025-03-28 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:04:22] Production.INFO: ==30991== Releasing lock... [2025-03-28 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:04:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:05:05 [end_date_ymd] => 2025-03-28 01:05:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:05:05' and `end` < '2025-03-28 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-28 01:05:18] Production.INFO: count ==719 [2025-03-28 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:05:05 - End Time 2025-03-28 01:05:05 [2025-03-28 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778022', 'tblTempUsageDetail_20' ) start [2025-03-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778022', 'tblTempUsageDetail_20' ) end [2025-03-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778022', 'tblTempVendorCDR_20' ) start [2025-03-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778022', 'tblTempVendorCDR_20' ) end [2025-03-28 01:05:18] Production.INFO: ProcessCDR(1,14778022,1,1,2) [2025-03-28 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778022', 'tblTempUsageDetail_20' ) start [2025-03-28 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778022', 'tblTempUsageDetail_20' ) end [2025-03-28 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:05:22] Production.INFO: ==31086== Releasing lock... [2025-03-28 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:05:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:06:05 [end_date_ymd] => 2025-03-28 01:06:05 [RateCDR] => 1 ) [2025-03-28 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:06:05' and `end` < '2025-03-28 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:06:17] Production.INFO: count ==715 [2025-03-28 01:06:17] Production.ERROR: pbx CDR StartTime 2025-03-27 22:06:05 - End Time 2025-03-28 01:06:05 [2025-03-28 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778027', 'tblTempUsageDetail_20' ) start [2025-03-28 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778027', 'tblTempUsageDetail_20' ) end [2025-03-28 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778027', 'tblTempVendorCDR_20' ) start [2025-03-28 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778027', 'tblTempVendorCDR_20' ) end [2025-03-28 01:06:18] Production.INFO: ProcessCDR(1,14778027,1,1,2) [2025-03-28 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778027', 'tblTempUsageDetail_20' ) start [2025-03-28 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778027', 'tblTempUsageDetail_20' ) end [2025-03-28 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:06:21] Production.INFO: ==31179== Releasing lock... [2025-03-28 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:06:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:07:06 [end_date_ymd] => 2025-03-28 01:07:06 [RateCDR] => 1 ) [2025-03-28 01: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-27 22:07:06' and `end` < '2025-03-28 01: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-28 01:07:18] Production.INFO: count ==715 [2025-03-28 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:07:06 - End Time 2025-03-28 01:07:06 [2025-03-28 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778032', 'tblTempUsageDetail_20' ) start [2025-03-28 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778032', 'tblTempUsageDetail_20' ) end [2025-03-28 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778032', 'tblTempVendorCDR_20' ) start [2025-03-28 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778032', 'tblTempVendorCDR_20' ) end [2025-03-28 01:07:18] Production.INFO: ProcessCDR(1,14778032,1,1,2) [2025-03-28 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778032', 'tblTempUsageDetail_20' ) start [2025-03-28 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778032', 'tblTempUsageDetail_20' ) end [2025-03-28 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:07:22] Production.INFO: ==31275== Releasing lock... [2025-03-28 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:07:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:08:05 [end_date_ymd] => 2025-03-28 01:08:05 [RateCDR] => 1 ) [2025-03-28 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:08:05' and `end` < '2025-03-28 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:08:18] Production.INFO: count ==724 [2025-03-28 01:08:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:08:05 - End Time 2025-03-28 01:08:05 [2025-03-28 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778037', 'tblTempUsageDetail_20' ) start [2025-03-28 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778037', 'tblTempUsageDetail_20' ) end [2025-03-28 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778037', 'tblTempVendorCDR_20' ) start [2025-03-28 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778037', 'tblTempVendorCDR_20' ) end [2025-03-28 01:08:18] Production.INFO: ProcessCDR(1,14778037,1,1,2) [2025-03-28 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778037', 'tblTempUsageDetail_20' ) start [2025-03-28 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778037', 'tblTempUsageDetail_20' ) end [2025-03-28 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:08:21] Production.INFO: ==31375== Releasing lock... [2025-03-28 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:08:21] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:09:06 [end_date_ymd] => 2025-03-28 01:09:06 [RateCDR] => 1 ) [2025-03-28 01: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-27 22:09:06' and `end` < '2025-03-28 01: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-28 01:09:18] Production.INFO: count ==721 [2025-03-28 01:09:19] Production.ERROR: pbx CDR StartTime 2025-03-27 22:09:06 - End Time 2025-03-28 01:09:06 [2025-03-28 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778042', 'tblTempUsageDetail_20' ) start [2025-03-28 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778042', 'tblTempUsageDetail_20' ) end [2025-03-28 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778042', 'tblTempVendorCDR_20' ) start [2025-03-28 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778042', 'tblTempVendorCDR_20' ) end [2025-03-28 01:09:19] Production.INFO: ProcessCDR(1,14778042,1,1,2) [2025-03-28 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778042', 'tblTempUsageDetail_20' ) start [2025-03-28 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778042', 'tblTempUsageDetail_20' ) end [2025-03-28 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:09:22] Production.INFO: ==31468== Releasing lock... [2025-03-28 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:09:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:10:06 [end_date_ymd] => 2025-03-28 01:10:06 [RateCDR] => 1 ) [2025-03-28 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:10:06' and `end` < '2025-03-28 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:10:19] Production.INFO: count ==741 [2025-03-28 01:10:19] Production.ERROR: pbx CDR StartTime 2025-03-27 22:10:06 - End Time 2025-03-28 01:10:06 [2025-03-28 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778048', 'tblTempUsageDetail_20' ) start [2025-03-28 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778048', 'tblTempUsageDetail_20' ) end [2025-03-28 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778048', 'tblTempVendorCDR_20' ) start [2025-03-28 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778048', 'tblTempVendorCDR_20' ) end [2025-03-28 01:10:19] Production.INFO: ProcessCDR(1,14778048,1,1,2) [2025-03-28 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778048', 'tblTempUsageDetail_20' ) start [2025-03-28 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778048', 'tblTempUsageDetail_20' ) end [2025-03-28 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:10:23] Production.INFO: ==31564== Releasing lock... [2025-03-28 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:10:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:11:06 [end_date_ymd] => 2025-03-28 01:11:06 [RateCDR] => 1 ) [2025-03-28 01: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-27 22:11:06' and `end` < '2025-03-28 01: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-28 01:11:18] Production.INFO: count ==754 [2025-03-28 01:11:19] Production.ERROR: pbx CDR StartTime 2025-03-27 22:11:06 - End Time 2025-03-28 01:11:06 [2025-03-28 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778053', 'tblTempUsageDetail_20' ) start [2025-03-28 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778053', 'tblTempUsageDetail_20' ) end [2025-03-28 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778053', 'tblTempVendorCDR_20' ) start [2025-03-28 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778053', 'tblTempVendorCDR_20' ) end [2025-03-28 01:11:19] Production.INFO: ProcessCDR(1,14778053,1,1,2) [2025-03-28 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778053', 'tblTempUsageDetail_20' ) start [2025-03-28 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778053', 'tblTempUsageDetail_20' ) end [2025-03-28 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:11:22] Production.INFO: ==31655== Releasing lock... [2025-03-28 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:11:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:12:05 [end_date_ymd] => 2025-03-28 01:12:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:12:05' and `end` < '2025-03-28 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-28 01:12:18] Production.INFO: count ==753 [2025-03-28 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:12:05 - End Time 2025-03-28 01:12:05 [2025-03-28 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778058', 'tblTempUsageDetail_20' ) start [2025-03-28 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778058', 'tblTempUsageDetail_20' ) end [2025-03-28 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778058', 'tblTempVendorCDR_20' ) start [2025-03-28 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778058', 'tblTempVendorCDR_20' ) end [2025-03-28 01:12:18] Production.INFO: ProcessCDR(1,14778058,1,1,2) [2025-03-28 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778058', 'tblTempUsageDetail_20' ) start [2025-03-28 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778058', 'tblTempUsageDetail_20' ) end [2025-03-28 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:12:21] Production.INFO: ==31784== Releasing lock... [2025-03-28 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:12:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:13:06 [end_date_ymd] => 2025-03-28 01:13:06 [RateCDR] => 1 ) [2025-03-28 01: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-27 22:13:06' and `end` < '2025-03-28 01: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-28 01:13:18] Production.INFO: count ==753 [2025-03-28 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:13:06 - End Time 2025-03-28 01:13:06 [2025-03-28 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778063', 'tblTempUsageDetail_20' ) start [2025-03-28 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778063', 'tblTempUsageDetail_20' ) end [2025-03-28 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778063', 'tblTempVendorCDR_20' ) start [2025-03-28 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778063', 'tblTempVendorCDR_20' ) end [2025-03-28 01:13:18] Production.INFO: ProcessCDR(1,14778063,1,1,2) [2025-03-28 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778063', 'tblTempUsageDetail_20' ) start [2025-03-28 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778063', 'tblTempUsageDetail_20' ) end [2025-03-28 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:13:22] Production.INFO: ==31878== Releasing lock... [2025-03-28 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:13:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:14:04 [end_date_ymd] => 2025-03-28 01:14:04 [RateCDR] => 1 ) [2025-03-28 01:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:14:04' and `end` < '2025-03-28 01:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:14:17] Production.INFO: count ==747 [2025-03-28 01:14:17] Production.ERROR: pbx CDR StartTime 2025-03-27 22:14:04 - End Time 2025-03-28 01:14:04 [2025-03-28 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778068', 'tblTempUsageDetail_20' ) start [2025-03-28 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778068', 'tblTempUsageDetail_20' ) end [2025-03-28 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778068', 'tblTempVendorCDR_20' ) start [2025-03-28 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778068', 'tblTempVendorCDR_20' ) end [2025-03-28 01:14:17] Production.INFO: ProcessCDR(1,14778068,1,1,2) [2025-03-28 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778068', 'tblTempUsageDetail_20' ) start [2025-03-28 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778068', 'tblTempUsageDetail_20' ) end [2025-03-28 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:14:21] Production.INFO: ==31963== Releasing lock... [2025-03-28 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:14:21] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:15:05 [end_date_ymd] => 2025-03-28 01:15:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:15:05' and `end` < '2025-03-28 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-28 01:15:18] Production.INFO: count ==747 [2025-03-28 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:15:05 - End Time 2025-03-28 01:15:05 [2025-03-28 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778073', 'tblTempUsageDetail_20' ) start [2025-03-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778073', 'tblTempUsageDetail_20' ) end [2025-03-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778073', 'tblTempVendorCDR_20' ) start [2025-03-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778073', 'tblTempVendorCDR_20' ) end [2025-03-28 01:15:18] Production.INFO: ProcessCDR(1,14778073,1,1,2) [2025-03-28 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778073', 'tblTempUsageDetail_20' ) start [2025-03-28 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778073', 'tblTempUsageDetail_20' ) end [2025-03-28 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:15:22] Production.INFO: ==32062== Releasing lock... [2025-03-28 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:15:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:16:05 [end_date_ymd] => 2025-03-28 01:16:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:16:05' and `end` < '2025-03-28 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-28 01:16:18] Production.INFO: count ==746 [2025-03-28 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:16:05 - End Time 2025-03-28 01:16:05 [2025-03-28 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778078', 'tblTempUsageDetail_20' ) start [2025-03-28 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778078', 'tblTempUsageDetail_20' ) end [2025-03-28 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778078', 'tblTempVendorCDR_20' ) start [2025-03-28 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778078', 'tblTempVendorCDR_20' ) end [2025-03-28 01:16:18] Production.INFO: ProcessCDR(1,14778078,1,1,2) [2025-03-28 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778078', 'tblTempUsageDetail_20' ) start [2025-03-28 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778078', 'tblTempUsageDetail_20' ) end [2025-03-28 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:16:21] Production.INFO: ==32170== Releasing lock... [2025-03-28 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:16:21] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:17:06 [end_date_ymd] => 2025-03-28 01:17:06 [RateCDR] => 1 ) [2025-03-28 01:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:17:06' and `end` < '2025-03-28 01:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:17:18] Production.INFO: count ==749 [2025-03-28 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:17:06 - End Time 2025-03-28 01:17:06 [2025-03-28 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778083', 'tblTempUsageDetail_20' ) start [2025-03-28 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778083', 'tblTempUsageDetail_20' ) end [2025-03-28 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778083', 'tblTempVendorCDR_20' ) start [2025-03-28 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778083', 'tblTempVendorCDR_20' ) end [2025-03-28 01:17:18] Production.INFO: ProcessCDR(1,14778083,1,1,2) [2025-03-28 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778083', 'tblTempUsageDetail_20' ) start [2025-03-28 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778083', 'tblTempUsageDetail_20' ) end [2025-03-28 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:17:22] Production.INFO: ==32261== Releasing lock... [2025-03-28 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:17:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:18:05 [end_date_ymd] => 2025-03-28 01:18:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:18:05' and `end` < '2025-03-28 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-28 01:18:18] Production.INFO: count ==736 [2025-03-28 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:18:05 - End Time 2025-03-28 01:18:05 [2025-03-28 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778088', 'tblTempUsageDetail_20' ) start [2025-03-28 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778088', 'tblTempUsageDetail_20' ) end [2025-03-28 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778088', 'tblTempVendorCDR_20' ) start [2025-03-28 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778088', 'tblTempVendorCDR_20' ) end [2025-03-28 01:18:18] Production.INFO: ProcessCDR(1,14778088,1,1,2) [2025-03-28 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778088', 'tblTempUsageDetail_20' ) start [2025-03-28 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778088', 'tblTempUsageDetail_20' ) end [2025-03-28 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:18:22] Production.INFO: ==32364== Releasing lock... [2025-03-28 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:18:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:19:05 [end_date_ymd] => 2025-03-28 01:19:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:19:05' and `end` < '2025-03-28 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-28 01:19:17] Production.INFO: count ==743 [2025-03-28 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-27 22:19:05 - End Time 2025-03-28 01:19:05 [2025-03-28 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778093', 'tblTempUsageDetail_20' ) start [2025-03-28 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778093', 'tblTempUsageDetail_20' ) end [2025-03-28 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778093', 'tblTempVendorCDR_20' ) start [2025-03-28 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778093', 'tblTempVendorCDR_20' ) end [2025-03-28 01:19:17] Production.INFO: ProcessCDR(1,14778093,1,1,2) [2025-03-28 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778093', 'tblTempUsageDetail_20' ) start [2025-03-28 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778093', 'tblTempUsageDetail_20' ) end [2025-03-28 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:19:21] Production.INFO: ==32450== Releasing lock... [2025-03-28 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:19:21] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:20:06 [end_date_ymd] => 2025-03-28 01:20:06 [RateCDR] => 1 ) [2025-03-28 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-27 22:20:06' and `end` < '2025-03-28 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-28 01:20:19] Production.INFO: count ==761 [2025-03-28 01:20:19] Production.ERROR: pbx CDR StartTime 2025-03-27 22:20:06 - End Time 2025-03-28 01:20:06 [2025-03-28 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778098', 'tblTempUsageDetail_20' ) start [2025-03-28 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778098', 'tblTempUsageDetail_20' ) end [2025-03-28 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778098', 'tblTempVendorCDR_20' ) start [2025-03-28 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778098', 'tblTempVendorCDR_20' ) end [2025-03-28 01:20:19] Production.INFO: ProcessCDR(1,14778098,1,1,2) [2025-03-28 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778098', 'tblTempUsageDetail_20' ) start [2025-03-28 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778098', 'tblTempUsageDetail_20' ) end [2025-03-28 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:20:23] Production.INFO: ==32540== Releasing lock... [2025-03-28 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:20:23] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:21:05 [end_date_ymd] => 2025-03-28 01:21:05 [RateCDR] => 1 ) [2025-03-28 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:21:05' and `end` < '2025-03-28 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:21:18] Production.INFO: count ==765 [2025-03-28 01:21:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:21:05 - End Time 2025-03-28 01:21:05 [2025-03-28 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778104', 'tblTempUsageDetail_20' ) start [2025-03-28 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778104', 'tblTempUsageDetail_20' ) end [2025-03-28 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778104', 'tblTempVendorCDR_20' ) start [2025-03-28 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778104', 'tblTempVendorCDR_20' ) end [2025-03-28 01:21:18] Production.INFO: ProcessCDR(1,14778104,1,1,2) [2025-03-28 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778104', 'tblTempUsageDetail_20' ) start [2025-03-28 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778104', 'tblTempUsageDetail_20' ) end [2025-03-28 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:21:22] Production.INFO: ==32634== Releasing lock... [2025-03-28 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:21:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-28 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:22:05 [end_date_ymd] => 2025-03-28 01:22:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:22:05' and `end` < '2025-03-28 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-28 01:22:18] Production.INFO: count ==767 [2025-03-28 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:22:05 - End Time 2025-03-28 01:22:05 [2025-03-28 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778109', 'tblTempUsageDetail_20' ) start [2025-03-28 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778109', 'tblTempUsageDetail_20' ) end [2025-03-28 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778109', 'tblTempVendorCDR_20' ) start [2025-03-28 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778109', 'tblTempVendorCDR_20' ) end [2025-03-28 01:22:18] Production.INFO: ProcessCDR(1,14778109,1,1,2) [2025-03-28 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778109', 'tblTempUsageDetail_20' ) start [2025-03-28 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778109', 'tblTempUsageDetail_20' ) end [2025-03-28 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:22:22] Production.INFO: ==32721== Releasing lock... [2025-03-28 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:22:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:23:05 [end_date_ymd] => 2025-03-28 01:23:05 [RateCDR] => 1 ) [2025-03-28 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:23:05' and `end` < '2025-03-28 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-28 01:23:17] Production.INFO: count ==764 [2025-03-28 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-27 22:23:05 - End Time 2025-03-28 01:23:05 [2025-03-28 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778114', 'tblTempUsageDetail_20' ) start [2025-03-28 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778114', 'tblTempUsageDetail_20' ) end [2025-03-28 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778114', 'tblTempVendorCDR_20' ) start [2025-03-28 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778114', 'tblTempVendorCDR_20' ) end [2025-03-28 01:23:18] Production.INFO: ProcessCDR(1,14778114,1,1,2) [2025-03-28 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778114', 'tblTempUsageDetail_20' ) start [2025-03-28 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778114', 'tblTempUsageDetail_20' ) end [2025-03-28 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:23:21] Production.INFO: ==360== Releasing lock... [2025-03-28 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:23:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-28 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:24:06 [end_date_ymd] => 2025-03-28 01:24:06 [RateCDR] => 1 ) [2025-03-28 01:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:24:06' and `end` < '2025-03-28 01:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:24:18] Production.INFO: count ==758 [2025-03-28 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:24:06 - End Time 2025-03-28 01:24:06 [2025-03-28 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778119', 'tblTempUsageDetail_20' ) start [2025-03-28 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778119', 'tblTempUsageDetail_20' ) end [2025-03-28 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778119', 'tblTempVendorCDR_20' ) start [2025-03-28 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778119', 'tblTempVendorCDR_20' ) end [2025-03-28 01:24:18] Production.INFO: ProcessCDR(1,14778119,1,1,2) [2025-03-28 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778119', 'tblTempUsageDetail_20' ) start [2025-03-28 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778119', 'tblTempUsageDetail_20' ) end [2025-03-28 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:24:22] Production.INFO: ==448== Releasing lock... [2025-03-28 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:24:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:25:05 [end_date_ymd] => 2025-03-28 01:25:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:25:05' and `end` < '2025-03-28 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-28 01:25:18] Production.INFO: count ==749 [2025-03-28 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:25:05 - End Time 2025-03-28 01:25:05 [2025-03-28 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778124', 'tblTempUsageDetail_20' ) start [2025-03-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778124', 'tblTempUsageDetail_20' ) end [2025-03-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778124', 'tblTempVendorCDR_20' ) start [2025-03-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778124', 'tblTempVendorCDR_20' ) end [2025-03-28 01:25:18] Production.INFO: ProcessCDR(1,14778124,1,1,2) [2025-03-28 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778124', 'tblTempUsageDetail_20' ) start [2025-03-28 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778124', 'tblTempUsageDetail_20' ) end [2025-03-28 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:25:21] Production.INFO: ==536== Releasing lock... [2025-03-28 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:25:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:26:06 [end_date_ymd] => 2025-03-28 01:26:06 [RateCDR] => 1 ) [2025-03-28 01: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-27 22:26:06' and `end` < '2025-03-28 01: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-28 01:26:18] Production.INFO: count ==743 [2025-03-28 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:26:06 - End Time 2025-03-28 01:26:06 [2025-03-28 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778129', 'tblTempUsageDetail_20' ) start [2025-03-28 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778129', 'tblTempUsageDetail_20' ) end [2025-03-28 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778129', 'tblTempVendorCDR_20' ) start [2025-03-28 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778129', 'tblTempVendorCDR_20' ) end [2025-03-28 01:26:18] Production.INFO: ProcessCDR(1,14778129,1,1,2) [2025-03-28 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778129', 'tblTempUsageDetail_20' ) start [2025-03-28 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778129', 'tblTempUsageDetail_20' ) end [2025-03-28 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:26:22] Production.INFO: ==645== Releasing lock... [2025-03-28 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:26:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:27:05 [end_date_ymd] => 2025-03-28 01:27:05 [RateCDR] => 1 ) [2025-03-28 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:27:05' and `end` < '2025-03-28 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:27:18] Production.INFO: count ==728 [2025-03-28 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:27:05 - End Time 2025-03-28 01:27:05 [2025-03-28 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778134', 'tblTempUsageDetail_20' ) start [2025-03-28 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778134', 'tblTempUsageDetail_20' ) end [2025-03-28 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778134', 'tblTempVendorCDR_20' ) start [2025-03-28 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778134', 'tblTempVendorCDR_20' ) end [2025-03-28 01:27:18] Production.INFO: ProcessCDR(1,14778134,1,1,2) [2025-03-28 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778134', 'tblTempUsageDetail_20' ) start [2025-03-28 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778134', 'tblTempUsageDetail_20' ) end [2025-03-28 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:27:21] Production.INFO: ==819== Releasing lock... [2025-03-28 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:27:21] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:28:06 [end_date_ymd] => 2025-03-28 01:28:06 [RateCDR] => 1 ) [2025-03-28 01:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:28:06' and `end` < '2025-03-28 01:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:28:18] Production.INFO: count ==724 [2025-03-28 01:28:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:28:06 - End Time 2025-03-28 01:28:06 [2025-03-28 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778139', 'tblTempUsageDetail_20' ) start [2025-03-28 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778139', 'tblTempUsageDetail_20' ) end [2025-03-28 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778139', 'tblTempVendorCDR_20' ) start [2025-03-28 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778139', 'tblTempVendorCDR_20' ) end [2025-03-28 01:28:18] Production.INFO: ProcessCDR(1,14778139,1,1,2) [2025-03-28 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778139', 'tblTempUsageDetail_20' ) start [2025-03-28 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778139', 'tblTempUsageDetail_20' ) end [2025-03-28 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:28:22] Production.INFO: ==921== Releasing lock... [2025-03-28 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:28:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:29:05 [end_date_ymd] => 2025-03-28 01:29:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:29:05' and `end` < '2025-03-28 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-28 01:29:17] Production.INFO: count ==720 [2025-03-28 01:29:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:29:05 - End Time 2025-03-28 01:29:05 [2025-03-28 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778144', 'tblTempUsageDetail_20' ) start [2025-03-28 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778144', 'tblTempUsageDetail_20' ) end [2025-03-28 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778144', 'tblTempVendorCDR_20' ) start [2025-03-28 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778144', 'tblTempVendorCDR_20' ) end [2025-03-28 01:29:18] Production.INFO: ProcessCDR(1,14778144,1,1,2) [2025-03-28 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778144', 'tblTempUsageDetail_20' ) start [2025-03-28 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778144', 'tblTempUsageDetail_20' ) end [2025-03-28 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:29:21] Production.INFO: ==1019== Releasing lock... [2025-03-28 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:29:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:30:06 [end_date_ymd] => 2025-03-28 01:30:06 [RateCDR] => 1 ) [2025-03-28 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-27 22:30:06' and `end` < '2025-03-28 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-28 01:30:19] Production.INFO: count ==727 [2025-03-28 01:30:19] Production.ERROR: pbx CDR StartTime 2025-03-27 22:30:06 - End Time 2025-03-28 01:30:06 [2025-03-28 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778149', 'tblTempUsageDetail_20' ) start [2025-03-28 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778149', 'tblTempUsageDetail_20' ) end [2025-03-28 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778149', 'tblTempVendorCDR_20' ) start [2025-03-28 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778149', 'tblTempVendorCDR_20' ) end [2025-03-28 01:30:19] Production.INFO: ProcessCDR(1,14778149,1,1,2) [2025-03-28 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778149', 'tblTempUsageDetail_20' ) start [2025-03-28 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778149', 'tblTempUsageDetail_20' ) end [2025-03-28 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:30:22] Production.INFO: ==1118== Releasing lock... [2025-03-28 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:30:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:31:05 [end_date_ymd] => 2025-03-28 01:31:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:31:05' and `end` < '2025-03-28 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-28 01:31:18] Production.INFO: count ==728 [2025-03-28 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:31:05 - End Time 2025-03-28 01:31:05 [2025-03-28 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778155', 'tblTempUsageDetail_20' ) start [2025-03-28 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778155', 'tblTempUsageDetail_20' ) end [2025-03-28 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778155', 'tblTempVendorCDR_20' ) start [2025-03-28 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778155', 'tblTempVendorCDR_20' ) end [2025-03-28 01:31:18] Production.INFO: ProcessCDR(1,14778155,1,1,2) [2025-03-28 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778155', 'tblTempUsageDetail_20' ) start [2025-03-28 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778155', 'tblTempUsageDetail_20' ) end [2025-03-28 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:31:22] Production.INFO: ==1211== Releasing lock... [2025-03-28 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:31:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:32:05 [end_date_ymd] => 2025-03-28 01:32:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:32:05' and `end` < '2025-03-28 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-28 01:32:18] Production.INFO: count ==723 [2025-03-28 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:32:05 - End Time 2025-03-28 01:32:05 [2025-03-28 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778160', 'tblTempUsageDetail_20' ) start [2025-03-28 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778160', 'tblTempUsageDetail_20' ) end [2025-03-28 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778160', 'tblTempVendorCDR_20' ) start [2025-03-28 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778160', 'tblTempVendorCDR_20' ) end [2025-03-28 01:32:18] Production.INFO: ProcessCDR(1,14778160,1,1,2) [2025-03-28 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778160', 'tblTempUsageDetail_20' ) start [2025-03-28 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778160', 'tblTempUsageDetail_20' ) end [2025-03-28 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:32:21] Production.INFO: ==1309== Releasing lock... [2025-03-28 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:32:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:33:06 [end_date_ymd] => 2025-03-28 01:33:06 [RateCDR] => 1 ) [2025-03-28 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:33:06' and `end` < '2025-03-28 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:33:18] Production.INFO: count ==723 [2025-03-28 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:33:06 - End Time 2025-03-28 01:33:06 [2025-03-28 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778165', 'tblTempUsageDetail_20' ) start [2025-03-28 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778165', 'tblTempUsageDetail_20' ) end [2025-03-28 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778165', 'tblTempVendorCDR_20' ) start [2025-03-28 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778165', 'tblTempVendorCDR_20' ) end [2025-03-28 01:33:18] Production.INFO: ProcessCDR(1,14778165,1,1,2) [2025-03-28 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778165', 'tblTempUsageDetail_20' ) start [2025-03-28 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778165', 'tblTempUsageDetail_20' ) end [2025-03-28 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:33:22] Production.INFO: ==1396== Releasing lock... [2025-03-28 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:34:05 [end_date_ymd] => 2025-03-28 01:34:05 [RateCDR] => 1 ) [2025-03-28 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:34:05' and `end` < '2025-03-28 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:34:18] Production.INFO: count ==725 [2025-03-28 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:34:05 - End Time 2025-03-28 01:34:05 [2025-03-28 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778170', 'tblTempUsageDetail_20' ) start [2025-03-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778170', 'tblTempUsageDetail_20' ) end [2025-03-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778170', 'tblTempVendorCDR_20' ) start [2025-03-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778170', 'tblTempVendorCDR_20' ) end [2025-03-28 01:34:18] Production.INFO: ProcessCDR(1,14778170,1,1,2) [2025-03-28 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778170', 'tblTempUsageDetail_20' ) start [2025-03-28 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778170', 'tblTempUsageDetail_20' ) end [2025-03-28 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:34:22] Production.INFO: ==1486== Releasing lock... [2025-03-28 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:34:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:35:05 [end_date_ymd] => 2025-03-28 01:35:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:35:05' and `end` < '2025-03-28 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-28 01:35:18] Production.INFO: count ==725 [2025-03-28 01:35:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:35:05 - End Time 2025-03-28 01:35:05 [2025-03-28 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778175', 'tblTempUsageDetail_20' ) start [2025-03-28 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778175', 'tblTempUsageDetail_20' ) end [2025-03-28 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778175', 'tblTempVendorCDR_20' ) start [2025-03-28 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778175', 'tblTempVendorCDR_20' ) end [2025-03-28 01:35:18] Production.INFO: ProcessCDR(1,14778175,1,1,2) [2025-03-28 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778175', 'tblTempUsageDetail_20' ) start [2025-03-28 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778175', 'tblTempUsageDetail_20' ) end [2025-03-28 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:35:22] Production.INFO: ==1608== Releasing lock... [2025-03-28 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:36:05 [end_date_ymd] => 2025-03-28 01:36:05 [RateCDR] => 1 ) [2025-03-28 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:36:05' and `end` < '2025-03-28 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:36:18] Production.INFO: count ==727 [2025-03-28 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:36:05 - End Time 2025-03-28 01:36:05 [2025-03-28 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778180', 'tblTempUsageDetail_20' ) start [2025-03-28 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778180', 'tblTempUsageDetail_20' ) end [2025-03-28 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778180', 'tblTempVendorCDR_20' ) start [2025-03-28 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778180', 'tblTempVendorCDR_20' ) end [2025-03-28 01:36:18] Production.INFO: ProcessCDR(1,14778180,1,1,2) [2025-03-28 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778180', 'tblTempUsageDetail_20' ) start [2025-03-28 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778180', 'tblTempUsageDetail_20' ) end [2025-03-28 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:36:22] Production.INFO: ==1695== Releasing lock... [2025-03-28 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:36:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:37:06 [end_date_ymd] => 2025-03-28 01:37:06 [RateCDR] => 1 ) [2025-03-28 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-27 22:37:06' and `end` < '2025-03-28 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-28 01:37:18] Production.INFO: count ==722 [2025-03-28 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:37:06 - End Time 2025-03-28 01:37:06 [2025-03-28 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778185', 'tblTempUsageDetail_20' ) start [2025-03-28 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778185', 'tblTempUsageDetail_20' ) end [2025-03-28 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778185', 'tblTempVendorCDR_20' ) start [2025-03-28 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778185', 'tblTempVendorCDR_20' ) end [2025-03-28 01:37:18] Production.INFO: ProcessCDR(1,14778185,1,1,2) [2025-03-28 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778185', 'tblTempUsageDetail_20' ) start [2025-03-28 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778185', 'tblTempUsageDetail_20' ) end [2025-03-28 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:37:22] Production.INFO: ==1780== Releasing lock... [2025-03-28 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:37:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:38:05 [end_date_ymd] => 2025-03-28 01:38:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:38:05' and `end` < '2025-03-28 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-28 01:38:17] Production.INFO: count ==724 [2025-03-28 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:38:05 - End Time 2025-03-28 01:38:05 [2025-03-28 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778190', 'tblTempUsageDetail_20' ) start [2025-03-28 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778190', 'tblTempUsageDetail_20' ) end [2025-03-28 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778190', 'tblTempVendorCDR_20' ) start [2025-03-28 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778190', 'tblTempVendorCDR_20' ) end [2025-03-28 01:38:18] Production.INFO: ProcessCDR(1,14778190,1,1,2) [2025-03-28 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778190', 'tblTempUsageDetail_20' ) start [2025-03-28 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778190', 'tblTempUsageDetail_20' ) end [2025-03-28 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:38:21] Production.INFO: ==1876== Releasing lock... [2025-03-28 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:38:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:39:06 [end_date_ymd] => 2025-03-28 01:39:06 [RateCDR] => 1 ) [2025-03-28 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:39:06' and `end` < '2025-03-28 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:39:18] Production.INFO: count ==729 [2025-03-28 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:39:06 - End Time 2025-03-28 01:39:06 [2025-03-28 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778195', 'tblTempUsageDetail_20' ) start [2025-03-28 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778195', 'tblTempUsageDetail_20' ) end [2025-03-28 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778195', 'tblTempVendorCDR_20' ) start [2025-03-28 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778195', 'tblTempVendorCDR_20' ) end [2025-03-28 01:39:19] Production.INFO: ProcessCDR(1,14778195,1,1,2) [2025-03-28 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778195', 'tblTempUsageDetail_20' ) start [2025-03-28 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778195', 'tblTempUsageDetail_20' ) end [2025-03-28 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:39:22] Production.INFO: ==1968== Releasing lock... [2025-03-28 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:39:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:40:07 [end_date_ymd] => 2025-03-28 01:40:07 [RateCDR] => 1 ) [2025-03-28 01:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:40:07' and `end` < '2025-03-28 01:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:40:19] Production.INFO: count ==742 [2025-03-28 01:40:19] Production.ERROR: pbx CDR StartTime 2025-03-27 22:40:07 - End Time 2025-03-28 01:40:07 [2025-03-28 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778201', 'tblTempUsageDetail_20' ) start [2025-03-28 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778201', 'tblTempUsageDetail_20' ) end [2025-03-28 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778201', 'tblTempVendorCDR_20' ) start [2025-03-28 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778201', 'tblTempVendorCDR_20' ) end [2025-03-28 01:40:19] Production.INFO: ProcessCDR(1,14778201,1,1,2) [2025-03-28 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778201', 'tblTempUsageDetail_20' ) start [2025-03-28 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778201', 'tblTempUsageDetail_20' ) end [2025-03-28 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:40:23] Production.INFO: ==2061== Releasing lock... [2025-03-28 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:40:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:41:05 [end_date_ymd] => 2025-03-28 01:41:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:41:05' and `end` < '2025-03-28 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-28 01:41:18] Production.INFO: count ==760 [2025-03-28 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:41:05 - End Time 2025-03-28 01:41:05 [2025-03-28 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778206', 'tblTempUsageDetail_20' ) start [2025-03-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778206', 'tblTempUsageDetail_20' ) end [2025-03-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778206', 'tblTempVendorCDR_20' ) start [2025-03-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778206', 'tblTempVendorCDR_20' ) end [2025-03-28 01:41:18] Production.INFO: ProcessCDR(1,14778206,1,1,2) [2025-03-28 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778206', 'tblTempUsageDetail_20' ) start [2025-03-28 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778206', 'tblTempUsageDetail_20' ) end [2025-03-28 01:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:41:23] Production.INFO: ==2149== Releasing lock... [2025-03-28 01:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:41:23] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:42:05 [end_date_ymd] => 2025-03-28 01:42:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:42:05' and `end` < '2025-03-28 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-28 01:42:18] Production.INFO: count ==766 [2025-03-28 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:42:05 - End Time 2025-03-28 01:42:05 [2025-03-28 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778211', 'tblTempUsageDetail_20' ) start [2025-03-28 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778211', 'tblTempUsageDetail_20' ) end [2025-03-28 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778211', 'tblTempVendorCDR_20' ) start [2025-03-28 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778211', 'tblTempVendorCDR_20' ) end [2025-03-28 01:42:18] Production.INFO: ProcessCDR(1,14778211,1,1,2) [2025-03-28 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778211', 'tblTempUsageDetail_20' ) start [2025-03-28 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778211', 'tblTempUsageDetail_20' ) end [2025-03-28 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:42:22] Production.INFO: ==2277== Releasing lock... [2025-03-28 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:42:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:43:05 [end_date_ymd] => 2025-03-28 01:43:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:43:05' and `end` < '2025-03-28 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-28 01:43:18] Production.INFO: count ==766 [2025-03-28 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:43:05 - End Time 2025-03-28 01:43:05 [2025-03-28 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778216', 'tblTempUsageDetail_20' ) start [2025-03-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778216', 'tblTempUsageDetail_20' ) end [2025-03-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778216', 'tblTempVendorCDR_20' ) start [2025-03-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778216', 'tblTempVendorCDR_20' ) end [2025-03-28 01:43:18] Production.INFO: ProcessCDR(1,14778216,1,1,2) [2025-03-28 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778216', 'tblTempUsageDetail_20' ) start [2025-03-28 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778216', 'tblTempUsageDetail_20' ) end [2025-03-28 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:43:22] Production.INFO: ==2364== Releasing lock... [2025-03-28 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:43:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:44:06 [end_date_ymd] => 2025-03-28 01:44:06 [RateCDR] => 1 ) [2025-03-28 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:44:06' and `end` < '2025-03-28 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:44:18] Production.INFO: count ==764 [2025-03-28 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:44:06 - End Time 2025-03-28 01:44:06 [2025-03-28 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778221', 'tblTempUsageDetail_20' ) start [2025-03-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778221', 'tblTempUsageDetail_20' ) end [2025-03-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778221', 'tblTempVendorCDR_20' ) start [2025-03-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778221', 'tblTempVendorCDR_20' ) end [2025-03-28 01:44:18] Production.INFO: ProcessCDR(1,14778221,1,1,2) [2025-03-28 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778221', 'tblTempUsageDetail_20' ) start [2025-03-28 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778221', 'tblTempUsageDetail_20' ) end [2025-03-28 01:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:44:23] Production.INFO: ==2449== Releasing lock... [2025-03-28 01:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:44:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-28 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:45:05 [end_date_ymd] => 2025-03-28 01:45:05 [RateCDR] => 1 ) [2025-03-28 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:45:05' and `end` < '2025-03-28 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:45:18] Production.INFO: count ==767 [2025-03-28 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:45:05 - End Time 2025-03-28 01:45:05 [2025-03-28 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778226', 'tblTempUsageDetail_20' ) start [2025-03-28 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778226', 'tblTempUsageDetail_20' ) end [2025-03-28 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778226', 'tblTempVendorCDR_20' ) start [2025-03-28 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778226', 'tblTempVendorCDR_20' ) end [2025-03-28 01:45:18] Production.INFO: ProcessCDR(1,14778226,1,1,2) [2025-03-28 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778226', 'tblTempUsageDetail_20' ) start [2025-03-28 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778226', 'tblTempUsageDetail_20' ) end [2025-03-28 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:45:21] Production.INFO: ==2534== Releasing lock... [2025-03-28 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:45:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:46:06 [end_date_ymd] => 2025-03-28 01:46:06 [RateCDR] => 1 ) [2025-03-28 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:46:06' and `end` < '2025-03-28 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:46:18] Production.INFO: count ==756 [2025-03-28 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:46:06 - End Time 2025-03-28 01:46:06 [2025-03-28 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778231', 'tblTempUsageDetail_20' ) start [2025-03-28 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778231', 'tblTempUsageDetail_20' ) end [2025-03-28 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778231', 'tblTempVendorCDR_20' ) start [2025-03-28 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778231', 'tblTempVendorCDR_20' ) end [2025-03-28 01:46:18] Production.INFO: ProcessCDR(1,14778231,1,1,2) [2025-03-28 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778231', 'tblTempUsageDetail_20' ) start [2025-03-28 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778231', 'tblTempUsageDetail_20' ) end [2025-03-28 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:46:22] Production.INFO: ==2625== Releasing lock... [2025-03-28 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:46:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:47:05 [end_date_ymd] => 2025-03-28 01:47:05 [RateCDR] => 1 ) [2025-03-28 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:47:05' and `end` < '2025-03-28 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:47:17] Production.INFO: count ==763 [2025-03-28 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:47:05 - End Time 2025-03-28 01:47:05 [2025-03-28 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778236', 'tblTempUsageDetail_20' ) start [2025-03-28 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778236', 'tblTempUsageDetail_20' ) end [2025-03-28 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778236', 'tblTempVendorCDR_20' ) start [2025-03-28 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778236', 'tblTempVendorCDR_20' ) end [2025-03-28 01:47:18] Production.INFO: ProcessCDR(1,14778236,1,1,2) [2025-03-28 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778236', 'tblTempUsageDetail_20' ) start [2025-03-28 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778236', 'tblTempUsageDetail_20' ) end [2025-03-28 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:47:21] Production.INFO: ==2708== Releasing lock... [2025-03-28 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:47:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-28 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:48:05 [end_date_ymd] => 2025-03-28 01:48:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:48:05' and `end` < '2025-03-28 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-28 01:48:18] Production.INFO: count ==764 [2025-03-28 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:48:05 - End Time 2025-03-28 01:48:05 [2025-03-28 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778241', 'tblTempUsageDetail_20' ) start [2025-03-28 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778241', 'tblTempUsageDetail_20' ) end [2025-03-28 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778241', 'tblTempVendorCDR_20' ) start [2025-03-28 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778241', 'tblTempVendorCDR_20' ) end [2025-03-28 01:48:18] Production.INFO: ProcessCDR(1,14778241,1,1,2) [2025-03-28 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778241', 'tblTempUsageDetail_20' ) start [2025-03-28 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778241', 'tblTempUsageDetail_20' ) end [2025-03-28 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:48:23] Production.INFO: ==2799== Releasing lock... [2025-03-28 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:48:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:49:05 [end_date_ymd] => 2025-03-28 01:49:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:49:05' and `end` < '2025-03-28 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-28 01:49:18] Production.INFO: count ==771 [2025-03-28 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:49:05 - End Time 2025-03-28 01:49:05 [2025-03-28 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778246', 'tblTempUsageDetail_20' ) start [2025-03-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778246', 'tblTempUsageDetail_20' ) end [2025-03-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778246', 'tblTempVendorCDR_20' ) start [2025-03-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778246', 'tblTempVendorCDR_20' ) end [2025-03-28 01:49:18] Production.INFO: ProcessCDR(1,14778246,1,1,2) [2025-03-28 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778246', 'tblTempUsageDetail_20' ) start [2025-03-28 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778246', 'tblTempUsageDetail_20' ) end [2025-03-28 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:49:23] Production.INFO: ==2885== Releasing lock... [2025-03-28 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:49:23] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:50:06 [end_date_ymd] => 2025-03-28 01:50:06 [RateCDR] => 1 ) [2025-03-28 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-27 22:50:06' and `end` < '2025-03-28 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-28 01:50:19] Production.INFO: count ==784 [2025-03-28 01:50:19] Production.ERROR: pbx CDR StartTime 2025-03-27 22:50:06 - End Time 2025-03-28 01:50:06 [2025-03-28 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778251', 'tblTempUsageDetail_20' ) start [2025-03-28 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778251', 'tblTempUsageDetail_20' ) end [2025-03-28 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778251', 'tblTempVendorCDR_20' ) start [2025-03-28 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778251', 'tblTempVendorCDR_20' ) end [2025-03-28 01:50:19] Production.INFO: ProcessCDR(1,14778251,1,1,2) [2025-03-28 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778251', 'tblTempUsageDetail_20' ) start [2025-03-28 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778251', 'tblTempUsageDetail_20' ) end [2025-03-28 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:50:23] Production.INFO: ==2976== Releasing lock... [2025-03-28 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:50:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:51:05 [end_date_ymd] => 2025-03-28 01:51:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:51:05' and `end` < '2025-03-28 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-28 01:51:18] Production.INFO: count ==771 [2025-03-28 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:51:05 - End Time 2025-03-28 01:51:05 [2025-03-28 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778257', 'tblTempUsageDetail_20' ) start [2025-03-28 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778257', 'tblTempUsageDetail_20' ) end [2025-03-28 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778257', 'tblTempVendorCDR_20' ) start [2025-03-28 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778257', 'tblTempVendorCDR_20' ) end [2025-03-28 01:51:18] Production.INFO: ProcessCDR(1,14778257,1,1,2) [2025-03-28 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778257', 'tblTempUsageDetail_20' ) start [2025-03-28 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778257', 'tblTempUsageDetail_20' ) end [2025-03-28 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:51:21] Production.INFO: ==3064== Releasing lock... [2025-03-28 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:51:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:52:06 [end_date_ymd] => 2025-03-28 01:52:06 [RateCDR] => 1 ) [2025-03-28 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-27 22:52:06' and `end` < '2025-03-28 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-28 01:52:18] Production.INFO: count ==769 [2025-03-28 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:52:06 - End Time 2025-03-28 01:52:06 [2025-03-28 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778262', 'tblTempUsageDetail_20' ) start [2025-03-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778262', 'tblTempUsageDetail_20' ) end [2025-03-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778262', 'tblTempVendorCDR_20' ) start [2025-03-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778262', 'tblTempVendorCDR_20' ) end [2025-03-28 01:52:18] Production.INFO: ProcessCDR(1,14778262,1,1,2) [2025-03-28 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778262', 'tblTempUsageDetail_20' ) start [2025-03-28 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778262', 'tblTempUsageDetail_20' ) end [2025-03-28 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:52:22] Production.INFO: ==3160== Releasing lock... [2025-03-28 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:52:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-28 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:53:05 [end_date_ymd] => 2025-03-28 01:53:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:53:05' and `end` < '2025-03-28 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-28 01:53:17] Production.INFO: count ==770 [2025-03-28 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:53:05 - End Time 2025-03-28 01:53:05 [2025-03-28 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778267', 'tblTempUsageDetail_20' ) start [2025-03-28 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778267', 'tblTempUsageDetail_20' ) end [2025-03-28 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778267', 'tblTempVendorCDR_20' ) start [2025-03-28 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778267', 'tblTempVendorCDR_20' ) end [2025-03-28 01:53:18] Production.INFO: ProcessCDR(1,14778267,1,1,2) [2025-03-28 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778267', 'tblTempUsageDetail_20' ) start [2025-03-28 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778267', 'tblTempUsageDetail_20' ) end [2025-03-28 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:53:21] Production.INFO: ==3249== Releasing lock... [2025-03-28 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:53:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-28 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:54:05 [end_date_ymd] => 2025-03-28 01:54:05 [RateCDR] => 1 ) [2025-03-28 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:54:05' and `end` < '2025-03-28 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:54:18] Production.INFO: count ==769 [2025-03-28 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:54:05 - End Time 2025-03-28 01:54:05 [2025-03-28 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778272', 'tblTempUsageDetail_20' ) start [2025-03-28 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778272', 'tblTempUsageDetail_20' ) end [2025-03-28 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778272', 'tblTempVendorCDR_20' ) start [2025-03-28 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778272', 'tblTempVendorCDR_20' ) end [2025-03-28 01:54:18] Production.INFO: ProcessCDR(1,14778272,1,1,2) [2025-03-28 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778272', 'tblTempUsageDetail_20' ) start [2025-03-28 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778272', 'tblTempUsageDetail_20' ) end [2025-03-28 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:54:21] Production.INFO: ==3341== Releasing lock... [2025-03-28 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:54:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:55:06 [end_date_ymd] => 2025-03-28 01:55:06 [RateCDR] => 1 ) [2025-03-28 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:55:06' and `end` < '2025-03-28 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:55:18] Production.INFO: count ==765 [2025-03-28 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:55:06 - End Time 2025-03-28 01:55:06 [2025-03-28 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778277', 'tblTempUsageDetail_20' ) start [2025-03-28 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778277', 'tblTempUsageDetail_20' ) end [2025-03-28 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778277', 'tblTempVendorCDR_20' ) start [2025-03-28 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778277', 'tblTempVendorCDR_20' ) end [2025-03-28 01:55:18] Production.INFO: ProcessCDR(1,14778277,1,1,2) [2025-03-28 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778277', 'tblTempUsageDetail_20' ) start [2025-03-28 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778277', 'tblTempUsageDetail_20' ) end [2025-03-28 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:55:22] Production.INFO: ==3440== Releasing lock... [2025-03-28 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:55:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:56:05 [end_date_ymd] => 2025-03-28 01:56:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:56:05' and `end` < '2025-03-28 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-28 01:56:18] Production.INFO: count ==764 [2025-03-28 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:56:05 - End Time 2025-03-28 01:56:05 [2025-03-28 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778282', 'tblTempUsageDetail_20' ) start [2025-03-28 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778282', 'tblTempUsageDetail_20' ) end [2025-03-28 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778282', 'tblTempVendorCDR_20' ) start [2025-03-28 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778282', 'tblTempVendorCDR_20' ) end [2025-03-28 01:56:18] Production.INFO: ProcessCDR(1,14778282,1,1,2) [2025-03-28 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778282', 'tblTempUsageDetail_20' ) start [2025-03-28 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778282', 'tblTempUsageDetail_20' ) end [2025-03-28 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:56:22] Production.INFO: ==3531== Releasing lock... [2025-03-28 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:56:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:57:05 [end_date_ymd] => 2025-03-28 01:57:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:57:05' and `end` < '2025-03-28 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-28 01:57:18] Production.INFO: count ==753 [2025-03-28 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:57:05 - End Time 2025-03-28 01:57:05 [2025-03-28 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778287', 'tblTempUsageDetail_20' ) start [2025-03-28 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778287', 'tblTempUsageDetail_20' ) end [2025-03-28 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778287', 'tblTempVendorCDR_20' ) start [2025-03-28 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778287', 'tblTempVendorCDR_20' ) end [2025-03-28 01:57:18] Production.INFO: ProcessCDR(1,14778287,1,1,2) [2025-03-28 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778287', 'tblTempUsageDetail_20' ) start [2025-03-28 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778287', 'tblTempUsageDetail_20' ) end [2025-03-28 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:57:22] Production.INFO: ==3625== Releasing lock... [2025-03-28 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:57:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:58:06 [end_date_ymd] => 2025-03-28 01:58:06 [RateCDR] => 1 ) [2025-03-28 01:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 22:58:06' and `end` < '2025-03-28 01:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 01:58:18] Production.INFO: count ==743 [2025-03-28 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:58:06 - End Time 2025-03-28 01:58:06 [2025-03-28 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778292', 'tblTempUsageDetail_20' ) start [2025-03-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778292', 'tblTempUsageDetail_20' ) end [2025-03-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778292', 'tblTempVendorCDR_20' ) start [2025-03-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778292', 'tblTempVendorCDR_20' ) end [2025-03-28 01:58:18] Production.INFO: ProcessCDR(1,14778292,1,1,2) [2025-03-28 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778292', 'tblTempUsageDetail_20' ) start [2025-03-28 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778292', 'tblTempUsageDetail_20' ) end [2025-03-28 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:58:23] Production.INFO: ==3758== Releasing lock... [2025-03-28 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:58:23] Production.INFO: 34 MB #Memory Used# [2025-03-28 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 22:59:05 [end_date_ymd] => 2025-03-28 01:59:05 [RateCDR] => 1 ) [2025-03-28 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-27 22:59:05' and `end` < '2025-03-28 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-28 01:59:18] Production.INFO: count ==728 [2025-03-28 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-27 22:59:05 - End Time 2025-03-28 01:59:05 [2025-03-28 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778297', 'tblTempUsageDetail_20' ) start [2025-03-28 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778297', 'tblTempUsageDetail_20' ) end [2025-03-28 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778297', 'tblTempVendorCDR_20' ) start [2025-03-28 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778297', 'tblTempVendorCDR_20' ) end [2025-03-28 01:59:18] Production.INFO: ProcessCDR(1,14778297,1,1,2) [2025-03-28 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778297', 'tblTempUsageDetail_20' ) start [2025-03-28 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778297', 'tblTempUsageDetail_20' ) end [2025-03-28 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 01:59:22] Production.INFO: ==3852== Releasing lock... [2025-03-28 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 01:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:00:06 [end_date_ymd] => 2025-03-28 02:00:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:00:06' and `end` < '2025-03-28 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-28 02:00:19] Production.INFO: count ==725 [2025-03-28 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:00:06 - End Time 2025-03-28 02:00:06 [2025-03-28 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778303', 'tblTempUsageDetail_20' ) start [2025-03-28 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778303', 'tblTempUsageDetail_20' ) end [2025-03-28 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778303', 'tblTempVendorCDR_20' ) start [2025-03-28 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778303', 'tblTempVendorCDR_20' ) end [2025-03-28 02:00:19] Production.INFO: ProcessCDR(1,14778303,1,1,2) [2025-03-28 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778303', 'tblTempUsageDetail_20' ) start [2025-03-28 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778303', 'tblTempUsageDetail_20' ) end [2025-03-28 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:00:22] Production.INFO: ==3946== Releasing lock... [2025-03-28 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:00:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:01:06 [end_date_ymd] => 2025-03-28 02:01:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:01:06' and `end` < '2025-03-28 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-28 02:01:18] Production.INFO: count ==735 [2025-03-28 02:01:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:01:06 - End Time 2025-03-28 02:01:06 [2025-03-28 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778308', 'tblTempUsageDetail_20' ) start [2025-03-28 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778308', 'tblTempUsageDetail_20' ) end [2025-03-28 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778308', 'tblTempVendorCDR_20' ) start [2025-03-28 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778308', 'tblTempVendorCDR_20' ) end [2025-03-28 02:01:19] Production.INFO: ProcessCDR(1,14778308,1,1,2) [2025-03-28 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778308', 'tblTempUsageDetail_20' ) start [2025-03-28 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778308', 'tblTempUsageDetail_20' ) end [2025-03-28 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:01:23] Production.INFO: ==4060== Releasing lock... [2025-03-28 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:01:23] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:02:06 [end_date_ymd] => 2025-03-28 02:02:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:02:06' and `end` < '2025-03-28 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-28 02:02:18] Production.INFO: count ==734 [2025-03-28 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:02:06 - End Time 2025-03-28 02:02:06 [2025-03-28 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778313', 'tblTempUsageDetail_20' ) start [2025-03-28 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778313', 'tblTempUsageDetail_20' ) end [2025-03-28 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778313', 'tblTempVendorCDR_20' ) start [2025-03-28 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778313', 'tblTempVendorCDR_20' ) end [2025-03-28 02:02:18] Production.INFO: ProcessCDR(1,14778313,1,1,2) [2025-03-28 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778313', 'tblTempUsageDetail_20' ) start [2025-03-28 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778313', 'tblTempUsageDetail_20' ) end [2025-03-28 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:02:22] Production.INFO: ==4238== Releasing lock... [2025-03-28 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:02:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:03:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:03:07 [end_date_ymd] => 2025-03-28 02:03:07 [RateCDR] => 1 ) [2025-03-28 02:03: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-27 23:03:07' and `end` < '2025-03-28 02:03: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-28 02:03:19] Production.INFO: count ==738 [2025-03-28 02:03:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:03:07 - End Time 2025-03-28 02:03:07 [2025-03-28 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778318', 'tblTempUsageDetail_20' ) start [2025-03-28 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778318', 'tblTempUsageDetail_20' ) end [2025-03-28 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778318', 'tblTempVendorCDR_20' ) start [2025-03-28 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778318', 'tblTempVendorCDR_20' ) end [2025-03-28 02:03:19] Production.INFO: ProcessCDR(1,14778318,1,1,2) [2025-03-28 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778318', 'tblTempUsageDetail_20' ) start [2025-03-28 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778318', 'tblTempUsageDetail_20' ) end [2025-03-28 02:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:03:23] Production.INFO: ==4330== Releasing lock... [2025-03-28 02:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:03:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:04:05 [end_date_ymd] => 2025-03-28 02:04:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:04:05' and `end` < '2025-03-28 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-28 02:04:18] Production.INFO: count ==734 [2025-03-28 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:04:05 - End Time 2025-03-28 02:04:05 [2025-03-28 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778323', 'tblTempUsageDetail_20' ) start [2025-03-28 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778323', 'tblTempUsageDetail_20' ) end [2025-03-28 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778323', 'tblTempVendorCDR_20' ) start [2025-03-28 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778323', 'tblTempVendorCDR_20' ) end [2025-03-28 02:04:18] Production.INFO: ProcessCDR(1,14778323,1,1,2) [2025-03-28 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778323', 'tblTempUsageDetail_20' ) start [2025-03-28 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778323', 'tblTempUsageDetail_20' ) end [2025-03-28 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:04:22] Production.INFO: ==4428== Releasing lock... [2025-03-28 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:04:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:05:06 [end_date_ymd] => 2025-03-28 02:05:06 [RateCDR] => 1 ) [2025-03-28 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:05:06' and `end` < '2025-03-28 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:05:18] Production.INFO: count ==725 [2025-03-28 02:05:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:05:06 - End Time 2025-03-28 02:05:06 [2025-03-28 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778328', 'tblTempUsageDetail_20' ) start [2025-03-28 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778328', 'tblTempUsageDetail_20' ) end [2025-03-28 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778328', 'tblTempVendorCDR_20' ) start [2025-03-28 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778328', 'tblTempVendorCDR_20' ) end [2025-03-28 02:05:19] Production.INFO: ProcessCDR(1,14778328,1,1,2) [2025-03-28 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778328', 'tblTempUsageDetail_20' ) start [2025-03-28 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778328', 'tblTempUsageDetail_20' ) end [2025-03-28 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:05:22] Production.INFO: ==4531== Releasing lock... [2025-03-28 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:05:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:06:05 [end_date_ymd] => 2025-03-28 02:06:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:06:05' and `end` < '2025-03-28 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-28 02:06:17] Production.INFO: count ==718 [2025-03-28 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:06:05 - End Time 2025-03-28 02:06:05 [2025-03-28 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778333', 'tblTempUsageDetail_20' ) start [2025-03-28 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778333', 'tblTempUsageDetail_20' ) end [2025-03-28 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778333', 'tblTempVendorCDR_20' ) start [2025-03-28 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778333', 'tblTempVendorCDR_20' ) end [2025-03-28 02:06:18] Production.INFO: ProcessCDR(1,14778333,1,1,2) [2025-03-28 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778333', 'tblTempUsageDetail_20' ) start [2025-03-28 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778333', 'tblTempUsageDetail_20' ) end [2025-03-28 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:06:21] Production.INFO: ==4630== Releasing lock... [2025-03-28 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:06:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:07:06 [end_date_ymd] => 2025-03-28 02:07:06 [RateCDR] => 1 ) [2025-03-28 02:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:07:06' and `end` < '2025-03-28 02:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:07:18] Production.INFO: count ==710 [2025-03-28 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:07:06 - End Time 2025-03-28 02:07:06 [2025-03-28 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778338', 'tblTempUsageDetail_20' ) start [2025-03-28 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778338', 'tblTempUsageDetail_20' ) end [2025-03-28 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778338', 'tblTempVendorCDR_20' ) start [2025-03-28 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778338', 'tblTempVendorCDR_20' ) end [2025-03-28 02:07:18] Production.INFO: ProcessCDR(1,14778338,1,1,2) [2025-03-28 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778338', 'tblTempUsageDetail_20' ) start [2025-03-28 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778338', 'tblTempUsageDetail_20' ) end [2025-03-28 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:07:22] Production.INFO: ==4727== Releasing lock... [2025-03-28 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:07:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:08:06 [end_date_ymd] => 2025-03-28 02:08:06 [RateCDR] => 1 ) [2025-03-28 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:08:06' and `end` < '2025-03-28 02:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:08:18] Production.INFO: count ==707 [2025-03-28 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:08:06 - End Time 2025-03-28 02:08:06 [2025-03-28 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778343', 'tblTempUsageDetail_20' ) start [2025-03-28 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778343', 'tblTempUsageDetail_20' ) end [2025-03-28 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778343', 'tblTempVendorCDR_20' ) start [2025-03-28 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778343', 'tblTempVendorCDR_20' ) end [2025-03-28 02:08:18] Production.INFO: ProcessCDR(1,14778343,1,1,2) [2025-03-28 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778343', 'tblTempUsageDetail_20' ) start [2025-03-28 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778343', 'tblTempUsageDetail_20' ) end [2025-03-28 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:08:22] Production.INFO: ==4821== Releasing lock... [2025-03-28 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:08:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:09:05 [end_date_ymd] => 2025-03-28 02:09:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:09:05' and `end` < '2025-03-28 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-28 02:09:18] Production.INFO: count ==704 [2025-03-28 02:09:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:09:05 - End Time 2025-03-28 02:09:05 [2025-03-28 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778348', 'tblTempUsageDetail_20' ) start [2025-03-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778348', 'tblTempUsageDetail_20' ) end [2025-03-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778348', 'tblTempVendorCDR_20' ) start [2025-03-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778348', 'tblTempVendorCDR_20' ) end [2025-03-28 02:09:18] Production.INFO: ProcessCDR(1,14778348,1,1,2) [2025-03-28 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778348', 'tblTempUsageDetail_20' ) start [2025-03-28 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778348', 'tblTempUsageDetail_20' ) end [2025-03-28 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:09:22] Production.INFO: ==4917== Releasing lock... [2025-03-28 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:09:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:10:06 [end_date_ymd] => 2025-03-28 02:10:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:10:06' and `end` < '2025-03-28 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-28 02:10:19] Production.INFO: count ==708 [2025-03-28 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:10:06 - End Time 2025-03-28 02:10:06 [2025-03-28 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778354', 'tblTempUsageDetail_20' ) start [2025-03-28 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778354', 'tblTempUsageDetail_20' ) end [2025-03-28 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778354', 'tblTempVendorCDR_20' ) start [2025-03-28 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778354', 'tblTempVendorCDR_20' ) end [2025-03-28 02:10:19] Production.INFO: ProcessCDR(1,14778354,1,1,2) [2025-03-28 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778354', 'tblTempUsageDetail_20' ) start [2025-03-28 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778354', 'tblTempUsageDetail_20' ) end [2025-03-28 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:10:23] Production.INFO: ==5013== Releasing lock... [2025-03-28 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:10:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:11:06 [end_date_ymd] => 2025-03-28 02:11:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:11:06' and `end` < '2025-03-28 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-28 02:11:18] Production.INFO: count ==713 [2025-03-28 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:11:06 - End Time 2025-03-28 02:11:06 [2025-03-28 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778359', 'tblTempUsageDetail_20' ) start [2025-03-28 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778359', 'tblTempUsageDetail_20' ) end [2025-03-28 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778359', 'tblTempVendorCDR_20' ) start [2025-03-28 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778359', 'tblTempVendorCDR_20' ) end [2025-03-28 02:11:18] Production.INFO: ProcessCDR(1,14778359,1,1,2) [2025-03-28 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778359', 'tblTempUsageDetail_20' ) start [2025-03-28 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778359', 'tblTempUsageDetail_20' ) end [2025-03-28 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:11:22] Production.INFO: ==5112== Releasing lock... [2025-03-28 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:11:22] Production.INFO: 33 MB #Memory Used# [2025-03-28 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:12:05 [end_date_ymd] => 2025-03-28 02:12:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:12:05' and `end` < '2025-03-28 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-28 02:12:17] Production.INFO: count ==712 [2025-03-28 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:12:05 - End Time 2025-03-28 02:12:05 [2025-03-28 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778364', 'tblTempUsageDetail_20' ) start [2025-03-28 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778364', 'tblTempUsageDetail_20' ) end [2025-03-28 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778364', 'tblTempVendorCDR_20' ) start [2025-03-28 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778364', 'tblTempVendorCDR_20' ) end [2025-03-28 02:12:18] Production.INFO: ProcessCDR(1,14778364,1,1,2) [2025-03-28 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778364', 'tblTempUsageDetail_20' ) start [2025-03-28 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778364', 'tblTempUsageDetail_20' ) end [2025-03-28 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:12:21] Production.INFO: ==5214== Releasing lock... [2025-03-28 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:13:06 [end_date_ymd] => 2025-03-28 02:13:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:13:06' and `end` < '2025-03-28 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-28 02:13:18] Production.INFO: count ==713 [2025-03-28 02:13:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:13:06 - End Time 2025-03-28 02:13:06 [2025-03-28 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778369', 'tblTempUsageDetail_20' ) start [2025-03-28 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778369', 'tblTempUsageDetail_20' ) end [2025-03-28 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778369', 'tblTempVendorCDR_20' ) start [2025-03-28 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778369', 'tblTempVendorCDR_20' ) end [2025-03-28 02:13:19] Production.INFO: ProcessCDR(1,14778369,1,1,2) [2025-03-28 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778369', 'tblTempUsageDetail_20' ) start [2025-03-28 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778369', 'tblTempUsageDetail_20' ) end [2025-03-28 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:13:22] Production.INFO: ==5350== Releasing lock... [2025-03-28 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:14:05 [end_date_ymd] => 2025-03-28 02:14:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:14:05' and `end` < '2025-03-28 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-28 02:14:18] Production.INFO: count ==716 [2025-03-28 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:14:05 - End Time 2025-03-28 02:14:05 [2025-03-28 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778374', 'tblTempUsageDetail_20' ) start [2025-03-28 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778374', 'tblTempUsageDetail_20' ) end [2025-03-28 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778374', 'tblTempVendorCDR_20' ) start [2025-03-28 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778374', 'tblTempVendorCDR_20' ) end [2025-03-28 02:14:18] Production.INFO: ProcessCDR(1,14778374,1,1,2) [2025-03-28 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778374', 'tblTempUsageDetail_20' ) start [2025-03-28 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778374', 'tblTempUsageDetail_20' ) end [2025-03-28 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:14:21] Production.INFO: ==5440== Releasing lock... [2025-03-28 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:14:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:15:05 [end_date_ymd] => 2025-03-28 02:15:05 [RateCDR] => 1 ) [2025-03-28 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:15:05' and `end` < '2025-03-28 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:15:18] Production.INFO: count ==712 [2025-03-28 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:15:05 - End Time 2025-03-28 02:15:05 [2025-03-28 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778379', 'tblTempUsageDetail_20' ) start [2025-03-28 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778379', 'tblTempUsageDetail_20' ) end [2025-03-28 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778379', 'tblTempVendorCDR_20' ) start [2025-03-28 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778379', 'tblTempVendorCDR_20' ) end [2025-03-28 02:15:18] Production.INFO: ProcessCDR(1,14778379,1,1,2) [2025-03-28 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778379', 'tblTempUsageDetail_20' ) start [2025-03-28 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778379', 'tblTempUsageDetail_20' ) end [2025-03-28 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:15:21] Production.INFO: ==5535== Releasing lock... [2025-03-28 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:16:06 [end_date_ymd] => 2025-03-28 02:16:06 [RateCDR] => 1 ) [2025-03-28 02:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:16:06' and `end` < '2025-03-28 02:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:16:18] Production.INFO: count ==707 [2025-03-28 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:16:06 - End Time 2025-03-28 02:16:06 [2025-03-28 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778384', 'tblTempUsageDetail_20' ) start [2025-03-28 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778384', 'tblTempUsageDetail_20' ) end [2025-03-28 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778384', 'tblTempVendorCDR_20' ) start [2025-03-28 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778384', 'tblTempVendorCDR_20' ) end [2025-03-28 02:16:18] Production.INFO: ProcessCDR(1,14778384,1,1,2) [2025-03-28 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778384', 'tblTempUsageDetail_20' ) start [2025-03-28 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778384', 'tblTempUsageDetail_20' ) end [2025-03-28 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:16:22] Production.INFO: ==5621== Releasing lock... [2025-03-28 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:16:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:17:05 [end_date_ymd] => 2025-03-28 02:17:05 [RateCDR] => 1 ) [2025-03-28 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:17:05' and `end` < '2025-03-28 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:17:18] Production.INFO: count ==704 [2025-03-28 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:17:05 - End Time 2025-03-28 02:17:05 [2025-03-28 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778389', 'tblTempUsageDetail_20' ) start [2025-03-28 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778389', 'tblTempUsageDetail_20' ) end [2025-03-28 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778389', 'tblTempVendorCDR_20' ) start [2025-03-28 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778389', 'tblTempVendorCDR_20' ) end [2025-03-28 02:17:18] Production.INFO: ProcessCDR(1,14778389,1,1,2) [2025-03-28 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778389', 'tblTempUsageDetail_20' ) start [2025-03-28 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778389', 'tblTempUsageDetail_20' ) end [2025-03-28 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:17:22] Production.INFO: ==5715== Releasing lock... [2025-03-28 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:17:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:18:05 [end_date_ymd] => 2025-03-28 02:18:05 [RateCDR] => 1 ) [2025-03-28 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:18:05' and `end` < '2025-03-28 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:18:17] Production.INFO: count ==707 [2025-03-28 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:18:05 - End Time 2025-03-28 02:18:05 [2025-03-28 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778394', 'tblTempUsageDetail_20' ) start [2025-03-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778394', 'tblTempUsageDetail_20' ) end [2025-03-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778394', 'tblTempVendorCDR_20' ) start [2025-03-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778394', 'tblTempVendorCDR_20' ) end [2025-03-28 02:18:18] Production.INFO: ProcessCDR(1,14778394,1,1,2) [2025-03-28 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778394', 'tblTempUsageDetail_20' ) start [2025-03-28 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778394', 'tblTempUsageDetail_20' ) end [2025-03-28 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:18:21] Production.INFO: ==5823== Releasing lock... [2025-03-28 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:18:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:19:05 [end_date_ymd] => 2025-03-28 02:19:05 [RateCDR] => 1 ) [2025-03-28 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:19:05' and `end` < '2025-03-28 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:19:18] Production.INFO: count ==722 [2025-03-28 02:19:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:19:05 - End Time 2025-03-28 02:19:05 [2025-03-28 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778399', 'tblTempUsageDetail_20' ) start [2025-03-28 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778399', 'tblTempUsageDetail_20' ) end [2025-03-28 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778399', 'tblTempVendorCDR_20' ) start [2025-03-28 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778399', 'tblTempVendorCDR_20' ) end [2025-03-28 02:19:18] Production.INFO: ProcessCDR(1,14778399,1,1,2) [2025-03-28 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778399', 'tblTempUsageDetail_20' ) start [2025-03-28 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778399', 'tblTempUsageDetail_20' ) end [2025-03-28 02:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:19:23] Production.INFO: ==5917== Releasing lock... [2025-03-28 02:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:19:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 02:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:20:07 [end_date_ymd] => 2025-03-28 02:20:07 [RateCDR] => 1 ) [2025-03-28 02: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-27 23:20:07' and `end` < '2025-03-28 02: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-28 02:20:19] Production.INFO: count ==731 [2025-03-28 02:20:20] Production.ERROR: pbx CDR StartTime 2025-03-27 23:20:07 - End Time 2025-03-28 02:20:07 [2025-03-28 02:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778405', 'tblTempUsageDetail_20' ) start [2025-03-28 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778405', 'tblTempUsageDetail_20' ) end [2025-03-28 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778405', 'tblTempVendorCDR_20' ) start [2025-03-28 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778405', 'tblTempVendorCDR_20' ) end [2025-03-28 02:20:20] Production.INFO: ProcessCDR(1,14778405,1,1,2) [2025-03-28 02:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778405', 'tblTempUsageDetail_20' ) start [2025-03-28 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778405', 'tblTempUsageDetail_20' ) end [2025-03-28 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:20:23] Production.INFO: ==6012== Releasing lock... [2025-03-28 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:20:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:21:05 [end_date_ymd] => 2025-03-28 02:21:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:21:05' and `end` < '2025-03-28 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-28 02:21:17] Production.INFO: count ==737 [2025-03-28 02:21:17] Production.ERROR: pbx CDR StartTime 2025-03-27 23:21:05 - End Time 2025-03-28 02:21:05 [2025-03-28 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778410', 'tblTempUsageDetail_20' ) start [2025-03-28 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778410', 'tblTempUsageDetail_20' ) end [2025-03-28 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778410', 'tblTempVendorCDR_20' ) start [2025-03-28 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778410', 'tblTempVendorCDR_20' ) end [2025-03-28 02:21:17] Production.INFO: ProcessCDR(1,14778410,1,1,2) [2025-03-28 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778410', 'tblTempUsageDetail_20' ) start [2025-03-28 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778410', 'tblTempUsageDetail_20' ) end [2025-03-28 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:21:21] Production.INFO: ==6119== Releasing lock... [2025-03-28 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:21:21] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:22:06 [end_date_ymd] => 2025-03-28 02:22:06 [RateCDR] => 1 ) [2025-03-28 02: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-27 23:22:06' and `end` < '2025-03-28 02: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-28 02:22:19] Production.INFO: count ==737 [2025-03-28 02:22:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:22:06 - End Time 2025-03-28 02:22:06 [2025-03-28 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778415', 'tblTempUsageDetail_20' ) start [2025-03-28 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778415', 'tblTempUsageDetail_20' ) end [2025-03-28 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778415', 'tblTempVendorCDR_20' ) start [2025-03-28 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778415', 'tblTempVendorCDR_20' ) end [2025-03-28 02:22:19] Production.INFO: ProcessCDR(1,14778415,1,1,2) [2025-03-28 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778415', 'tblTempUsageDetail_20' ) start [2025-03-28 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778415', 'tblTempUsageDetail_20' ) end [2025-03-28 02:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:22:23] Production.INFO: ==6247== Releasing lock... [2025-03-28 02:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:22:23] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:23:05 [end_date_ymd] => 2025-03-28 02:23:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:23:05' and `end` < '2025-03-28 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:23:19] Production.INFO: count ==737 [2025-03-28 02:23:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:23:05 - End Time 2025-03-28 02:23:05 [2025-03-28 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778420', 'tblTempUsageDetail_20' ) start [2025-03-28 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778420', 'tblTempUsageDetail_20' ) end [2025-03-28 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778420', 'tblTempVendorCDR_20' ) start [2025-03-28 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778420', 'tblTempVendorCDR_20' ) end [2025-03-28 02:23:19] Production.INFO: ProcessCDR(1,14778420,1,1,2) [2025-03-28 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778420', 'tblTempUsageDetail_20' ) start [2025-03-28 02:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778420', 'tblTempUsageDetail_20' ) end [2025-03-28 02:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:23:24] Production.INFO: ==6377== Releasing lock... [2025-03-28 02:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:23:24] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:24:06 [end_date_ymd] => 2025-03-28 02:24:06 [RateCDR] => 1 ) [2025-03-28 02: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-27 23:24:06' and `end` < '2025-03-28 02: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-28 02:24:18] Production.INFO: count ==735 [2025-03-28 02:24:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:24:06 - End Time 2025-03-28 02:24:06 [2025-03-28 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778425', 'tblTempUsageDetail_20' ) start [2025-03-28 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778425', 'tblTempUsageDetail_20' ) end [2025-03-28 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778425', 'tblTempVendorCDR_20' ) start [2025-03-28 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778425', 'tblTempVendorCDR_20' ) end [2025-03-28 02:24:19] Production.INFO: ProcessCDR(1,14778425,1,1,2) [2025-03-28 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778425', 'tblTempUsageDetail_20' ) start [2025-03-28 02:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778425', 'tblTempUsageDetail_20' ) end [2025-03-28 02:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:24:24] Production.INFO: ==6512== Releasing lock... [2025-03-28 02:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:24:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:25:05 [end_date_ymd] => 2025-03-28 02:25:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:25:05' and `end` < '2025-03-28 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-28 02:25:17] Production.INFO: count ==734 [2025-03-28 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-27 23:25:05 - End Time 2025-03-28 02:25:05 [2025-03-28 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778430', 'tblTempUsageDetail_20' ) start [2025-03-28 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778430', 'tblTempUsageDetail_20' ) end [2025-03-28 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778430', 'tblTempVendorCDR_20' ) start [2025-03-28 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778430', 'tblTempVendorCDR_20' ) end [2025-03-28 02:25:17] Production.INFO: ProcessCDR(1,14778430,1,1,2) [2025-03-28 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778430', 'tblTempUsageDetail_20' ) start [2025-03-28 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778430', 'tblTempUsageDetail_20' ) end [2025-03-28 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:25:21] Production.INFO: ==6646== Releasing lock... [2025-03-28 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:25:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:26:05 [end_date_ymd] => 2025-03-28 02:26:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:26:05' and `end` < '2025-03-28 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-28 02:26:17] Production.INFO: count ==729 [2025-03-28 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:26:05 - End Time 2025-03-28 02:26:05 [2025-03-28 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778435', 'tblTempUsageDetail_20' ) start [2025-03-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778435', 'tblTempUsageDetail_20' ) end [2025-03-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778435', 'tblTempVendorCDR_20' ) start [2025-03-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778435', 'tblTempVendorCDR_20' ) end [2025-03-28 02:26:18] Production.INFO: ProcessCDR(1,14778435,1,1,2) [2025-03-28 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778435', 'tblTempUsageDetail_20' ) start [2025-03-28 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778435', 'tblTempUsageDetail_20' ) end [2025-03-28 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:26:21] Production.INFO: ==6780== Releasing lock... [2025-03-28 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:26:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:27:05 [end_date_ymd] => 2025-03-28 02:27:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:27:05' and `end` < '2025-03-28 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-28 02:27:17] Production.INFO: count ==732 [2025-03-28 02:27:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:27:05 - End Time 2025-03-28 02:27:05 [2025-03-28 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778440', 'tblTempUsageDetail_20' ) start [2025-03-28 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778440', 'tblTempUsageDetail_20' ) end [2025-03-28 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778440', 'tblTempVendorCDR_20' ) start [2025-03-28 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778440', 'tblTempVendorCDR_20' ) end [2025-03-28 02:27:18] Production.INFO: ProcessCDR(1,14778440,1,1,2) [2025-03-28 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778440', 'tblTempUsageDetail_20' ) start [2025-03-28 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778440', 'tblTempUsageDetail_20' ) end [2025-03-28 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:27:21] Production.INFO: ==6915== Releasing lock... [2025-03-28 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:27:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:28:05 [end_date_ymd] => 2025-03-28 02:28:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:28:05' and `end` < '2025-03-28 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-28 02:28:18] Production.INFO: count ==736 [2025-03-28 02:28:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:28:05 - End Time 2025-03-28 02:28:05 [2025-03-28 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778445', 'tblTempUsageDetail_20' ) start [2025-03-28 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778445', 'tblTempUsageDetail_20' ) end [2025-03-28 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778445', 'tblTempVendorCDR_20' ) start [2025-03-28 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778445', 'tblTempVendorCDR_20' ) end [2025-03-28 02:28:18] Production.INFO: ProcessCDR(1,14778445,1,1,2) [2025-03-28 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778445', 'tblTempUsageDetail_20' ) start [2025-03-28 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778445', 'tblTempUsageDetail_20' ) end [2025-03-28 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:28:22] Production.INFO: ==7045== Releasing lock... [2025-03-28 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:28:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:29:05 [end_date_ymd] => 2025-03-28 02:29:05 [RateCDR] => 1 ) [2025-03-28 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:29:05' and `end` < '2025-03-28 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:29:17] Production.INFO: count ==742 [2025-03-28 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:29:05 - End Time 2025-03-28 02:29:05 [2025-03-28 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778450', 'tblTempUsageDetail_20' ) start [2025-03-28 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778450', 'tblTempUsageDetail_20' ) end [2025-03-28 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778450', 'tblTempVendorCDR_20' ) start [2025-03-28 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778450', 'tblTempVendorCDR_20' ) end [2025-03-28 02:29:18] Production.INFO: ProcessCDR(1,14778450,1,1,2) [2025-03-28 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778450', 'tblTempUsageDetail_20' ) start [2025-03-28 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778450', 'tblTempUsageDetail_20' ) end [2025-03-28 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:29:21] Production.INFO: ==7210== Releasing lock... [2025-03-28 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:29:21] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:30:06 [end_date_ymd] => 2025-03-28 02:30:06 [RateCDR] => 1 ) [2025-03-28 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:30:06' and `end` < '2025-03-28 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:30:19] Production.INFO: count ==753 [2025-03-28 02:30:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:30:06 - End Time 2025-03-28 02:30:06 [2025-03-28 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778455', 'tblTempUsageDetail_20' ) start [2025-03-28 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778455', 'tblTempUsageDetail_20' ) end [2025-03-28 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778455', 'tblTempVendorCDR_20' ) start [2025-03-28 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778455', 'tblTempVendorCDR_20' ) end [2025-03-28 02:30:19] Production.INFO: ProcessCDR(1,14778455,1,1,2) [2025-03-28 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778455', 'tblTempUsageDetail_20' ) start [2025-03-28 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778455', 'tblTempUsageDetail_20' ) end [2025-03-28 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:30:23] Production.INFO: ==7339== Releasing lock... [2025-03-28 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:30:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:31:05 [end_date_ymd] => 2025-03-28 02:31:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:31:05' and `end` < '2025-03-28 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-28 02:31:18] Production.INFO: count ==757 [2025-03-28 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:31:05 - End Time 2025-03-28 02:31:05 [2025-03-28 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778461', 'tblTempUsageDetail_20' ) start [2025-03-28 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778461', 'tblTempUsageDetail_20' ) end [2025-03-28 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778461', 'tblTempVendorCDR_20' ) start [2025-03-28 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778461', 'tblTempVendorCDR_20' ) end [2025-03-28 02:31:18] Production.INFO: ProcessCDR(1,14778461,1,1,2) [2025-03-28 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778461', 'tblTempUsageDetail_20' ) start [2025-03-28 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778461', 'tblTempUsageDetail_20' ) end [2025-03-28 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:31:21] Production.INFO: ==7463== Releasing lock... [2025-03-28 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:31:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:32:05 [end_date_ymd] => 2025-03-28 02:32:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:32:05' and `end` < '2025-03-28 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-28 02:32:18] Production.INFO: count ==778 [2025-03-28 02:32:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:32:05 - End Time 2025-03-28 02:32:05 [2025-03-28 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778466', 'tblTempUsageDetail_20' ) start [2025-03-28 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778466', 'tblTempUsageDetail_20' ) end [2025-03-28 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778466', 'tblTempVendorCDR_20' ) start [2025-03-28 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778466', 'tblTempVendorCDR_20' ) end [2025-03-28 02:32:18] Production.INFO: ProcessCDR(1,14778466,1,1,2) [2025-03-28 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778466', 'tblTempUsageDetail_20' ) start [2025-03-28 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778466', 'tblTempUsageDetail_20' ) end [2025-03-28 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:32:22] Production.INFO: ==7581== Releasing lock... [2025-03-28 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:32:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:33:05 [end_date_ymd] => 2025-03-28 02:33:05 [RateCDR] => 1 ) [2025-03-28 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:33:05' and `end` < '2025-03-28 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:33:17] Production.INFO: count ==778 [2025-03-28 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:33:05 - End Time 2025-03-28 02:33:05 [2025-03-28 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778471', 'tblTempUsageDetail_20' ) start [2025-03-28 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778471', 'tblTempUsageDetail_20' ) end [2025-03-28 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778471', 'tblTempVendorCDR_20' ) start [2025-03-28 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778471', 'tblTempVendorCDR_20' ) end [2025-03-28 02:33:18] Production.INFO: ProcessCDR(1,14778471,1,1,2) [2025-03-28 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778471', 'tblTempUsageDetail_20' ) start [2025-03-28 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778471', 'tblTempUsageDetail_20' ) end [2025-03-28 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:33:21] Production.INFO: ==7695== Releasing lock... [2025-03-28 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:33:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:34:06 [end_date_ymd] => 2025-03-28 02:34:06 [RateCDR] => 1 ) [2025-03-28 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:34:06' and `end` < '2025-03-28 02:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:34:19] Production.INFO: count ==777 [2025-03-28 02:34:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:34:06 - End Time 2025-03-28 02:34:06 [2025-03-28 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778476', 'tblTempUsageDetail_20' ) start [2025-03-28 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778476', 'tblTempUsageDetail_20' ) end [2025-03-28 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778476', 'tblTempVendorCDR_20' ) start [2025-03-28 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778476', 'tblTempVendorCDR_20' ) end [2025-03-28 02:34:19] Production.INFO: ProcessCDR(1,14778476,1,1,2) [2025-03-28 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778476', 'tblTempUsageDetail_20' ) start [2025-03-28 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778476', 'tblTempUsageDetail_20' ) end [2025-03-28 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:34:23] Production.INFO: ==7773== Releasing lock... [2025-03-28 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:34:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:35:05 [end_date_ymd] => 2025-03-28 02:35:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:35:05' and `end` < '2025-03-28 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-28 02:35:18] Production.INFO: count ==777 [2025-03-28 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:35:05 - End Time 2025-03-28 02:35:05 [2025-03-28 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778481', 'tblTempUsageDetail_20' ) start [2025-03-28 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778481', 'tblTempUsageDetail_20' ) end [2025-03-28 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778481', 'tblTempVendorCDR_20' ) start [2025-03-28 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778481', 'tblTempVendorCDR_20' ) end [2025-03-28 02:35:18] Production.INFO: ProcessCDR(1,14778481,1,1,2) [2025-03-28 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778481', 'tblTempUsageDetail_20' ) start [2025-03-28 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778481', 'tblTempUsageDetail_20' ) end [2025-03-28 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:35:22] Production.INFO: ==7845== Releasing lock... [2025-03-28 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:36:06 [end_date_ymd] => 2025-03-28 02:36:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:36:06' and `end` < '2025-03-28 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-28 02:36:19] Production.INFO: count ==777 [2025-03-28 02:36:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:36:06 - End Time 2025-03-28 02:36:06 [2025-03-28 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778486', 'tblTempUsageDetail_20' ) start [2025-03-28 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778486', 'tblTempUsageDetail_20' ) end [2025-03-28 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778486', 'tblTempVendorCDR_20' ) start [2025-03-28 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778486', 'tblTempVendorCDR_20' ) end [2025-03-28 02:36:19] Production.INFO: ProcessCDR(1,14778486,1,1,2) [2025-03-28 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778486', 'tblTempUsageDetail_20' ) start [2025-03-28 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778486', 'tblTempUsageDetail_20' ) end [2025-03-28 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:36:23] Production.INFO: ==7919== Releasing lock... [2025-03-28 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:36:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:37:06 [end_date_ymd] => 2025-03-28 02:37:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:37:06' and `end` < '2025-03-28 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-28 02:37:18] Production.INFO: count ==774 [2025-03-28 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:37:06 - End Time 2025-03-28 02:37:06 [2025-03-28 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778491', 'tblTempUsageDetail_20' ) start [2025-03-28 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778491', 'tblTempUsageDetail_20' ) end [2025-03-28 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778491', 'tblTempVendorCDR_20' ) start [2025-03-28 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778491', 'tblTempVendorCDR_20' ) end [2025-03-28 02:37:19] Production.INFO: ProcessCDR(1,14778491,1,1,2) [2025-03-28 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778491', 'tblTempUsageDetail_20' ) start [2025-03-28 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778491', 'tblTempUsageDetail_20' ) end [2025-03-28 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:37:22] Production.INFO: ==7993== Releasing lock... [2025-03-28 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:37:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:38:06 [end_date_ymd] => 2025-03-28 02:38:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:38:06' and `end` < '2025-03-28 02:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:38:18] Production.INFO: count ==774 [2025-03-28 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:38:06 - End Time 2025-03-28 02:38:06 [2025-03-28 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778496', 'tblTempUsageDetail_20' ) start [2025-03-28 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778496', 'tblTempUsageDetail_20' ) end [2025-03-28 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778496', 'tblTempVendorCDR_20' ) start [2025-03-28 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778496', 'tblTempVendorCDR_20' ) end [2025-03-28 02:38:19] Production.INFO: ProcessCDR(1,14778496,1,1,2) [2025-03-28 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778496', 'tblTempUsageDetail_20' ) start [2025-03-28 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778496', 'tblTempUsageDetail_20' ) end [2025-03-28 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:38:22] Production.INFO: ==8066== Releasing lock... [2025-03-28 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:38:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:39:06 [end_date_ymd] => 2025-03-28 02:39:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:39:06' and `end` < '2025-03-28 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-28 02:39:18] Production.INFO: count ==773 [2025-03-28 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:39:06 - End Time 2025-03-28 02:39:06 [2025-03-28 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778501', 'tblTempUsageDetail_20' ) start [2025-03-28 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778501', 'tblTempUsageDetail_20' ) end [2025-03-28 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778501', 'tblTempVendorCDR_20' ) start [2025-03-28 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778501', 'tblTempVendorCDR_20' ) end [2025-03-28 02:39:18] Production.INFO: ProcessCDR(1,14778501,1,1,2) [2025-03-28 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778501', 'tblTempUsageDetail_20' ) start [2025-03-28 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778501', 'tblTempUsageDetail_20' ) end [2025-03-28 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:39:22] Production.INFO: ==8137== Releasing lock... [2025-03-28 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:39:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:40:07 [end_date_ymd] => 2025-03-28 02:40:07 [RateCDR] => 1 ) [2025-03-28 02:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:40:07' and `end` < '2025-03-28 02:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:40:20] Production.INFO: count ==782 [2025-03-28 02:40:20] Production.ERROR: pbx CDR StartTime 2025-03-27 23:40:07 - End Time 2025-03-28 02:40:07 [2025-03-28 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778507', 'tblTempUsageDetail_20' ) start [2025-03-28 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778507', 'tblTempUsageDetail_20' ) end [2025-03-28 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778507', 'tblTempVendorCDR_20' ) start [2025-03-28 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778507', 'tblTempVendorCDR_20' ) end [2025-03-28 02:40:20] Production.INFO: ProcessCDR(1,14778507,1,1,2) [2025-03-28 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778507', 'tblTempUsageDetail_20' ) start [2025-03-28 02:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778507', 'tblTempUsageDetail_20' ) end [2025-03-28 02:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:40:25] Production.INFO: ==8216== Releasing lock... [2025-03-28 02:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:40:25] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:41:05 [end_date_ymd] => 2025-03-28 02:41:05 [RateCDR] => 1 ) [2025-03-28 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:41:05' and `end` < '2025-03-28 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:41:18] Production.INFO: count ==784 [2025-03-28 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:41:05 - End Time 2025-03-28 02:41:05 [2025-03-28 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778512', 'tblTempUsageDetail_20' ) start [2025-03-28 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778512', 'tblTempUsageDetail_20' ) end [2025-03-28 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778512', 'tblTempVendorCDR_20' ) start [2025-03-28 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778512', 'tblTempVendorCDR_20' ) end [2025-03-28 02:41:18] Production.INFO: ProcessCDR(1,14778512,1,1,2) [2025-03-28 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778512', 'tblTempUsageDetail_20' ) start [2025-03-28 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778512', 'tblTempUsageDetail_20' ) end [2025-03-28 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:41:22] Production.INFO: ==8288== Releasing lock... [2025-03-28 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:41:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:42:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:42:07 [end_date_ymd] => 2025-03-28 02:42:07 [RateCDR] => 1 ) [2025-03-28 02:42: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-27 23:42:07' and `end` < '2025-03-28 02:42: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-28 02:42:20] Production.INFO: count ==784 [2025-03-28 02:42:20] Production.ERROR: pbx CDR StartTime 2025-03-27 23:42:07 - End Time 2025-03-28 02:42:07 [2025-03-28 02:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778517', 'tblTempUsageDetail_20' ) start [2025-03-28 02:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778517', 'tblTempUsageDetail_20' ) end [2025-03-28 02:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778517', 'tblTempVendorCDR_20' ) start [2025-03-28 02:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778517', 'tblTempVendorCDR_20' ) end [2025-03-28 02:42:20] Production.INFO: ProcessCDR(1,14778517,1,1,2) [2025-03-28 02:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778517', 'tblTempUsageDetail_20' ) start [2025-03-28 02:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778517', 'tblTempUsageDetail_20' ) end [2025-03-28 02:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:42:24] Production.INFO: ==8361== Releasing lock... [2025-03-28 02:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:42:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:43:06 [end_date_ymd] => 2025-03-28 02:43:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:43:06' and `end` < '2025-03-28 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-28 02:43:18] Production.INFO: count ==773 [2025-03-28 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:43:06 - End Time 2025-03-28 02:43:06 [2025-03-28 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778522', 'tblTempUsageDetail_20' ) start [2025-03-28 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778522', 'tblTempUsageDetail_20' ) end [2025-03-28 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778522', 'tblTempVendorCDR_20' ) start [2025-03-28 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778522', 'tblTempVendorCDR_20' ) end [2025-03-28 02:43:18] Production.INFO: ProcessCDR(1,14778522,1,1,2) [2025-03-28 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778522', 'tblTempUsageDetail_20' ) start [2025-03-28 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778522', 'tblTempUsageDetail_20' ) end [2025-03-28 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:43:22] Production.INFO: ==8433== Releasing lock... [2025-03-28 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:43:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:44:06 [end_date_ymd] => 2025-03-28 02:44:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:44:06' and `end` < '2025-03-28 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-28 02:44:19] Production.INFO: count ==774 [2025-03-28 02:44:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:44:06 - End Time 2025-03-28 02:44:06 [2025-03-28 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778527', 'tblTempUsageDetail_20' ) start [2025-03-28 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778527', 'tblTempUsageDetail_20' ) end [2025-03-28 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778527', 'tblTempVendorCDR_20' ) start [2025-03-28 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778527', 'tblTempVendorCDR_20' ) end [2025-03-28 02:44:19] Production.INFO: ProcessCDR(1,14778527,1,1,2) [2025-03-28 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778527', 'tblTempUsageDetail_20' ) start [2025-03-28 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778527', 'tblTempUsageDetail_20' ) end [2025-03-28 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:44:23] Production.INFO: ==8553== Releasing lock... [2025-03-28 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:44:23] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:45:05 [end_date_ymd] => 2025-03-28 02:45:05 [RateCDR] => 1 ) [2025-03-28 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:45:05' and `end` < '2025-03-28 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:45:17] Production.INFO: count ==772 [2025-03-28 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:45:05 - End Time 2025-03-28 02:45:05 [2025-03-28 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778532', 'tblTempUsageDetail_20' ) start [2025-03-28 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778532', 'tblTempUsageDetail_20' ) end [2025-03-28 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778532', 'tblTempVendorCDR_20' ) start [2025-03-28 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778532', 'tblTempVendorCDR_20' ) end [2025-03-28 02:45:18] Production.INFO: ProcessCDR(1,14778532,1,1,2) [2025-03-28 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778532', 'tblTempUsageDetail_20' ) start [2025-03-28 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778532', 'tblTempUsageDetail_20' ) end [2025-03-28 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:45:22] Production.INFO: ==8628== Releasing lock... [2025-03-28 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:45:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:46:06 [end_date_ymd] => 2025-03-28 02:46:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:46:06' and `end` < '2025-03-28 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-28 02:46:18] Production.INFO: count ==766 [2025-03-28 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:46:06 - End Time 2025-03-28 02:46:06 [2025-03-28 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778537', 'tblTempUsageDetail_20' ) start [2025-03-28 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778537', 'tblTempUsageDetail_20' ) end [2025-03-28 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778537', 'tblTempVendorCDR_20' ) start [2025-03-28 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778537', 'tblTempVendorCDR_20' ) end [2025-03-28 02:46:18] Production.INFO: ProcessCDR(1,14778537,1,1,2) [2025-03-28 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778537', 'tblTempUsageDetail_20' ) start [2025-03-28 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778537', 'tblTempUsageDetail_20' ) end [2025-03-28 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:46:22] Production.INFO: ==8701== Releasing lock... [2025-03-28 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:46:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:47:06 [end_date_ymd] => 2025-03-28 02:47:06 [RateCDR] => 1 ) [2025-03-28 02:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:47:06' and `end` < '2025-03-28 02:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:47:18] Production.INFO: count ==765 [2025-03-28 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:47:06 - End Time 2025-03-28 02:47:06 [2025-03-28 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778542', 'tblTempUsageDetail_20' ) start [2025-03-28 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778542', 'tblTempUsageDetail_20' ) end [2025-03-28 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778542', 'tblTempVendorCDR_20' ) start [2025-03-28 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778542', 'tblTempVendorCDR_20' ) end [2025-03-28 02:47:18] Production.INFO: ProcessCDR(1,14778542,1,1,2) [2025-03-28 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778542', 'tblTempUsageDetail_20' ) start [2025-03-28 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778542', 'tblTempUsageDetail_20' ) end [2025-03-28 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:47:22] Production.INFO: ==8774== Releasing lock... [2025-03-28 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:47:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:48:05 [end_date_ymd] => 2025-03-28 02:48:05 [RateCDR] => 1 ) [2025-03-28 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:48:05' and `end` < '2025-03-28 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:48:18] Production.INFO: count ==765 [2025-03-28 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:48:05 - End Time 2025-03-28 02:48:05 [2025-03-28 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778547', 'tblTempUsageDetail_20' ) start [2025-03-28 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778547', 'tblTempUsageDetail_20' ) end [2025-03-28 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778547', 'tblTempVendorCDR_20' ) start [2025-03-28 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778547', 'tblTempVendorCDR_20' ) end [2025-03-28 02:48:18] Production.INFO: ProcessCDR(1,14778547,1,1,2) [2025-03-28 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778547', 'tblTempUsageDetail_20' ) start [2025-03-28 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778547', 'tblTempUsageDetail_20' ) end [2025-03-28 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:48:22] Production.INFO: ==8844== Releasing lock... [2025-03-28 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:48:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:49:05 [end_date_ymd] => 2025-03-28 02:49:05 [RateCDR] => 1 ) [2025-03-28 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:49:05' and `end` < '2025-03-28 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:49:18] Production.INFO: count ==763 [2025-03-28 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:49:05 - End Time 2025-03-28 02:49:05 [2025-03-28 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778552', 'tblTempUsageDetail_20' ) start [2025-03-28 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778552', 'tblTempUsageDetail_20' ) end [2025-03-28 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778552', 'tblTempVendorCDR_20' ) start [2025-03-28 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778552', 'tblTempVendorCDR_20' ) end [2025-03-28 02:49:18] Production.INFO: ProcessCDR(1,14778552,1,1,2) [2025-03-28 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778552', 'tblTempUsageDetail_20' ) start [2025-03-28 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778552', 'tblTempUsageDetail_20' ) end [2025-03-28 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:49:22] Production.INFO: ==8922== Releasing lock... [2025-03-28 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:49:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:50:07 [end_date_ymd] => 2025-03-28 02:50:07 [RateCDR] => 1 ) [2025-03-28 02: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-27 23:50:07' and `end` < '2025-03-28 02: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-28 02:50:20] Production.INFO: count ==760 [2025-03-28 02:50:20] Production.ERROR: pbx CDR StartTime 2025-03-27 23:50:07 - End Time 2025-03-28 02:50:07 [2025-03-28 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778558', 'tblTempUsageDetail_20' ) start [2025-03-28 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778558', 'tblTempUsageDetail_20' ) end [2025-03-28 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778558', 'tblTempVendorCDR_20' ) start [2025-03-28 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778558', 'tblTempVendorCDR_20' ) end [2025-03-28 02:50:20] Production.INFO: ProcessCDR(1,14778558,1,1,2) [2025-03-28 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778558', 'tblTempUsageDetail_20' ) start [2025-03-28 02:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778558', 'tblTempUsageDetail_20' ) end [2025-03-28 02:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:50:25] Production.INFO: ==8998== Releasing lock... [2025-03-28 02:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:50:25] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:51:05 [end_date_ymd] => 2025-03-28 02:51:05 [RateCDR] => 1 ) [2025-03-28 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:51:05' and `end` < '2025-03-28 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:51:18] Production.INFO: count ==751 [2025-03-28 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:51:05 - End Time 2025-03-28 02:51:05 [2025-03-28 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778563', 'tblTempUsageDetail_20' ) start [2025-03-28 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778563', 'tblTempUsageDetail_20' ) end [2025-03-28 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778563', 'tblTempVendorCDR_20' ) start [2025-03-28 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778563', 'tblTempVendorCDR_20' ) end [2025-03-28 02:51:18] Production.INFO: ProcessCDR(1,14778563,1,1,2) [2025-03-28 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778563', 'tblTempUsageDetail_20' ) start [2025-03-28 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778563', 'tblTempUsageDetail_20' ) end [2025-03-28 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:51:22] Production.INFO: ==9070== Releasing lock... [2025-03-28 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:51:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:52:06 [end_date_ymd] => 2025-03-28 02:52:06 [RateCDR] => 1 ) [2025-03-28 02: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-27 23:52:06' and `end` < '2025-03-28 02: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-28 02:52:18] Production.INFO: count ==752 [2025-03-28 02:52:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:52:06 - End Time 2025-03-28 02:52:06 [2025-03-28 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778568', 'tblTempUsageDetail_20' ) start [2025-03-28 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778568', 'tblTempUsageDetail_20' ) end [2025-03-28 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778568', 'tblTempVendorCDR_20' ) start [2025-03-28 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778568', 'tblTempVendorCDR_20' ) end [2025-03-28 02:52:19] Production.INFO: ProcessCDR(1,14778568,1,1,2) [2025-03-28 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778568', 'tblTempUsageDetail_20' ) start [2025-03-28 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778568', 'tblTempUsageDetail_20' ) end [2025-03-28 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:52:22] Production.INFO: ==9144== Releasing lock... [2025-03-28 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:53:05 [end_date_ymd] => 2025-03-28 02:53:05 [RateCDR] => 1 ) [2025-03-28 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:53:05' and `end` < '2025-03-28 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:53:17] Production.INFO: count ==750 [2025-03-28 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:53:05 - End Time 2025-03-28 02:53:05 [2025-03-28 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778573', 'tblTempUsageDetail_20' ) start [2025-03-28 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778573', 'tblTempUsageDetail_20' ) end [2025-03-28 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778573', 'tblTempVendorCDR_20' ) start [2025-03-28 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778573', 'tblTempVendorCDR_20' ) end [2025-03-28 02:53:18] Production.INFO: ProcessCDR(1,14778573,1,1,2) [2025-03-28 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778573', 'tblTempUsageDetail_20' ) start [2025-03-28 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778573', 'tblTempUsageDetail_20' ) end [2025-03-28 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:53:22] Production.INFO: ==9216== Releasing lock... [2025-03-28 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:53:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:54:06 [end_date_ymd] => 2025-03-28 02:54:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:54:06' and `end` < '2025-03-28 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-28 02:54:19] Production.INFO: count ==753 [2025-03-28 02:54:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:54:06 - End Time 2025-03-28 02:54:06 [2025-03-28 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778578', 'tblTempUsageDetail_20' ) start [2025-03-28 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778578', 'tblTempUsageDetail_20' ) end [2025-03-28 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778578', 'tblTempVendorCDR_20' ) start [2025-03-28 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778578', 'tblTempVendorCDR_20' ) end [2025-03-28 02:54:19] Production.INFO: ProcessCDR(1,14778578,1,1,2) [2025-03-28 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778578', 'tblTempUsageDetail_20' ) start [2025-03-28 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778578', 'tblTempUsageDetail_20' ) end [2025-03-28 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:54:23] Production.INFO: ==9288== Releasing lock... [2025-03-28 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:54:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:55:05 [end_date_ymd] => 2025-03-28 02:55:05 [RateCDR] => 1 ) [2025-03-28 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:55:05' and `end` < '2025-03-28 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:55:18] Production.INFO: count ==759 [2025-03-28 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:55:05 - End Time 2025-03-28 02:55:05 [2025-03-28 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778583', 'tblTempUsageDetail_20' ) start [2025-03-28 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778583', 'tblTempUsageDetail_20' ) end [2025-03-28 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778583', 'tblTempVendorCDR_20' ) start [2025-03-28 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778583', 'tblTempVendorCDR_20' ) end [2025-03-28 02:55:18] Production.INFO: ProcessCDR(1,14778583,1,1,2) [2025-03-28 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778583', 'tblTempUsageDetail_20' ) start [2025-03-28 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778583', 'tblTempUsageDetail_20' ) end [2025-03-28 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:55:22] Production.INFO: ==9361== Releasing lock... [2025-03-28 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:55:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:56:06 [end_date_ymd] => 2025-03-28 02:56:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:56:06' and `end` < '2025-03-28 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-28 02:56:18] Production.INFO: count ==771 [2025-03-28 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:56:06 - End Time 2025-03-28 02:56:06 [2025-03-28 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778588', 'tblTempUsageDetail_20' ) start [2025-03-28 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778588', 'tblTempUsageDetail_20' ) end [2025-03-28 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778588', 'tblTempVendorCDR_20' ) start [2025-03-28 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778588', 'tblTempVendorCDR_20' ) end [2025-03-28 02:56:18] Production.INFO: ProcessCDR(1,14778588,1,1,2) [2025-03-28 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778588', 'tblTempUsageDetail_20' ) start [2025-03-28 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778588', 'tblTempUsageDetail_20' ) end [2025-03-28 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:56:22] Production.INFO: ==9436== Releasing lock... [2025-03-28 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:56:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:57:06 [end_date_ymd] => 2025-03-28 02:57:06 [RateCDR] => 1 ) [2025-03-28 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-27 23:57:06' and `end` < '2025-03-28 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 02:57:18] Production.INFO: count ==782 [2025-03-28 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:57:06 - End Time 2025-03-28 02:57:06 [2025-03-28 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778593', 'tblTempUsageDetail_20' ) start [2025-03-28 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778593', 'tblTempUsageDetail_20' ) end [2025-03-28 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778593', 'tblTempVendorCDR_20' ) start [2025-03-28 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778593', 'tblTempVendorCDR_20' ) end [2025-03-28 02:57:19] Production.INFO: ProcessCDR(1,14778593,1,1,2) [2025-03-28 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778593', 'tblTempUsageDetail_20' ) start [2025-03-28 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778593', 'tblTempUsageDetail_20' ) end [2025-03-28 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:57:22] Production.INFO: ==9513== Releasing lock... [2025-03-28 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:58:06 [end_date_ymd] => 2025-03-28 02:58:06 [RateCDR] => 1 ) [2025-03-28 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-27 23:58:06' and `end` < '2025-03-28 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-28 02:58:18] Production.INFO: count ==785 [2025-03-28 02:58:19] Production.ERROR: pbx CDR StartTime 2025-03-27 23:58:06 - End Time 2025-03-28 02:58:06 [2025-03-28 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778598', 'tblTempUsageDetail_20' ) start [2025-03-28 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778598', 'tblTempUsageDetail_20' ) end [2025-03-28 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778598', 'tblTempVendorCDR_20' ) start [2025-03-28 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778598', 'tblTempVendorCDR_20' ) end [2025-03-28 02:58:19] Production.INFO: ProcessCDR(1,14778598,1,1,2) [2025-03-28 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778598', 'tblTempUsageDetail_20' ) start [2025-03-28 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778598', 'tblTempUsageDetail_20' ) end [2025-03-28 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:58:23] Production.INFO: ==9591== Releasing lock... [2025-03-28 02:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:58:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-27 23:59:05 [end_date_ymd] => 2025-03-28 02:59:05 [RateCDR] => 1 ) [2025-03-28 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-27 23:59:05' and `end` < '2025-03-28 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-28 02:59:18] Production.INFO: count ==788 [2025-03-28 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-27 23:59:05 - End Time 2025-03-28 02:59:05 [2025-03-28 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778603', 'tblTempUsageDetail_20' ) start [2025-03-28 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778603', 'tblTempUsageDetail_20' ) end [2025-03-28 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778603', 'tblTempVendorCDR_20' ) start [2025-03-28 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778603', 'tblTempVendorCDR_20' ) end [2025-03-28 02:59:18] Production.INFO: ProcessCDR(1,14778603,1,1,2) [2025-03-28 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778603', 'tblTempUsageDetail_20' ) start [2025-03-28 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778603', 'tblTempUsageDetail_20' ) end [2025-03-28 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 02:59:22] Production.INFO: ==9663== Releasing lock... [2025-03-28 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 02:59:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:00:07 [end_date_ymd] => 2025-03-28 03:00:07 [RateCDR] => 1 ) [2025-03-28 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-28 00:00:07' and `end` < '2025-03-28 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-28 03:00:20] Production.INFO: count ==804 [2025-03-28 03:00:20] Production.ERROR: pbx CDR StartTime 2025-03-28 00:00:07 - End Time 2025-03-28 03:00:07 [2025-03-28 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778609', 'tblTempUsageDetail_20' ) start [2025-03-28 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778609', 'tblTempUsageDetail_20' ) end [2025-03-28 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778609', 'tblTempVendorCDR_20' ) start [2025-03-28 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778609', 'tblTempVendorCDR_20' ) end [2025-03-28 03:00:20] Production.INFO: ProcessCDR(1,14778609,1,1,2) [2025-03-28 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778609', 'tblTempUsageDetail_20' ) start [2025-03-28 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778609', 'tblTempUsageDetail_20' ) end [2025-03-28 03:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:00:24] Production.INFO: ==9776== Releasing lock... [2025-03-28 03:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:00:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-28 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:01:05 [end_date_ymd] => 2025-03-28 03:01:05 [RateCDR] => 1 ) [2025-03-28 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:01:05' and `end` < '2025-03-28 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-28 03:01:18] Production.INFO: count ==806 [2025-03-28 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:01:05 - End Time 2025-03-28 03:01:05 [2025-03-28 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778614', 'tblTempUsageDetail_20' ) start [2025-03-28 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778614', 'tblTempUsageDetail_20' ) end [2025-03-28 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778614', 'tblTempVendorCDR_20' ) start [2025-03-28 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778614', 'tblTempVendorCDR_20' ) end [2025-03-28 03:01:18] Production.INFO: ProcessCDR(1,14778614,1,1,2) [2025-03-28 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778614', 'tblTempUsageDetail_20' ) start [2025-03-28 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778614', 'tblTempUsageDetail_20' ) end [2025-03-28 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:01:22] Production.INFO: ==9864== Releasing lock... [2025-03-28 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:01:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:02:06 [end_date_ymd] => 2025-03-28 03:02:06 [RateCDR] => 1 ) [2025-03-28 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:02:06' and `end` < '2025-03-28 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:02:19] Production.INFO: count ==790 [2025-03-28 03:02:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:02:06 - End Time 2025-03-28 03:02:06 [2025-03-28 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778619', 'tblTempUsageDetail_20' ) start [2025-03-28 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778619', 'tblTempUsageDetail_20' ) end [2025-03-28 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778619', 'tblTempVendorCDR_20' ) start [2025-03-28 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778619', 'tblTempVendorCDR_20' ) end [2025-03-28 03:02:19] Production.INFO: ProcessCDR(1,14778619,1,1,2) [2025-03-28 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778619', 'tblTempUsageDetail_20' ) start [2025-03-28 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778619', 'tblTempUsageDetail_20' ) end [2025-03-28 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:02:23] Production.INFO: ==10013== Releasing lock... [2025-03-28 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:02:23] Production.INFO: 34 MB #Memory Used# [2025-03-28 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:03:05 [end_date_ymd] => 2025-03-28 03:03:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:03:05' and `end` < '2025-03-28 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-28 03:03:18] Production.INFO: count ==793 [2025-03-28 03:03:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:03:05 - End Time 2025-03-28 03:03:05 [2025-03-28 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778624', 'tblTempUsageDetail_20' ) start [2025-03-28 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778624', 'tblTempUsageDetail_20' ) end [2025-03-28 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778624', 'tblTempVendorCDR_20' ) start [2025-03-28 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778624', 'tblTempVendorCDR_20' ) end [2025-03-28 03:03:18] Production.INFO: ProcessCDR(1,14778624,1,1,2) [2025-03-28 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778624', 'tblTempUsageDetail_20' ) start [2025-03-28 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778624', 'tblTempUsageDetail_20' ) end [2025-03-28 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:03:22] Production.INFO: ==10088== Releasing lock... [2025-03-28 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:03:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:04:06 [end_date_ymd] => 2025-03-28 03:04:06 [RateCDR] => 1 ) [2025-03-28 03:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:04:06' and `end` < '2025-03-28 03:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:04:18] Production.INFO: count ==795 [2025-03-28 03:04:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:04:06 - End Time 2025-03-28 03:04:06 [2025-03-28 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778629', 'tblTempUsageDetail_20' ) start [2025-03-28 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778629', 'tblTempUsageDetail_20' ) end [2025-03-28 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778629', 'tblTempVendorCDR_20' ) start [2025-03-28 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778629', 'tblTempVendorCDR_20' ) end [2025-03-28 03:04:19] Production.INFO: ProcessCDR(1,14778629,1,1,2) [2025-03-28 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778629', 'tblTempUsageDetail_20' ) start [2025-03-28 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778629', 'tblTempUsageDetail_20' ) end [2025-03-28 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:04:22] Production.INFO: ==10162== Releasing lock... [2025-03-28 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:04:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:05:05 [end_date_ymd] => 2025-03-28 03:05:05 [RateCDR] => 1 ) [2025-03-28 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:05:05' and `end` < '2025-03-28 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:05:18] Production.INFO: count ==779 [2025-03-28 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:05:05 - End Time 2025-03-28 03:05:05 [2025-03-28 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778634', 'tblTempUsageDetail_20' ) start [2025-03-28 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778634', 'tblTempUsageDetail_20' ) end [2025-03-28 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778634', 'tblTempVendorCDR_20' ) start [2025-03-28 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778634', 'tblTempVendorCDR_20' ) end [2025-03-28 03:05:18] Production.INFO: ProcessCDR(1,14778634,1,1,2) [2025-03-28 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778634', 'tblTempUsageDetail_20' ) start [2025-03-28 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778634', 'tblTempUsageDetail_20' ) end [2025-03-28 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:05:21] Production.INFO: ==10232== Releasing lock... [2025-03-28 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:05:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:06:05 [end_date_ymd] => 2025-03-28 03:06:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:06:05' and `end` < '2025-03-28 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-28 03:06:18] Production.INFO: count ==782 [2025-03-28 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:06:05 - End Time 2025-03-28 03:06:05 [2025-03-28 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778639', 'tblTempUsageDetail_20' ) start [2025-03-28 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778639', 'tblTempUsageDetail_20' ) end [2025-03-28 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778639', 'tblTempVendorCDR_20' ) start [2025-03-28 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778639', 'tblTempVendorCDR_20' ) end [2025-03-28 03:06:18] Production.INFO: ProcessCDR(1,14778639,1,1,2) [2025-03-28 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778639', 'tblTempUsageDetail_20' ) start [2025-03-28 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778639', 'tblTempUsageDetail_20' ) end [2025-03-28 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:06:22] Production.INFO: ==10380== Releasing lock... [2025-03-28 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:06:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:07:05 [end_date_ymd] => 2025-03-28 03:07:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:07:05' and `end` < '2025-03-28 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-28 03:07:17] Production.INFO: count ==779 [2025-03-28 03:07:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:07:05 - End Time 2025-03-28 03:07:05 [2025-03-28 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778644', 'tblTempUsageDetail_20' ) start [2025-03-28 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778644', 'tblTempUsageDetail_20' ) end [2025-03-28 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778644', 'tblTempVendorCDR_20' ) start [2025-03-28 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778644', 'tblTempVendorCDR_20' ) end [2025-03-28 03:07:18] Production.INFO: ProcessCDR(1,14778644,1,1,2) [2025-03-28 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778644', 'tblTempUsageDetail_20' ) start [2025-03-28 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778644', 'tblTempUsageDetail_20' ) end [2025-03-28 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:07:21] Production.INFO: ==10449== Releasing lock... [2025-03-28 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:07:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:08:06 [end_date_ymd] => 2025-03-28 03:08:06 [RateCDR] => 1 ) [2025-03-28 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:08:06' and `end` < '2025-03-28 03:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:08:18] Production.INFO: count ==798 [2025-03-28 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:08:06 - End Time 2025-03-28 03:08:06 [2025-03-28 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778649', 'tblTempUsageDetail_20' ) start [2025-03-28 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778649', 'tblTempUsageDetail_20' ) end [2025-03-28 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778649', 'tblTempVendorCDR_20' ) start [2025-03-28 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778649', 'tblTempVendorCDR_20' ) end [2025-03-28 03:08:18] Production.INFO: ProcessCDR(1,14778649,1,1,2) [2025-03-28 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778649', 'tblTempUsageDetail_20' ) start [2025-03-28 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778649', 'tblTempUsageDetail_20' ) end [2025-03-28 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:08:22] Production.INFO: ==10521== Releasing lock... [2025-03-28 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:08:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:09:05 [end_date_ymd] => 2025-03-28 03:09:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:09:05' and `end` < '2025-03-28 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-28 03:09:17] Production.INFO: count ==798 [2025-03-28 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:09:05 - End Time 2025-03-28 03:09:05 [2025-03-28 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778654', 'tblTempUsageDetail_20' ) start [2025-03-28 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778654', 'tblTempUsageDetail_20' ) end [2025-03-28 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778654', 'tblTempVendorCDR_20' ) start [2025-03-28 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778654', 'tblTempVendorCDR_20' ) end [2025-03-28 03:09:18] Production.INFO: ProcessCDR(1,14778654,1,1,2) [2025-03-28 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778654', 'tblTempUsageDetail_20' ) start [2025-03-28 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778654', 'tblTempUsageDetail_20' ) end [2025-03-28 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:09:21] Production.INFO: ==10681== Releasing lock... [2025-03-28 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:09:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:10:06 [end_date_ymd] => 2025-03-28 03:10:06 [RateCDR] => 1 ) [2025-03-28 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-28 00:10:06' and `end` < '2025-03-28 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-28 03:10:19] Production.INFO: count ==787 [2025-03-28 03:10:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:10:06 - End Time 2025-03-28 03:10:06 [2025-03-28 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778660', 'tblTempUsageDetail_20' ) start [2025-03-28 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778660', 'tblTempUsageDetail_20' ) end [2025-03-28 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778660', 'tblTempVendorCDR_20' ) start [2025-03-28 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778660', 'tblTempVendorCDR_20' ) end [2025-03-28 03:10:19] Production.INFO: ProcessCDR(1,14778660,1,1,2) [2025-03-28 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778660', 'tblTempUsageDetail_20' ) start [2025-03-28 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778660', 'tblTempUsageDetail_20' ) end [2025-03-28 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:10:22] Production.INFO: ==10767== Releasing lock... [2025-03-28 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:11:05 [end_date_ymd] => 2025-03-28 03:11:05 [RateCDR] => 1 ) [2025-03-28 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:11:05' and `end` < '2025-03-28 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-28 03:11:17] Production.INFO: count ==758 [2025-03-28 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-28 00:11:05 - End Time 2025-03-28 03:11:05 [2025-03-28 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778665', 'tblTempUsageDetail_20' ) start [2025-03-28 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778665', 'tblTempUsageDetail_20' ) end [2025-03-28 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778665', 'tblTempVendorCDR_20' ) start [2025-03-28 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778665', 'tblTempVendorCDR_20' ) end [2025-03-28 03:11:17] Production.INFO: ProcessCDR(1,14778665,1,1,2) [2025-03-28 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778665', 'tblTempUsageDetail_20' ) start [2025-03-28 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778665', 'tblTempUsageDetail_20' ) end [2025-03-28 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:11:21] Production.INFO: ==10856== Releasing lock... [2025-03-28 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:11:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:12:05 [end_date_ymd] => 2025-03-28 03:12:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:12:05' and `end` < '2025-03-28 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-28 03:12:18] Production.INFO: count ==749 [2025-03-28 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:12:05 - End Time 2025-03-28 03:12:05 [2025-03-28 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778670', 'tblTempUsageDetail_20' ) start [2025-03-28 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778670', 'tblTempUsageDetail_20' ) end [2025-03-28 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778670', 'tblTempVendorCDR_20' ) start [2025-03-28 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778670', 'tblTempVendorCDR_20' ) end [2025-03-28 03:12:18] Production.INFO: ProcessCDR(1,14778670,1,1,2) [2025-03-28 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778670', 'tblTempUsageDetail_20' ) start [2025-03-28 03:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778670', 'tblTempUsageDetail_20' ) end [2025-03-28 03:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:12:23] Production.INFO: ==10942== Releasing lock... [2025-03-28 03:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:12:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:13:05 [end_date_ymd] => 2025-03-28 03:13:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:13:05' and `end` < '2025-03-28 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-28 03:13:17] Production.INFO: count ==744 [2025-03-28 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-28 00:13:05 - End Time 2025-03-28 03:13:05 [2025-03-28 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778675', 'tblTempUsageDetail_20' ) start [2025-03-28 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778675', 'tblTempUsageDetail_20' ) end [2025-03-28 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778675', 'tblTempVendorCDR_20' ) start [2025-03-28 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778675', 'tblTempVendorCDR_20' ) end [2025-03-28 03:13:17] Production.INFO: ProcessCDR(1,14778675,1,1,2) [2025-03-28 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778675', 'tblTempUsageDetail_20' ) start [2025-03-28 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778675', 'tblTempUsageDetail_20' ) end [2025-03-28 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:13:21] Production.INFO: ==11100== Releasing lock... [2025-03-28 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:13:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:14:05 [end_date_ymd] => 2025-03-28 03:14:05 [RateCDR] => 1 ) [2025-03-28 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:14:05' and `end` < '2025-03-28 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:14:18] Production.INFO: count ==744 [2025-03-28 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:14:05 - End Time 2025-03-28 03:14:05 [2025-03-28 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778680', 'tblTempUsageDetail_20' ) start [2025-03-28 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778680', 'tblTempUsageDetail_20' ) end [2025-03-28 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778680', 'tblTempVendorCDR_20' ) start [2025-03-28 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778680', 'tblTempVendorCDR_20' ) end [2025-03-28 03:14:18] Production.INFO: ProcessCDR(1,14778680,1,1,2) [2025-03-28 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778680', 'tblTempUsageDetail_20' ) start [2025-03-28 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778680', 'tblTempUsageDetail_20' ) end [2025-03-28 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:14:21] Production.INFO: ==11188== Releasing lock... [2025-03-28 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:14:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:15:05 [end_date_ymd] => 2025-03-28 03:15:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:15:05' and `end` < '2025-03-28 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-28 03:15:18] Production.INFO: count ==745 [2025-03-28 03:15:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:15:05 - End Time 2025-03-28 03:15:05 [2025-03-28 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778685', 'tblTempUsageDetail_20' ) start [2025-03-28 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778685', 'tblTempUsageDetail_20' ) end [2025-03-28 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778685', 'tblTempVendorCDR_20' ) start [2025-03-28 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778685', 'tblTempVendorCDR_20' ) end [2025-03-28 03:15:18] Production.INFO: ProcessCDR(1,14778685,1,1,2) [2025-03-28 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778685', 'tblTempUsageDetail_20' ) start [2025-03-28 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778685', 'tblTempUsageDetail_20' ) end [2025-03-28 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:15:21] Production.INFO: ==11313== Releasing lock... [2025-03-28 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:16:06 [end_date_ymd] => 2025-03-28 03:16:06 [RateCDR] => 1 ) [2025-03-28 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:16:06' and `end` < '2025-03-28 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:16:18] Production.INFO: count ==745 [2025-03-28 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:16:06 - End Time 2025-03-28 03:16:06 [2025-03-28 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778690', 'tblTempUsageDetail_20' ) start [2025-03-28 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778690', 'tblTempUsageDetail_20' ) end [2025-03-28 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778690', 'tblTempVendorCDR_20' ) start [2025-03-28 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778690', 'tblTempVendorCDR_20' ) end [2025-03-28 03:16:19] Production.INFO: ProcessCDR(1,14778690,1,1,2) [2025-03-28 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778690', 'tblTempUsageDetail_20' ) start [2025-03-28 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778690', 'tblTempUsageDetail_20' ) end [2025-03-28 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:16:22] Production.INFO: ==11394== Releasing lock... [2025-03-28 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:16:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 03:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:17:06 [end_date_ymd] => 2025-03-28 03:17:06 [RateCDR] => 1 ) [2025-03-28 03:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:17:06' and `end` < '2025-03-28 03: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-28 03:17:18] Production.INFO: count ==745 [2025-03-28 03:17:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:17:06 - End Time 2025-03-28 03:17:06 [2025-03-28 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778695', 'tblTempUsageDetail_20' ) start [2025-03-28 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778695', 'tblTempUsageDetail_20' ) end [2025-03-28 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778695', 'tblTempVendorCDR_20' ) start [2025-03-28 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778695', 'tblTempVendorCDR_20' ) end [2025-03-28 03:17:18] Production.INFO: ProcessCDR(1,14778695,1,1,2) [2025-03-28 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778695', 'tblTempUsageDetail_20' ) start [2025-03-28 03:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778695', 'tblTempUsageDetail_20' ) end [2025-03-28 03:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:17:23] Production.INFO: ==11559== Releasing lock... [2025-03-28 03:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:17:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:18:06 [end_date_ymd] => 2025-03-28 03:18:06 [RateCDR] => 1 ) [2025-03-28 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-28 00:18:06' and `end` < '2025-03-28 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-28 03:18:18] Production.INFO: count ==745 [2025-03-28 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:18:06 - End Time 2025-03-28 03:18:06 [2025-03-28 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778700', 'tblTempUsageDetail_20' ) start [2025-03-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778700', 'tblTempUsageDetail_20' ) end [2025-03-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778700', 'tblTempVendorCDR_20' ) start [2025-03-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778700', 'tblTempVendorCDR_20' ) end [2025-03-28 03:18:18] Production.INFO: ProcessCDR(1,14778700,1,1,2) [2025-03-28 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778700', 'tblTempUsageDetail_20' ) start [2025-03-28 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778700', 'tblTempUsageDetail_20' ) end [2025-03-28 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:18:22] Production.INFO: ==11643== Releasing lock... [2025-03-28 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:18:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:19:05 [end_date_ymd] => 2025-03-28 03:19:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:19:05' and `end` < '2025-03-28 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-28 03:19:18] Production.INFO: count ==730 [2025-03-28 03:19:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:19:05 - End Time 2025-03-28 03:19:05 [2025-03-28 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778705', 'tblTempUsageDetail_20' ) start [2025-03-28 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778705', 'tblTempUsageDetail_20' ) end [2025-03-28 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778705', 'tblTempVendorCDR_20' ) start [2025-03-28 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778705', 'tblTempVendorCDR_20' ) end [2025-03-28 03:19:18] Production.INFO: ProcessCDR(1,14778705,1,1,2) [2025-03-28 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778705', 'tblTempUsageDetail_20' ) start [2025-03-28 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778705', 'tblTempUsageDetail_20' ) end [2025-03-28 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:19:22] Production.INFO: ==11726== Releasing lock... [2025-03-28 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:19:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:20:06 [end_date_ymd] => 2025-03-28 03:20:06 [RateCDR] => 1 ) [2025-03-28 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-28 00:20:06' and `end` < '2025-03-28 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-28 03:20:18] Production.INFO: count ==720 [2025-03-28 03:20:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:20:06 - End Time 2025-03-28 03:20:06 [2025-03-28 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778711', 'tblTempUsageDetail_20' ) start [2025-03-28 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778711', 'tblTempUsageDetail_20' ) end [2025-03-28 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778711', 'tblTempVendorCDR_20' ) start [2025-03-28 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778711', 'tblTempVendorCDR_20' ) end [2025-03-28 03:20:19] Production.INFO: ProcessCDR(1,14778711,1,1,2) [2025-03-28 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778711', 'tblTempUsageDetail_20' ) start [2025-03-28 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778711', 'tblTempUsageDetail_20' ) end [2025-03-28 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:20:22] Production.INFO: ==11813== Releasing lock... [2025-03-28 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:21:05 [end_date_ymd] => 2025-03-28 03:21:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:21:05' and `end` < '2025-03-28 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-28 03:21:18] Production.INFO: count ==711 [2025-03-28 03:21:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:21:05 - End Time 2025-03-28 03:21:05 [2025-03-28 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778716', 'tblTempUsageDetail_20' ) start [2025-03-28 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778716', 'tblTempUsageDetail_20' ) end [2025-03-28 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778716', 'tblTempVendorCDR_20' ) start [2025-03-28 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778716', 'tblTempVendorCDR_20' ) end [2025-03-28 03:21:18] Production.INFO: ProcessCDR(1,14778716,1,1,2) [2025-03-28 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778716', 'tblTempUsageDetail_20' ) start [2025-03-28 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778716', 'tblTempUsageDetail_20' ) end [2025-03-28 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:21:21] Production.INFO: ==11898== Releasing lock... [2025-03-28 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:21:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:22:05 [end_date_ymd] => 2025-03-28 03:22:05 [RateCDR] => 1 ) [2025-03-28 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:22:05' and `end` < '2025-03-28 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:22:17] Production.INFO: count ==711 [2025-03-28 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:22:05 - End Time 2025-03-28 03:22:05 [2025-03-28 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778721', 'tblTempUsageDetail_20' ) start [2025-03-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778721', 'tblTempUsageDetail_20' ) end [2025-03-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778721', 'tblTempVendorCDR_20' ) start [2025-03-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778721', 'tblTempVendorCDR_20' ) end [2025-03-28 03:22:18] Production.INFO: ProcessCDR(1,14778721,1,1,2) [2025-03-28 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778721', 'tblTempUsageDetail_20' ) start [2025-03-28 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778721', 'tblTempUsageDetail_20' ) end [2025-03-28 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:22:21] Production.INFO: ==11986== Releasing lock... [2025-03-28 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:22:21] Production.INFO: 34 MB #Memory Used# [2025-03-28 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:23:06 [end_date_ymd] => 2025-03-28 03:23:06 [RateCDR] => 1 ) [2025-03-28 03:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:23:06' and `end` < '2025-03-28 03:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:23:18] Production.INFO: count ==713 [2025-03-28 03:23:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:23:06 - End Time 2025-03-28 03:23:06 [2025-03-28 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778726', 'tblTempUsageDetail_20' ) start [2025-03-28 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778726', 'tblTempUsageDetail_20' ) end [2025-03-28 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778726', 'tblTempVendorCDR_20' ) start [2025-03-28 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778726', 'tblTempVendorCDR_20' ) end [2025-03-28 03:23:18] Production.INFO: ProcessCDR(1,14778726,1,1,2) [2025-03-28 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778726', 'tblTempUsageDetail_20' ) start [2025-03-28 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778726', 'tblTempUsageDetail_20' ) end [2025-03-28 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:23:22] Production.INFO: ==12077== Releasing lock... [2025-03-28 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:23:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:24:05 [end_date_ymd] => 2025-03-28 03:24:05 [RateCDR] => 1 ) [2025-03-28 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:24:05' and `end` < '2025-03-28 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:24:17] Production.INFO: count ==710 [2025-03-28 03:24:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:24:05 - End Time 2025-03-28 03:24:05 [2025-03-28 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778731', 'tblTempUsageDetail_20' ) start [2025-03-28 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778731', 'tblTempUsageDetail_20' ) end [2025-03-28 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778731', 'tblTempVendorCDR_20' ) start [2025-03-28 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778731', 'tblTempVendorCDR_20' ) end [2025-03-28 03:24:18] Production.INFO: ProcessCDR(1,14778731,1,1,2) [2025-03-28 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778731', 'tblTempUsageDetail_20' ) start [2025-03-28 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778731', 'tblTempUsageDetail_20' ) end [2025-03-28 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:24:21] Production.INFO: ==12163== Releasing lock... [2025-03-28 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:24:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:25:05 [end_date_ymd] => 2025-03-28 03:25:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:25:05' and `end` < '2025-03-28 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-28 03:25:18] Production.INFO: count ==710 [2025-03-28 03:25:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:25:05 - End Time 2025-03-28 03:25:05 [2025-03-28 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778736', 'tblTempUsageDetail_20' ) start [2025-03-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778736', 'tblTempUsageDetail_20' ) end [2025-03-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778736', 'tblTempVendorCDR_20' ) start [2025-03-28 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778736', 'tblTempVendorCDR_20' ) end [2025-03-28 03:25:18] Production.INFO: ProcessCDR(1,14778736,1,1,2) [2025-03-28 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778736', 'tblTempUsageDetail_20' ) start [2025-03-28 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778736', 'tblTempUsageDetail_20' ) end [2025-03-28 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:25:21] Production.INFO: ==12250== Releasing lock... [2025-03-28 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:26:05 [end_date_ymd] => 2025-03-28 03:26:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:26:05' and `end` < '2025-03-28 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-28 03:26:18] Production.INFO: count ==711 [2025-03-28 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:26:05 - End Time 2025-03-28 03:26:05 [2025-03-28 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778741', 'tblTempUsageDetail_20' ) start [2025-03-28 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778741', 'tblTempUsageDetail_20' ) end [2025-03-28 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778741', 'tblTempVendorCDR_20' ) start [2025-03-28 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778741', 'tblTempVendorCDR_20' ) end [2025-03-28 03:26:18] Production.INFO: ProcessCDR(1,14778741,1,1,2) [2025-03-28 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778741', 'tblTempUsageDetail_20' ) start [2025-03-28 03:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778741', 'tblTempUsageDetail_20' ) end [2025-03-28 03:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:26:23] Production.INFO: ==12331== Releasing lock... [2025-03-28 03:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:26:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:27:05 [end_date_ymd] => 2025-03-28 03:27:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:27:05' and `end` < '2025-03-28 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-28 03:27:17] Production.INFO: count ==715 [2025-03-28 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-28 00:27:05 - End Time 2025-03-28 03:27:05 [2025-03-28 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778746', 'tblTempUsageDetail_20' ) start [2025-03-28 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778746', 'tblTempUsageDetail_20' ) end [2025-03-28 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778746', 'tblTempVendorCDR_20' ) start [2025-03-28 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778746', 'tblTempVendorCDR_20' ) end [2025-03-28 03:27:17] Production.INFO: ProcessCDR(1,14778746,1,1,2) [2025-03-28 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778746', 'tblTempUsageDetail_20' ) start [2025-03-28 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778746', 'tblTempUsageDetail_20' ) end [2025-03-28 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:27:21] Production.INFO: ==12418== Releasing lock... [2025-03-28 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:28:05 [end_date_ymd] => 2025-03-28 03:28:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:28:05' and `end` < '2025-03-28 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-28 03:28:18] Production.INFO: count ==716 [2025-03-28 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:28:05 - End Time 2025-03-28 03:28:05 [2025-03-28 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778751', 'tblTempUsageDetail_20' ) start [2025-03-28 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778751', 'tblTempUsageDetail_20' ) end [2025-03-28 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778751', 'tblTempVendorCDR_20' ) start [2025-03-28 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778751', 'tblTempVendorCDR_20' ) end [2025-03-28 03:28:18] Production.INFO: ProcessCDR(1,14778751,1,1,2) [2025-03-28 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778751', 'tblTempUsageDetail_20' ) start [2025-03-28 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778751', 'tblTempUsageDetail_20' ) end [2025-03-28 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:28:22] Production.INFO: ==12505== Releasing lock... [2025-03-28 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:28:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:29:05 [end_date_ymd] => 2025-03-28 03:29:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:29:05' and `end` < '2025-03-28 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-28 03:29:18] Production.INFO: count ==708 [2025-03-28 03:29:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:29:05 - End Time 2025-03-28 03:29:05 [2025-03-28 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778756', 'tblTempUsageDetail_20' ) start [2025-03-28 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778756', 'tblTempUsageDetail_20' ) end [2025-03-28 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778756', 'tblTempVendorCDR_20' ) start [2025-03-28 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778756', 'tblTempVendorCDR_20' ) end [2025-03-28 03:29:18] Production.INFO: ProcessCDR(1,14778756,1,1,2) [2025-03-28 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778756', 'tblTempUsageDetail_20' ) start [2025-03-28 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778756', 'tblTempUsageDetail_20' ) end [2025-03-28 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:29:21] Production.INFO: ==12588== Releasing lock... [2025-03-28 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:30:06 [end_date_ymd] => 2025-03-28 03:30:06 [RateCDR] => 1 ) [2025-03-28 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-28 00:30:06' and `end` < '2025-03-28 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-28 03:30:19] Production.INFO: count ==698 [2025-03-28 03:30:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:30:06 - End Time 2025-03-28 03:30:06 [2025-03-28 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778762', 'tblTempUsageDetail_20' ) start [2025-03-28 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778762', 'tblTempUsageDetail_20' ) end [2025-03-28 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778762', 'tblTempVendorCDR_20' ) start [2025-03-28 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778762', 'tblTempVendorCDR_20' ) end [2025-03-28 03:30:19] Production.INFO: ProcessCDR(1,14778762,1,1,2) [2025-03-28 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778762', 'tblTempUsageDetail_20' ) start [2025-03-28 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778762', 'tblTempUsageDetail_20' ) end [2025-03-28 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:30:23] Production.INFO: ==12680== Releasing lock... [2025-03-28 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:30:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:31:06 [end_date_ymd] => 2025-03-28 03:31:06 [RateCDR] => 1 ) [2025-03-28 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-28 00:31:06' and `end` < '2025-03-28 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-28 03:31:18] Production.INFO: count ==695 [2025-03-28 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:31:06 - End Time 2025-03-28 03:31:06 [2025-03-28 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778767', 'tblTempUsageDetail_20' ) start [2025-03-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778767', 'tblTempUsageDetail_20' ) end [2025-03-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778767', 'tblTempVendorCDR_20' ) start [2025-03-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778767', 'tblTempVendorCDR_20' ) end [2025-03-28 03:31:18] Production.INFO: ProcessCDR(1,14778767,1,1,2) [2025-03-28 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778767', 'tblTempUsageDetail_20' ) start [2025-03-28 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778767', 'tblTempUsageDetail_20' ) end [2025-03-28 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:31:22] Production.INFO: ==12765== Releasing lock... [2025-03-28 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:31:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:32:06 [end_date_ymd] => 2025-03-28 03:32:06 [RateCDR] => 1 ) [2025-03-28 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-28 00:32:06' and `end` < '2025-03-28 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-28 03:32:19] Production.INFO: count ==693 [2025-03-28 03:32:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:32:06 - End Time 2025-03-28 03:32:06 [2025-03-28 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778772', 'tblTempUsageDetail_20' ) start [2025-03-28 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778772', 'tblTempUsageDetail_20' ) end [2025-03-28 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778772', 'tblTempVendorCDR_20' ) start [2025-03-28 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778772', 'tblTempVendorCDR_20' ) end [2025-03-28 03:32:19] Production.INFO: ProcessCDR(1,14778772,1,1,2) [2025-03-28 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778772', 'tblTempUsageDetail_20' ) start [2025-03-28 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778772', 'tblTempUsageDetail_20' ) end [2025-03-28 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:32:23] Production.INFO: ==12889== Releasing lock... [2025-03-28 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:32:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:33:06 [end_date_ymd] => 2025-03-28 03:33:06 [RateCDR] => 1 ) [2025-03-28 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:33:06' and `end` < '2025-03-28 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:33:18] Production.INFO: count ==693 [2025-03-28 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:33:06 - End Time 2025-03-28 03:33:06 [2025-03-28 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778777', 'tblTempUsageDetail_20' ) start [2025-03-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778777', 'tblTempUsageDetail_20' ) end [2025-03-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778777', 'tblTempVendorCDR_20' ) start [2025-03-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778777', 'tblTempVendorCDR_20' ) end [2025-03-28 03:33:18] Production.INFO: ProcessCDR(1,14778777,1,1,2) [2025-03-28 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778777', 'tblTempUsageDetail_20' ) start [2025-03-28 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778777', 'tblTempUsageDetail_20' ) end [2025-03-28 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:33:22] Production.INFO: ==12975== Releasing lock... [2025-03-28 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:34:06 [end_date_ymd] => 2025-03-28 03:34:06 [RateCDR] => 1 ) [2025-03-28 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-28 00:34:06' and `end` < '2025-03-28 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-28 03:34:19] Production.INFO: count ==692 [2025-03-28 03:34:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:34:06 - End Time 2025-03-28 03:34:06 [2025-03-28 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778782', 'tblTempUsageDetail_20' ) start [2025-03-28 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778782', 'tblTempUsageDetail_20' ) end [2025-03-28 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778782', 'tblTempVendorCDR_20' ) start [2025-03-28 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778782', 'tblTempVendorCDR_20' ) end [2025-03-28 03:34:19] Production.INFO: ProcessCDR(1,14778782,1,1,2) [2025-03-28 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778782', 'tblTempUsageDetail_20' ) start [2025-03-28 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778782', 'tblTempUsageDetail_20' ) end [2025-03-28 03:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:34:23] Production.INFO: ==13059== Releasing lock... [2025-03-28 03:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:34:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:35:06 [end_date_ymd] => 2025-03-28 03:35:06 [RateCDR] => 1 ) [2025-03-28 03:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:35:06' and `end` < '2025-03-28 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:35:19] Production.INFO: count ==690 [2025-03-28 03:35:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:35:06 - End Time 2025-03-28 03:35:06 [2025-03-28 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778787', 'tblTempUsageDetail_20' ) start [2025-03-28 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778787', 'tblTempUsageDetail_20' ) end [2025-03-28 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778787', 'tblTempVendorCDR_20' ) start [2025-03-28 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778787', 'tblTempVendorCDR_20' ) end [2025-03-28 03:35:19] Production.INFO: ProcessCDR(1,14778787,1,1,2) [2025-03-28 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778787', 'tblTempUsageDetail_20' ) start [2025-03-28 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778787', 'tblTempUsageDetail_20' ) end [2025-03-28 03:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:35:23] Production.INFO: ==13158== Releasing lock... [2025-03-28 03:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:35:23] Production.INFO: 34 MB #Memory Used# [2025-03-28 03:36:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:36:07 [end_date_ymd] => 2025-03-28 03:36:07 [RateCDR] => 1 ) [2025-03-28 03:36:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:36:07' and `end` < '2025-03-28 03:36:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:36:19] Production.INFO: count ==683 [2025-03-28 03:36:20] Production.ERROR: pbx CDR StartTime 2025-03-28 00:36:07 - End Time 2025-03-28 03:36:07 [2025-03-28 03:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778792', 'tblTempUsageDetail_20' ) start [2025-03-28 03:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778792', 'tblTempUsageDetail_20' ) end [2025-03-28 03:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778792', 'tblTempVendorCDR_20' ) start [2025-03-28 03:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778792', 'tblTempVendorCDR_20' ) end [2025-03-28 03:36:20] Production.INFO: ProcessCDR(1,14778792,1,1,2) [2025-03-28 03:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778792', 'tblTempUsageDetail_20' ) start [2025-03-28 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778792', 'tblTempUsageDetail_20' ) end [2025-03-28 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:36:23] Production.INFO: ==13264== Releasing lock... [2025-03-28 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:36:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:37:05 [end_date_ymd] => 2025-03-28 03:37:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:37:05' and `end` < '2025-03-28 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-28 03:37:18] Production.INFO: count ==666 [2025-03-28 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:37:05 - End Time 2025-03-28 03:37:05 [2025-03-28 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778797', 'tblTempUsageDetail_20' ) start [2025-03-28 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778797', 'tblTempUsageDetail_20' ) end [2025-03-28 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778797', 'tblTempVendorCDR_20' ) start [2025-03-28 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778797', 'tblTempVendorCDR_20' ) end [2025-03-28 03:37:18] Production.INFO: ProcessCDR(1,14778797,1,1,2) [2025-03-28 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778797', 'tblTempUsageDetail_20' ) start [2025-03-28 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778797', 'tblTempUsageDetail_20' ) end [2025-03-28 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:37:22] Production.INFO: ==13353== Releasing lock... [2025-03-28 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:37:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:38:06 [end_date_ymd] => 2025-03-28 03:38:06 [RateCDR] => 1 ) [2025-03-28 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-28 00:38:06' and `end` < '2025-03-28 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-28 03:38:18] Production.INFO: count ==666 [2025-03-28 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:38:06 - End Time 2025-03-28 03:38:06 [2025-03-28 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778802', 'tblTempUsageDetail_20' ) start [2025-03-28 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778802', 'tblTempUsageDetail_20' ) end [2025-03-28 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778802', 'tblTempVendorCDR_20' ) start [2025-03-28 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778802', 'tblTempVendorCDR_20' ) end [2025-03-28 03:38:18] Production.INFO: ProcessCDR(1,14778802,1,1,2) [2025-03-28 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778802', 'tblTempUsageDetail_20' ) start [2025-03-28 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778802', 'tblTempUsageDetail_20' ) end [2025-03-28 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:38:22] Production.INFO: ==13437== Releasing lock... [2025-03-28 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:38:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:39:06 [end_date_ymd] => 2025-03-28 03:39:06 [RateCDR] => 1 ) [2025-03-28 03:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:39:06' and `end` < '2025-03-28 03:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:39:18] Production.INFO: count ==665 [2025-03-28 03:39:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:39:06 - End Time 2025-03-28 03:39:06 [2025-03-28 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778807', 'tblTempUsageDetail_20' ) start [2025-03-28 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778807', 'tblTempUsageDetail_20' ) end [2025-03-28 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778807', 'tblTempVendorCDR_20' ) start [2025-03-28 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778807', 'tblTempVendorCDR_20' ) end [2025-03-28 03:39:19] Production.INFO: ProcessCDR(1,14778807,1,1,2) [2025-03-28 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778807', 'tblTempUsageDetail_20' ) start [2025-03-28 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778807', 'tblTempUsageDetail_20' ) end [2025-03-28 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:39:22] Production.INFO: ==13524== Releasing lock... [2025-03-28 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:39:22] Production.INFO: 34 MB #Memory Used# [2025-03-28 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:40:06 [end_date_ymd] => 2025-03-28 03:40:06 [RateCDR] => 1 ) [2025-03-28 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-28 00:40:06' and `end` < '2025-03-28 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-28 03:40:18] Production.INFO: count ==653 [2025-03-28 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:40:06 - End Time 2025-03-28 03:40:06 [2025-03-28 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778813', 'tblTempUsageDetail_20' ) start [2025-03-28 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778813', 'tblTempUsageDetail_20' ) end [2025-03-28 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778813', 'tblTempVendorCDR_20' ) start [2025-03-28 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778813', 'tblTempVendorCDR_20' ) end [2025-03-28 03:40:19] Production.INFO: ProcessCDR(1,14778813,1,1,2) [2025-03-28 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778813', 'tblTempUsageDetail_20' ) start [2025-03-28 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778813', 'tblTempUsageDetail_20' ) end [2025-03-28 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:40:23] Production.INFO: ==13610== Releasing lock... [2025-03-28 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:40:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:41:06 [end_date_ymd] => 2025-03-28 03:41:06 [RateCDR] => 1 ) [2025-03-28 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-28 00:41:06' and `end` < '2025-03-28 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-28 03:41:19] Production.INFO: count ==627 [2025-03-28 03:41:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:41:06 - End Time 2025-03-28 03:41:06 [2025-03-28 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778818', 'tblTempUsageDetail_20' ) start [2025-03-28 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778818', 'tblTempUsageDetail_20' ) end [2025-03-28 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778818', 'tblTempVendorCDR_20' ) start [2025-03-28 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778818', 'tblTempVendorCDR_20' ) end [2025-03-28 03:41:19] Production.INFO: ProcessCDR(1,14778818,1,1,2) [2025-03-28 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778818', 'tblTempUsageDetail_20' ) start [2025-03-28 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778818', 'tblTempUsageDetail_20' ) end [2025-03-28 03:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:41:23] Production.INFO: ==13704== Releasing lock... [2025-03-28 03:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:41:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:42:05 [end_date_ymd] => 2025-03-28 03:42:05 [RateCDR] => 1 ) [2025-03-28 03: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-28 00:42:05' and `end` < '2025-03-28 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:42:18] Production.INFO: count ==617 [2025-03-28 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:42:05 - End Time 2025-03-28 03:42:05 [2025-03-28 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778823', 'tblTempUsageDetail_20' ) start [2025-03-28 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778823', 'tblTempUsageDetail_20' ) end [2025-03-28 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778823', 'tblTempVendorCDR_20' ) start [2025-03-28 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778823', 'tblTempVendorCDR_20' ) end [2025-03-28 03:42:18] Production.INFO: ProcessCDR(1,14778823,1,1,2) [2025-03-28 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778823', 'tblTempUsageDetail_20' ) start [2025-03-28 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778823', 'tblTempUsageDetail_20' ) end [2025-03-28 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:42:22] Production.INFO: ==13792== Releasing lock... [2025-03-28 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:43:06 [end_date_ymd] => 2025-03-28 03:43:06 [RateCDR] => 1 ) [2025-03-28 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:43:06' and `end` < '2025-03-28 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:43:18] Production.INFO: count ==603 [2025-03-28 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:43:06 - End Time 2025-03-28 03:43:06 [2025-03-28 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778828', 'tblTempUsageDetail_20' ) start [2025-03-28 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778828', 'tblTempUsageDetail_20' ) end [2025-03-28 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778828', 'tblTempVendorCDR_20' ) start [2025-03-28 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778828', 'tblTempVendorCDR_20' ) end [2025-03-28 03:43:18] Production.INFO: ProcessCDR(1,14778828,1,1,2) [2025-03-28 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778828', 'tblTempUsageDetail_20' ) start [2025-03-28 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778828', 'tblTempUsageDetail_20' ) end [2025-03-28 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:43:22] Production.INFO: ==13879== Releasing lock... [2025-03-28 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:43:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:44:05 [end_date_ymd] => 2025-03-28 03:44:05 [RateCDR] => 1 ) [2025-03-28 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:44:05' and `end` < '2025-03-28 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:44:17] Production.INFO: count ==596 [2025-03-28 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:44:05 - End Time 2025-03-28 03:44:05 [2025-03-28 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778833', 'tblTempUsageDetail_20' ) start [2025-03-28 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778833', 'tblTempUsageDetail_20' ) end [2025-03-28 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778833', 'tblTempVendorCDR_20' ) start [2025-03-28 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778833', 'tblTempVendorCDR_20' ) end [2025-03-28 03:44:18] Production.INFO: ProcessCDR(1,14778833,1,1,2) [2025-03-28 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778833', 'tblTempUsageDetail_20' ) start [2025-03-28 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778833', 'tblTempUsageDetail_20' ) end [2025-03-28 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:44:21] Production.INFO: ==13964== Releasing lock... [2025-03-28 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:44:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:45:06 [end_date_ymd] => 2025-03-28 03:45:06 [RateCDR] => 1 ) [2025-03-28 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:45:06' and `end` < '2025-03-28 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:45:18] Production.INFO: count ==596 [2025-03-28 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:45:06 - End Time 2025-03-28 03:45:06 [2025-03-28 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778838', 'tblTempUsageDetail_20' ) start [2025-03-28 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778838', 'tblTempUsageDetail_20' ) end [2025-03-28 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778838', 'tblTempVendorCDR_20' ) start [2025-03-28 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778838', 'tblTempVendorCDR_20' ) end [2025-03-28 03:45:18] Production.INFO: ProcessCDR(1,14778838,1,1,2) [2025-03-28 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778838', 'tblTempUsageDetail_20' ) start [2025-03-28 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778838', 'tblTempUsageDetail_20' ) end [2025-03-28 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:45:22] Production.INFO: ==14050== Releasing lock... [2025-03-28 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:45:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:46:06 [end_date_ymd] => 2025-03-28 03:46:06 [RateCDR] => 1 ) [2025-03-28 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:46:06' and `end` < '2025-03-28 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:46:18] Production.INFO: count ==591 [2025-03-28 03:46:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:46:06 - End Time 2025-03-28 03:46:06 [2025-03-28 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778843', 'tblTempUsageDetail_20' ) start [2025-03-28 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778843', 'tblTempUsageDetail_20' ) end [2025-03-28 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778843', 'tblTempVendorCDR_20' ) start [2025-03-28 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778843', 'tblTempVendorCDR_20' ) end [2025-03-28 03:46:19] Production.INFO: ProcessCDR(1,14778843,1,1,2) [2025-03-28 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778843', 'tblTempUsageDetail_20' ) start [2025-03-28 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778843', 'tblTempUsageDetail_20' ) end [2025-03-28 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:46:22] Production.INFO: ==14136== Releasing lock... [2025-03-28 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:46:22] Production.INFO: 33 MB #Memory Used# [2025-03-28 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:47:06 [end_date_ymd] => 2025-03-28 03:47:06 [RateCDR] => 1 ) [2025-03-28 03:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:47:06' and `end` < '2025-03-28 03:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:47:18] Production.INFO: count ==592 [2025-03-28 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:47:06 - End Time 2025-03-28 03:47:06 [2025-03-28 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778848', 'tblTempUsageDetail_20' ) start [2025-03-28 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778848', 'tblTempUsageDetail_20' ) end [2025-03-28 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778848', 'tblTempVendorCDR_20' ) start [2025-03-28 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778848', 'tblTempVendorCDR_20' ) end [2025-03-28 03:47:18] Production.INFO: ProcessCDR(1,14778848,1,1,2) [2025-03-28 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778848', 'tblTempUsageDetail_20' ) start [2025-03-28 03:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778848', 'tblTempUsageDetail_20' ) end [2025-03-28 03:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:47:23] Production.INFO: ==14223== Releasing lock... [2025-03-28 03:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:47:23] Production.INFO: 33 MB #Memory Used# [2025-03-28 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:48:05 [end_date_ymd] => 2025-03-28 03:48:05 [RateCDR] => 1 ) [2025-03-28 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:48:05' and `end` < '2025-03-28 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:48:17] Production.INFO: count ==592 [2025-03-28 03:48:17] Production.ERROR: pbx CDR StartTime 2025-03-28 00:48:05 - End Time 2025-03-28 03:48:05 [2025-03-28 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778853', 'tblTempUsageDetail_20' ) start [2025-03-28 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778853', 'tblTempUsageDetail_20' ) end [2025-03-28 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778853', 'tblTempVendorCDR_20' ) start [2025-03-28 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778853', 'tblTempVendorCDR_20' ) end [2025-03-28 03:48:17] Production.INFO: ProcessCDR(1,14778853,1,1,2) [2025-03-28 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778853', 'tblTempUsageDetail_20' ) start [2025-03-28 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778853', 'tblTempUsageDetail_20' ) end [2025-03-28 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:48:21] Production.INFO: ==14349== Releasing lock... [2025-03-28 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:48:21] Production.INFO: 33 MB #Memory Used# [2025-03-28 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:49:06 [end_date_ymd] => 2025-03-28 03:49:06 [RateCDR] => 1 ) [2025-03-28 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:49:06' and `end` < '2025-03-28 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:49:18] Production.INFO: count ==590 [2025-03-28 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:49:06 - End Time 2025-03-28 03:49:06 [2025-03-28 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778858', 'tblTempUsageDetail_20' ) start [2025-03-28 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778858', 'tblTempUsageDetail_20' ) end [2025-03-28 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778858', 'tblTempVendorCDR_20' ) start [2025-03-28 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778858', 'tblTempVendorCDR_20' ) end [2025-03-28 03:49:18] Production.INFO: ProcessCDR(1,14778858,1,1,2) [2025-03-28 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778858', 'tblTempUsageDetail_20' ) start [2025-03-28 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778858', 'tblTempUsageDetail_20' ) end [2025-03-28 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:49:22] Production.INFO: ==14435== Releasing lock... [2025-03-28 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:49:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:50:06 [end_date_ymd] => 2025-03-28 03:50:06 [RateCDR] => 1 ) [2025-03-28 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:50:06' and `end` < '2025-03-28 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:50:18] Production.INFO: count ==565 [2025-03-28 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:50:06 - End Time 2025-03-28 03:50:06 [2025-03-28 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778864', 'tblTempUsageDetail_20' ) start [2025-03-28 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778864', 'tblTempUsageDetail_20' ) end [2025-03-28 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778864', 'tblTempVendorCDR_20' ) start [2025-03-28 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778864', 'tblTempVendorCDR_20' ) end [2025-03-28 03:50:19] Production.INFO: ProcessCDR(1,14778864,1,1,2) [2025-03-28 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778864', 'tblTempUsageDetail_20' ) start [2025-03-28 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778864', 'tblTempUsageDetail_20' ) end [2025-03-28 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:50:23] Production.INFO: ==14529== Releasing lock... [2025-03-28 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:50:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-28 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:51:06 [end_date_ymd] => 2025-03-28 03:51:06 [RateCDR] => 1 ) [2025-03-28 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:51:06' and `end` < '2025-03-28 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:51:18] Production.INFO: count ==562 [2025-03-28 03:51:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:51:06 - End Time 2025-03-28 03:51:06 [2025-03-28 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778869', 'tblTempUsageDetail_20' ) start [2025-03-28 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778869', 'tblTempUsageDetail_20' ) end [2025-03-28 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778869', 'tblTempVendorCDR_20' ) start [2025-03-28 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778869', 'tblTempVendorCDR_20' ) end [2025-03-28 03:51:19] Production.INFO: ProcessCDR(1,14778869,1,1,2) [2025-03-28 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778869', 'tblTempUsageDetail_20' ) start [2025-03-28 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778869', 'tblTempUsageDetail_20' ) end [2025-03-28 03:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:51:23] Production.INFO: ==14615== Releasing lock... [2025-03-28 03:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:51:23] Production.INFO: 33 MB #Memory Used# [2025-03-28 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:52:06 [end_date_ymd] => 2025-03-28 03:52:06 [RateCDR] => 1 ) [2025-03-28 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-28 00:52:06' and `end` < '2025-03-28 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-28 03:52:19] Production.INFO: count ==561 [2025-03-28 03:52:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:52:06 - End Time 2025-03-28 03:52:06 [2025-03-28 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778874', 'tblTempUsageDetail_20' ) start [2025-03-28 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778874', 'tblTempUsageDetail_20' ) end [2025-03-28 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778874', 'tblTempVendorCDR_20' ) start [2025-03-28 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778874', 'tblTempVendorCDR_20' ) end [2025-03-28 03:52:19] Production.INFO: ProcessCDR(1,14778874,1,1,2) [2025-03-28 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778874', 'tblTempUsageDetail_20' ) start [2025-03-28 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778874', 'tblTempUsageDetail_20' ) end [2025-03-28 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:52:23] Production.INFO: ==14701== Releasing lock... [2025-03-28 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:52:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-28 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:53:05 [end_date_ymd] => 2025-03-28 03:53:05 [RateCDR] => 1 ) [2025-03-28 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:53:05' and `end` < '2025-03-28 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:53:18] Production.INFO: count ==564 [2025-03-28 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:53:05 - End Time 2025-03-28 03:53:05 [2025-03-28 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778879', 'tblTempUsageDetail_20' ) start [2025-03-28 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778879', 'tblTempUsageDetail_20' ) end [2025-03-28 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778879', 'tblTempVendorCDR_20' ) start [2025-03-28 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778879', 'tblTempVendorCDR_20' ) end [2025-03-28 03:53:18] Production.INFO: ProcessCDR(1,14778879,1,1,2) [2025-03-28 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778879', 'tblTempUsageDetail_20' ) start [2025-03-28 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778879', 'tblTempUsageDetail_20' ) end [2025-03-28 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:53:22] Production.INFO: ==14788== Releasing lock... [2025-03-28 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:54:06 [end_date_ymd] => 2025-03-28 03:54:06 [RateCDR] => 1 ) [2025-03-28 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-28 00:54:06' and `end` < '2025-03-28 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-28 03:54:19] Production.INFO: count ==564 [2025-03-28 03:54:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:54:06 - End Time 2025-03-28 03:54:06 [2025-03-28 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778884', 'tblTempUsageDetail_20' ) start [2025-03-28 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778884', 'tblTempUsageDetail_20' ) end [2025-03-28 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778884', 'tblTempVendorCDR_20' ) start [2025-03-28 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778884', 'tblTempVendorCDR_20' ) end [2025-03-28 03:54:19] Production.INFO: ProcessCDR(1,14778884,1,1,2) [2025-03-28 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778884', 'tblTempUsageDetail_20' ) start [2025-03-28 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778884', 'tblTempUsageDetail_20' ) end [2025-03-28 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:54:22] Production.INFO: ==14871== Releasing lock... [2025-03-28 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:54:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:55:05 [end_date_ymd] => 2025-03-28 03:55:05 [RateCDR] => 1 ) [2025-03-28 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:55:05' and `end` < '2025-03-28 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:55:18] Production.INFO: count ==564 [2025-03-28 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:55:05 - End Time 2025-03-28 03:55:05 [2025-03-28 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778889', 'tblTempUsageDetail_20' ) start [2025-03-28 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778889', 'tblTempUsageDetail_20' ) end [2025-03-28 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778889', 'tblTempVendorCDR_20' ) start [2025-03-28 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778889', 'tblTempVendorCDR_20' ) end [2025-03-28 03:55:18] Production.INFO: ProcessCDR(1,14778889,1,1,2) [2025-03-28 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778889', 'tblTempUsageDetail_20' ) start [2025-03-28 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778889', 'tblTempUsageDetail_20' ) end [2025-03-28 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:55:22] Production.INFO: ==14960== Releasing lock... [2025-03-28 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:55:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:56:06 [end_date_ymd] => 2025-03-28 03:56:06 [RateCDR] => 1 ) [2025-03-28 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:56:06' and `end` < '2025-03-28 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:56:18] Production.INFO: count ==559 [2025-03-28 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:56:06 - End Time 2025-03-28 03:56:06 [2025-03-28 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778894', 'tblTempUsageDetail_20' ) start [2025-03-28 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778894', 'tblTempUsageDetail_20' ) end [2025-03-28 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778894', 'tblTempVendorCDR_20' ) start [2025-03-28 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778894', 'tblTempVendorCDR_20' ) end [2025-03-28 03:56:18] Production.INFO: ProcessCDR(1,14778894,1,1,2) [2025-03-28 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778894', 'tblTempUsageDetail_20' ) start [2025-03-28 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778894', 'tblTempUsageDetail_20' ) end [2025-03-28 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:56:22] Production.INFO: ==15044== Releasing lock... [2025-03-28 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:56:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:57:06 [end_date_ymd] => 2025-03-28 03:57:06 [RateCDR] => 1 ) [2025-03-28 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:57:06' and `end` < '2025-03-28 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:57:18] Production.INFO: count ==558 [2025-03-28 03:57:19] Production.ERROR: pbx CDR StartTime 2025-03-28 00:57:06 - End Time 2025-03-28 03:57:06 [2025-03-28 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778899', 'tblTempUsageDetail_20' ) start [2025-03-28 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778899', 'tblTempUsageDetail_20' ) end [2025-03-28 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778899', 'tblTempVendorCDR_20' ) start [2025-03-28 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778899', 'tblTempVendorCDR_20' ) end [2025-03-28 03:57:19] Production.INFO: ProcessCDR(1,14778899,1,1,2) [2025-03-28 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778899', 'tblTempUsageDetail_20' ) start [2025-03-28 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778899', 'tblTempUsageDetail_20' ) end [2025-03-28 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:57:22] Production.INFO: ==15130== Releasing lock... [2025-03-28 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:57:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:58:05 [end_date_ymd] => 2025-03-28 03:58:05 [RateCDR] => 1 ) [2025-03-28 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-28 00:58:05' and `end` < '2025-03-28 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-28 03:58:18] Production.INFO: count ==557 [2025-03-28 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:58:05 - End Time 2025-03-28 03:58:05 [2025-03-28 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778904', 'tblTempUsageDetail_20' ) start [2025-03-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778904', 'tblTempUsageDetail_20' ) end [2025-03-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778904', 'tblTempVendorCDR_20' ) start [2025-03-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778904', 'tblTempVendorCDR_20' ) end [2025-03-28 03:58:18] Production.INFO: ProcessCDR(1,14778904,1,1,2) [2025-03-28 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778904', 'tblTempUsageDetail_20' ) start [2025-03-28 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778904', 'tblTempUsageDetail_20' ) end [2025-03-28 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:58:22] Production.INFO: ==15215== Releasing lock... [2025-03-28 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:58:22] Production.INFO: 33 MB #Memory Used# [2025-03-28 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 00:59:05 [end_date_ymd] => 2025-03-28 03:59:05 [RateCDR] => 1 ) [2025-03-28 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 00:59:05' and `end` < '2025-03-28 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 03:59:18] Production.INFO: count ==557 [2025-03-28 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-28 00:59:05 - End Time 2025-03-28 03:59:05 [2025-03-28 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778909', 'tblTempUsageDetail_20' ) start [2025-03-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778909', 'tblTempUsageDetail_20' ) end [2025-03-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778909', 'tblTempVendorCDR_20' ) start [2025-03-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778909', 'tblTempVendorCDR_20' ) end [2025-03-28 03:59:18] Production.INFO: ProcessCDR(1,14778909,1,1,2) [2025-03-28 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778909', 'tblTempUsageDetail_20' ) start [2025-03-28 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778909', 'tblTempUsageDetail_20' ) end [2025-03-28 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 03:59:22] Production.INFO: ==15302== Releasing lock... [2025-03-28 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 03:59:22] Production.INFO: 33 MB #Memory Used# [2025-03-28 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:00:07 [end_date_ymd] => 2025-03-28 04:00:07 [RateCDR] => 1 ) [2025-03-28 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:00:07' and `end` < '2025-03-28 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:00:19] Production.INFO: count ==559 [2025-03-28 04:00:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:00:07 - End Time 2025-03-28 04:00:07 [2025-03-28 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778915', 'tblTempUsageDetail_20' ) start [2025-03-28 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778915', 'tblTempUsageDetail_20' ) end [2025-03-28 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778915', 'tblTempVendorCDR_20' ) start [2025-03-28 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778915', 'tblTempVendorCDR_20' ) end [2025-03-28 04:00:19] Production.INFO: ProcessCDR(1,14778915,1,1,2) [2025-03-28 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778915', 'tblTempUsageDetail_20' ) start [2025-03-28 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778915', 'tblTempUsageDetail_20' ) end [2025-03-28 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:00:24] Production.INFO: ==15392== Releasing lock... [2025-03-28 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:00:24] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:01:06 [end_date_ymd] => 2025-03-28 04:01:06 [RateCDR] => 1 ) [2025-03-28 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-28 01:01:06' and `end` < '2025-03-28 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-28 04:01:19] Production.INFO: count ==559 [2025-03-28 04:01:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:01:06 - End Time 2025-03-28 04:01:06 [2025-03-28 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778921', 'tblTempUsageDetail_20' ) start [2025-03-28 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778921', 'tblTempUsageDetail_20' ) end [2025-03-28 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778921', 'tblTempVendorCDR_20' ) start [2025-03-28 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778921', 'tblTempVendorCDR_20' ) end [2025-03-28 04:01:19] Production.INFO: ProcessCDR(1,14778921,1,1,2) [2025-03-28 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778921', 'tblTempUsageDetail_20' ) start [2025-03-28 04:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778921', 'tblTempUsageDetail_20' ) end [2025-03-28 04:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:01:24] Production.INFO: ==15490== Releasing lock... [2025-03-28 04:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:01:24] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:02:05 [end_date_ymd] => 2025-03-28 04:02:05 [RateCDR] => 1 ) [2025-03-28 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:02:05' and `end` < '2025-03-28 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:02:17] Production.INFO: count ==559 [2025-03-28 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:02:05 - End Time 2025-03-28 04:02:05 [2025-03-28 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778926', 'tblTempUsageDetail_20' ) start [2025-03-28 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778926', 'tblTempUsageDetail_20' ) end [2025-03-28 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778926', 'tblTempVendorCDR_20' ) start [2025-03-28 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778926', 'tblTempVendorCDR_20' ) end [2025-03-28 04:02:18] Production.INFO: ProcessCDR(1,14778926,1,1,2) [2025-03-28 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778926', 'tblTempUsageDetail_20' ) start [2025-03-28 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778926', 'tblTempUsageDetail_20' ) end [2025-03-28 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:02:21] Production.INFO: ==15584== Releasing lock... [2025-03-28 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:02:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:03:05 [end_date_ymd] => 2025-03-28 04:03:05 [RateCDR] => 1 ) [2025-03-28 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:03:05' and `end` < '2025-03-28 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:03:18] Production.INFO: count ==559 [2025-03-28 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:03:05 - End Time 2025-03-28 04:03:05 [2025-03-28 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778931', 'tblTempUsageDetail_20' ) start [2025-03-28 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778931', 'tblTempUsageDetail_20' ) end [2025-03-28 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778931', 'tblTempVendorCDR_20' ) start [2025-03-28 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778931', 'tblTempVendorCDR_20' ) end [2025-03-28 04:03:18] Production.INFO: ProcessCDR(1,14778931,1,1,2) [2025-03-28 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778931', 'tblTempUsageDetail_20' ) start [2025-03-28 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778931', 'tblTempUsageDetail_20' ) end [2025-03-28 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:03:22] Production.INFO: ==15712== Releasing lock... [2025-03-28 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:03:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:04:05 [end_date_ymd] => 2025-03-28 04:04:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:04:05' and `end` < '2025-03-28 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-28 04:04:17] Production.INFO: count ==560 [2025-03-28 04:04:17] Production.ERROR: pbx CDR StartTime 2025-03-28 01:04:05 - End Time 2025-03-28 04:04:05 [2025-03-28 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778936', 'tblTempUsageDetail_20' ) start [2025-03-28 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778936', 'tblTempUsageDetail_20' ) end [2025-03-28 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778936', 'tblTempVendorCDR_20' ) start [2025-03-28 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778936', 'tblTempVendorCDR_20' ) end [2025-03-28 04:04:17] Production.INFO: ProcessCDR(1,14778936,1,1,2) [2025-03-28 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778936', 'tblTempUsageDetail_20' ) start [2025-03-28 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778936', 'tblTempUsageDetail_20' ) end [2025-03-28 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:04:21] Production.INFO: ==15797== Releasing lock... [2025-03-28 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:04:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:05:05 [end_date_ymd] => 2025-03-28 04:05:05 [RateCDR] => 1 ) [2025-03-28 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:05:05' and `end` < '2025-03-28 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:05:17] Production.INFO: count ==560 [2025-03-28 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:05:05 - End Time 2025-03-28 04:05:05 [2025-03-28 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778941', 'tblTempUsageDetail_20' ) start [2025-03-28 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778941', 'tblTempUsageDetail_20' ) end [2025-03-28 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778941', 'tblTempVendorCDR_20' ) start [2025-03-28 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778941', 'tblTempVendorCDR_20' ) end [2025-03-28 04:05:18] Production.INFO: ProcessCDR(1,14778941,1,1,2) [2025-03-28 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778941', 'tblTempUsageDetail_20' ) start [2025-03-28 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778941', 'tblTempUsageDetail_20' ) end [2025-03-28 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:05:21] Production.INFO: ==15888== Releasing lock... [2025-03-28 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:05:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:06:05 [end_date_ymd] => 2025-03-28 04:06:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:06:05' and `end` < '2025-03-28 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-28 04:06:17] Production.INFO: count ==560 [2025-03-28 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:06:05 - End Time 2025-03-28 04:06:05 [2025-03-28 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778946', 'tblTempUsageDetail_20' ) start [2025-03-28 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778946', 'tblTempUsageDetail_20' ) end [2025-03-28 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778946', 'tblTempVendorCDR_20' ) start [2025-03-28 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778946', 'tblTempVendorCDR_20' ) end [2025-03-28 04:06:18] Production.INFO: ProcessCDR(1,14778946,1,1,2) [2025-03-28 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778946', 'tblTempUsageDetail_20' ) start [2025-03-28 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778946', 'tblTempUsageDetail_20' ) end [2025-03-28 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:06:21] Production.INFO: ==15973== Releasing lock... [2025-03-28 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:06:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:07:05 [end_date_ymd] => 2025-03-28 04:07:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:07:05' and `end` < '2025-03-28 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-28 04:07:18] Production.INFO: count ==560 [2025-03-28 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:07:05 - End Time 2025-03-28 04:07:05 [2025-03-28 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778951', 'tblTempUsageDetail_20' ) start [2025-03-28 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778951', 'tblTempUsageDetail_20' ) end [2025-03-28 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778951', 'tblTempVendorCDR_20' ) start [2025-03-28 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778951', 'tblTempVendorCDR_20' ) end [2025-03-28 04:07:18] Production.INFO: ProcessCDR(1,14778951,1,1,2) [2025-03-28 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778951', 'tblTempUsageDetail_20' ) start [2025-03-28 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778951', 'tblTempUsageDetail_20' ) end [2025-03-28 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:07:21] Production.INFO: ==16058== Releasing lock... [2025-03-28 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:07:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:08:06 [end_date_ymd] => 2025-03-28 04:08:06 [RateCDR] => 1 ) [2025-03-28 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:08:06' and `end` < '2025-03-28 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:08:18] Production.INFO: count ==547 [2025-03-28 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:08:06 - End Time 2025-03-28 04:08:06 [2025-03-28 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778956', 'tblTempUsageDetail_20' ) start [2025-03-28 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778956', 'tblTempUsageDetail_20' ) end [2025-03-28 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778956', 'tblTempVendorCDR_20' ) start [2025-03-28 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778956', 'tblTempVendorCDR_20' ) end [2025-03-28 04:08:18] Production.INFO: ProcessCDR(1,14778956,1,1,2) [2025-03-28 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778956', 'tblTempUsageDetail_20' ) start [2025-03-28 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778956', 'tblTempUsageDetail_20' ) end [2025-03-28 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:08:22] Production.INFO: ==16145== Releasing lock... [2025-03-28 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:08:22] Production.INFO: 33 MB #Memory Used# [2025-03-28 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:09:05 [end_date_ymd] => 2025-03-28 04:09:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:09:05' and `end` < '2025-03-28 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-28 04:09:18] Production.INFO: count ==547 [2025-03-28 04:09:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:09:05 - End Time 2025-03-28 04:09:05 [2025-03-28 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778961', 'tblTempUsageDetail_20' ) start [2025-03-28 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778961', 'tblTempUsageDetail_20' ) end [2025-03-28 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778961', 'tblTempVendorCDR_20' ) start [2025-03-28 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778961', 'tblTempVendorCDR_20' ) end [2025-03-28 04:09:18] Production.INFO: ProcessCDR(1,14778961,1,1,2) [2025-03-28 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778961', 'tblTempUsageDetail_20' ) start [2025-03-28 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778961', 'tblTempUsageDetail_20' ) end [2025-03-28 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:09:22] Production.INFO: ==16230== Releasing lock... [2025-03-28 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:09:22] Production.INFO: 33 MB #Memory Used# [2025-03-28 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:10:06 [end_date_ymd] => 2025-03-28 04:10:06 [RateCDR] => 1 ) [2025-03-28 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-28 01:10:06' and `end` < '2025-03-28 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-28 04:10:19] Production.INFO: count ==522 [2025-03-28 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:10:06 - End Time 2025-03-28 04:10:06 [2025-03-28 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778967', 'tblTempUsageDetail_20' ) start [2025-03-28 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778967', 'tblTempUsageDetail_20' ) end [2025-03-28 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778967', 'tblTempVendorCDR_20' ) start [2025-03-28 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778967', 'tblTempVendorCDR_20' ) end [2025-03-28 04:10:19] Production.INFO: ProcessCDR(1,14778967,1,1,2) [2025-03-28 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778967', 'tblTempUsageDetail_20' ) start [2025-03-28 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778967', 'tblTempUsageDetail_20' ) end [2025-03-28 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:10:22] Production.INFO: ==16320== Releasing lock... [2025-03-28 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:10:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:11:05 [end_date_ymd] => 2025-03-28 04:11:05 [RateCDR] => 1 ) [2025-03-28 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:11:05' and `end` < '2025-03-28 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:11:18] Production.INFO: count ==505 [2025-03-28 04:11:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:11:05 - End Time 2025-03-28 04:11:05 [2025-03-28 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778972', 'tblTempUsageDetail_20' ) start [2025-03-28 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778972', 'tblTempUsageDetail_20' ) end [2025-03-28 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778972', 'tblTempVendorCDR_20' ) start [2025-03-28 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778972', 'tblTempVendorCDR_20' ) end [2025-03-28 04:11:18] Production.INFO: ProcessCDR(1,14778972,1,1,2) [2025-03-28 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778972', 'tblTempUsageDetail_20' ) start [2025-03-28 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778972', 'tblTempUsageDetail_20' ) end [2025-03-28 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:11:22] Production.INFO: ==16408== Releasing lock... [2025-03-28 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:11:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-28 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:12:06 [end_date_ymd] => 2025-03-28 04:12:06 [RateCDR] => 1 ) [2025-03-28 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:12:06' and `end` < '2025-03-28 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:12:18] Production.INFO: count ==505 [2025-03-28 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:12:06 - End Time 2025-03-28 04:12:06 [2025-03-28 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778977', 'tblTempUsageDetail_20' ) start [2025-03-28 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778977', 'tblTempUsageDetail_20' ) end [2025-03-28 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778977', 'tblTempVendorCDR_20' ) start [2025-03-28 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778977', 'tblTempVendorCDR_20' ) end [2025-03-28 04:12:18] Production.INFO: ProcessCDR(1,14778977,1,1,2) [2025-03-28 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778977', 'tblTempUsageDetail_20' ) start [2025-03-28 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778977', 'tblTempUsageDetail_20' ) end [2025-03-28 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:12:22] Production.INFO: ==16496== Releasing lock... [2025-03-28 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:12:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-28 04:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:13:04 [end_date_ymd] => 2025-03-28 04:13:04 [RateCDR] => 1 ) [2025-03-28 04: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-28 01:13:04' and `end` < '2025-03-28 04: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-28 04:13:17] Production.INFO: count ==505 [2025-03-28 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-28 01:13:04 - End Time 2025-03-28 04:13:04 [2025-03-28 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778982', 'tblTempUsageDetail_20' ) start [2025-03-28 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778982', 'tblTempUsageDetail_20' ) end [2025-03-28 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778982', 'tblTempVendorCDR_20' ) start [2025-03-28 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778982', 'tblTempVendorCDR_20' ) end [2025-03-28 04:13:17] Production.INFO: ProcessCDR(1,14778982,1,1,2) [2025-03-28 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778982', 'tblTempUsageDetail_20' ) start [2025-03-28 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778982', 'tblTempUsageDetail_20' ) end [2025-03-28 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:13:20] Production.INFO: ==16577== Releasing lock... [2025-03-28 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:13:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-28 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:14:06 [end_date_ymd] => 2025-03-28 04:14:06 [RateCDR] => 1 ) [2025-03-28 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-28 01:14:06' and `end` < '2025-03-28 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-28 04:14:18] Production.INFO: count ==506 [2025-03-28 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:14:06 - End Time 2025-03-28 04:14:06 [2025-03-28 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778987', 'tblTempUsageDetail_20' ) start [2025-03-28 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778987', 'tblTempUsageDetail_20' ) end [2025-03-28 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778987', 'tblTempVendorCDR_20' ) start [2025-03-28 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778987', 'tblTempVendorCDR_20' ) end [2025-03-28 04:14:18] Production.INFO: ProcessCDR(1,14778987,1,1,2) [2025-03-28 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778987', 'tblTempUsageDetail_20' ) start [2025-03-28 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778987', 'tblTempUsageDetail_20' ) end [2025-03-28 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:14:22] Production.INFO: ==16666== Releasing lock... [2025-03-28 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:14:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-28 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:15:05 [end_date_ymd] => 2025-03-28 04:15:05 [RateCDR] => 1 ) [2025-03-28 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:15:05' and `end` < '2025-03-28 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:15:17] Production.INFO: count ==506 [2025-03-28 04:15:17] Production.ERROR: pbx CDR StartTime 2025-03-28 01:15:05 - End Time 2025-03-28 04:15:05 [2025-03-28 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778992', 'tblTempUsageDetail_20' ) start [2025-03-28 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778992', 'tblTempUsageDetail_20' ) end [2025-03-28 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778992', 'tblTempVendorCDR_20' ) start [2025-03-28 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778992', 'tblTempVendorCDR_20' ) end [2025-03-28 04:15:17] Production.INFO: ProcessCDR(1,14778992,1,1,2) [2025-03-28 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778992', 'tblTempUsageDetail_20' ) start [2025-03-28 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778992', 'tblTempUsageDetail_20' ) end [2025-03-28 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:15:21] Production.INFO: ==16753== Releasing lock... [2025-03-28 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:15:21] Production.INFO: 33 MB #Memory Used# [2025-03-28 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:16:05 [end_date_ymd] => 2025-03-28 04:16:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:16:05' and `end` < '2025-03-28 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-28 04:16:18] Production.INFO: count ==506 [2025-03-28 04:16:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:16:05 - End Time 2025-03-28 04:16:05 [2025-03-28 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778997', 'tblTempUsageDetail_20' ) start [2025-03-28 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14778997', 'tblTempUsageDetail_20' ) end [2025-03-28 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778997', 'tblTempVendorCDR_20' ) start [2025-03-28 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14778997', 'tblTempVendorCDR_20' ) end [2025-03-28 04:16:18] Production.INFO: ProcessCDR(1,14778997,1,1,2) [2025-03-28 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14778997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14778997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14778997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14778997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778997', 'tblTempUsageDetail_20' ) start [2025-03-28 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14778997', 'tblTempUsageDetail_20' ) end [2025-03-28 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:16:21] Production.INFO: ==16839== Releasing lock... [2025-03-28 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:16:21] Production.INFO: 33 MB #Memory Used# [2025-03-28 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:17:05 [end_date_ymd] => 2025-03-28 04:17:05 [RateCDR] => 1 ) [2025-03-28 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:17:05' and `end` < '2025-03-28 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:17:17] Production.INFO: count ==506 [2025-03-28 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:17:05 - End Time 2025-03-28 04:17:05 [2025-03-28 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779002', 'tblTempUsageDetail_20' ) start [2025-03-28 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779002', 'tblTempUsageDetail_20' ) end [2025-03-28 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779002', 'tblTempVendorCDR_20' ) start [2025-03-28 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779002', 'tblTempVendorCDR_20' ) end [2025-03-28 04:17:18] Production.INFO: ProcessCDR(1,14779002,1,1,2) [2025-03-28 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779002', 'tblTempUsageDetail_20' ) start [2025-03-28 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779002', 'tblTempUsageDetail_20' ) end [2025-03-28 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:17:21] Production.INFO: ==16926== Releasing lock... [2025-03-28 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:17:21] Production.INFO: 33 MB #Memory Used# [2025-03-28 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:18:05 [end_date_ymd] => 2025-03-28 04:18:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:18:05' and `end` < '2025-03-28 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-28 04:18:17] Production.INFO: count ==506 [2025-03-28 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:18:05 - End Time 2025-03-28 04:18:05 [2025-03-28 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779007', 'tblTempUsageDetail_20' ) start [2025-03-28 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779007', 'tblTempUsageDetail_20' ) end [2025-03-28 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779007', 'tblTempVendorCDR_20' ) start [2025-03-28 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779007', 'tblTempVendorCDR_20' ) end [2025-03-28 04:18:18] Production.INFO: ProcessCDR(1,14779007,1,1,2) [2025-03-28 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779007', 'tblTempUsageDetail_20' ) start [2025-03-28 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779007', 'tblTempUsageDetail_20' ) end [2025-03-28 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:18:21] Production.INFO: ==17013== Releasing lock... [2025-03-28 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:18:21] Production.INFO: 33 MB #Memory Used# [2025-03-28 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:19:05 [end_date_ymd] => 2025-03-28 04:19:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:19:05' and `end` < '2025-03-28 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-28 04:19:17] Production.INFO: count ==492 [2025-03-28 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:19:05 - End Time 2025-03-28 04:19:05 [2025-03-28 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779012', 'tblTempUsageDetail_20' ) start [2025-03-28 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779012', 'tblTempUsageDetail_20' ) end [2025-03-28 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779012', 'tblTempVendorCDR_20' ) start [2025-03-28 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779012', 'tblTempVendorCDR_20' ) end [2025-03-28 04:19:18] Production.INFO: ProcessCDR(1,14779012,1,1,2) [2025-03-28 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779012', 'tblTempUsageDetail_20' ) start [2025-03-28 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779012', 'tblTempUsageDetail_20' ) end [2025-03-28 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:19:21] Production.INFO: ==17139== Releasing lock... [2025-03-28 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:19:21] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:20:06 [end_date_ymd] => 2025-03-28 04:20:06 [RateCDR] => 1 ) [2025-03-28 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-28 01:20:06' and `end` < '2025-03-28 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-28 04:20:19] Production.INFO: count ==475 [2025-03-28 04:20:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:20:06 - End Time 2025-03-28 04:20:06 [2025-03-28 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779018', 'tblTempUsageDetail_20' ) start [2025-03-28 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779018', 'tblTempUsageDetail_20' ) end [2025-03-28 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779018', 'tblTempVendorCDR_20' ) start [2025-03-28 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779018', 'tblTempVendorCDR_20' ) end [2025-03-28 04:20:19] Production.INFO: ProcessCDR(1,14779018,1,1,2) [2025-03-28 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779018', 'tblTempUsageDetail_20' ) start [2025-03-28 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779018', 'tblTempUsageDetail_20' ) end [2025-03-28 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:20:22] Production.INFO: ==17228== Releasing lock... [2025-03-28 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:20:22] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:21:06 [end_date_ymd] => 2025-03-28 04:21:06 [RateCDR] => 1 ) [2025-03-28 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-28 01:21:06' and `end` < '2025-03-28 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-28 04:21:18] Production.INFO: count ==471 [2025-03-28 04:21:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:21:06 - End Time 2025-03-28 04:21:06 [2025-03-28 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779023', 'tblTempUsageDetail_20' ) start [2025-03-28 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779023', 'tblTempUsageDetail_20' ) end [2025-03-28 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779023', 'tblTempVendorCDR_20' ) start [2025-03-28 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779023', 'tblTempVendorCDR_20' ) end [2025-03-28 04:21:18] Production.INFO: ProcessCDR(1,14779023,1,1,2) [2025-03-28 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779023', 'tblTempUsageDetail_20' ) start [2025-03-28 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779023', 'tblTempUsageDetail_20' ) end [2025-03-28 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:21:22] Production.INFO: ==17321== Releasing lock... [2025-03-28 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:21:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:22:06 [end_date_ymd] => 2025-03-28 04:22:06 [RateCDR] => 1 ) [2025-03-28 04: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-28 01:22:06' and `end` < '2025-03-28 04: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-28 04:22:18] Production.INFO: count ==470 [2025-03-28 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:22:06 - End Time 2025-03-28 04:22:06 [2025-03-28 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779028', 'tblTempUsageDetail_20' ) start [2025-03-28 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779028', 'tblTempUsageDetail_20' ) end [2025-03-28 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779028', 'tblTempVendorCDR_20' ) start [2025-03-28 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779028', 'tblTempVendorCDR_20' ) end [2025-03-28 04:22:18] Production.INFO: ProcessCDR(1,14779028,1,1,2) [2025-03-28 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779028', 'tblTempUsageDetail_20' ) start [2025-03-28 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779028', 'tblTempUsageDetail_20' ) end [2025-03-28 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:22:22] Production.INFO: ==17408== Releasing lock... [2025-03-28 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:22:22] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:23:06 [end_date_ymd] => 2025-03-28 04:23:06 [RateCDR] => 1 ) [2025-03-28 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-28 01:23:06' and `end` < '2025-03-28 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-28 04:23:18] Production.INFO: count ==470 [2025-03-28 04:23:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:23:06 - End Time 2025-03-28 04:23:06 [2025-03-28 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779033', 'tblTempUsageDetail_20' ) start [2025-03-28 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779033', 'tblTempUsageDetail_20' ) end [2025-03-28 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779033', 'tblTempVendorCDR_20' ) start [2025-03-28 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779033', 'tblTempVendorCDR_20' ) end [2025-03-28 04:23:19] Production.INFO: ProcessCDR(1,14779033,1,1,2) [2025-03-28 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779033', 'tblTempUsageDetail_20' ) start [2025-03-28 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779033', 'tblTempUsageDetail_20' ) end [2025-03-28 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:23:22] Production.INFO: ==17492== Releasing lock... [2025-03-28 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:23:22] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:24:05 [end_date_ymd] => 2025-03-28 04:24:05 [RateCDR] => 1 ) [2025-03-28 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:24:05' and `end` < '2025-03-28 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:24:18] Production.INFO: count ==470 [2025-03-28 04:24:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:24:05 - End Time 2025-03-28 04:24:05 [2025-03-28 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779038', 'tblTempUsageDetail_20' ) start [2025-03-28 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779038', 'tblTempUsageDetail_20' ) end [2025-03-28 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779038', 'tblTempVendorCDR_20' ) start [2025-03-28 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779038', 'tblTempVendorCDR_20' ) end [2025-03-28 04:24:18] Production.INFO: ProcessCDR(1,14779038,1,1,2) [2025-03-28 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779038', 'tblTempUsageDetail_20' ) start [2025-03-28 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779038', 'tblTempUsageDetail_20' ) end [2025-03-28 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:24:21] Production.INFO: ==17580== Releasing lock... [2025-03-28 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:24:21] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:25:05 [end_date_ymd] => 2025-03-28 04:25:05 [RateCDR] => 1 ) [2025-03-28 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:25:05' and `end` < '2025-03-28 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:25:18] Production.INFO: count ==470 [2025-03-28 04:25:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:25:05 - End Time 2025-03-28 04:25:05 [2025-03-28 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779043', 'tblTempUsageDetail_20' ) start [2025-03-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779043', 'tblTempUsageDetail_20' ) end [2025-03-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779043', 'tblTempVendorCDR_20' ) start [2025-03-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779043', 'tblTempVendorCDR_20' ) end [2025-03-28 04:25:18] Production.INFO: ProcessCDR(1,14779043,1,1,2) [2025-03-28 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779043', 'tblTempUsageDetail_20' ) start [2025-03-28 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779043', 'tblTempUsageDetail_20' ) end [2025-03-28 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:25:22] Production.INFO: ==17666== Releasing lock... [2025-03-28 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:25:22] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:26:05 [end_date_ymd] => 2025-03-28 04:26:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:26:05' and `end` < '2025-03-28 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-28 04:26:18] Production.INFO: count ==470 [2025-03-28 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:26:05 - End Time 2025-03-28 04:26:05 [2025-03-28 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779048', 'tblTempUsageDetail_20' ) start [2025-03-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779048', 'tblTempUsageDetail_20' ) end [2025-03-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779048', 'tblTempVendorCDR_20' ) start [2025-03-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779048', 'tblTempVendorCDR_20' ) end [2025-03-28 04:26:18] Production.INFO: ProcessCDR(1,14779048,1,1,2) [2025-03-28 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779048', 'tblTempUsageDetail_20' ) start [2025-03-28 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779048', 'tblTempUsageDetail_20' ) end [2025-03-28 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:26:21] Production.INFO: ==17752== Releasing lock... [2025-03-28 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:26:21] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:27:06 [end_date_ymd] => 2025-03-28 04:27:06 [RateCDR] => 1 ) [2025-03-28 04: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-28 01:27:06' and `end` < '2025-03-28 04: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-28 04:27:18] Production.INFO: count ==469 [2025-03-28 04:27:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:27:06 - End Time 2025-03-28 04:27:06 [2025-03-28 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779053', 'tblTempUsageDetail_20' ) start [2025-03-28 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779053', 'tblTempUsageDetail_20' ) end [2025-03-28 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779053', 'tblTempVendorCDR_20' ) start [2025-03-28 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779053', 'tblTempVendorCDR_20' ) end [2025-03-28 04:27:18] Production.INFO: ProcessCDR(1,14779053,1,1,2) [2025-03-28 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779053', 'tblTempUsageDetail_20' ) start [2025-03-28 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779053', 'tblTempUsageDetail_20' ) end [2025-03-28 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:27:22] Production.INFO: ==17839== Releasing lock... [2025-03-28 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:27:22] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:28:05 [end_date_ymd] => 2025-03-28 04:28:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:28:05' and `end` < '2025-03-28 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-28 04:28:18] Production.INFO: count ==471 [2025-03-28 04:28:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:28:05 - End Time 2025-03-28 04:28:05 [2025-03-28 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779058', 'tblTempUsageDetail_20' ) start [2025-03-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779058', 'tblTempUsageDetail_20' ) end [2025-03-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779058', 'tblTempVendorCDR_20' ) start [2025-03-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779058', 'tblTempVendorCDR_20' ) end [2025-03-28 04:28:18] Production.INFO: ProcessCDR(1,14779058,1,1,2) [2025-03-28 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779058', 'tblTempUsageDetail_20' ) start [2025-03-28 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779058', 'tblTempUsageDetail_20' ) end [2025-03-28 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:28:22] Production.INFO: ==17923== Releasing lock... [2025-03-28 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:28:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:29:05 [end_date_ymd] => 2025-03-28 04:29:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:29:05' and `end` < '2025-03-28 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-28 04:29:18] Production.INFO: count ==471 [2025-03-28 04:29:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:29:05 - End Time 2025-03-28 04:29:05 [2025-03-28 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779063', 'tblTempUsageDetail_20' ) start [2025-03-28 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779063', 'tblTempUsageDetail_20' ) end [2025-03-28 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779063', 'tblTempVendorCDR_20' ) start [2025-03-28 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779063', 'tblTempVendorCDR_20' ) end [2025-03-28 04:29:18] Production.INFO: ProcessCDR(1,14779063,1,1,2) [2025-03-28 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779063', 'tblTempUsageDetail_20' ) start [2025-03-28 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779063', 'tblTempUsageDetail_20' ) end [2025-03-28 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:29:22] Production.INFO: ==18007== Releasing lock... [2025-03-28 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:30:07 [end_date_ymd] => 2025-03-28 04:30:07 [RateCDR] => 1 ) [2025-03-28 04:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:30:07' and `end` < '2025-03-28 04:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:30:19] Production.INFO: count ==458 [2025-03-28 04:30:20] Production.ERROR: pbx CDR StartTime 2025-03-28 01:30:07 - End Time 2025-03-28 04:30:07 [2025-03-28 04:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779070', 'tblTempUsageDetail_20' ) start [2025-03-28 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779070', 'tblTempUsageDetail_20' ) end [2025-03-28 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779070', 'tblTempVendorCDR_20' ) start [2025-03-28 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779070', 'tblTempVendorCDR_20' ) end [2025-03-28 04:30:20] Production.INFO: ProcessCDR(1,14779070,1,1,2) [2025-03-28 04:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779070', 'tblTempUsageDetail_20' ) start [2025-03-28 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779070', 'tblTempUsageDetail_20' ) end [2025-03-28 04:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:30:24] Production.INFO: ==18100== Releasing lock... [2025-03-28 04:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:30:24] Production.INFO: 32.25 MB #Memory Used# [2025-03-28 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:31:05 [end_date_ymd] => 2025-03-28 04:31:05 [RateCDR] => 1 ) [2025-03-28 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:31:05' and `end` < '2025-03-28 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:31:18] Production.INFO: count ==456 [2025-03-28 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:31:05 - End Time 2025-03-28 04:31:05 [2025-03-28 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779075', 'tblTempUsageDetail_20' ) start [2025-03-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779075', 'tblTempUsageDetail_20' ) end [2025-03-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779075', 'tblTempVendorCDR_20' ) start [2025-03-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779075', 'tblTempVendorCDR_20' ) end [2025-03-28 04:31:18] Production.INFO: ProcessCDR(1,14779075,1,1,2) [2025-03-28 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779075', 'tblTempUsageDetail_20' ) start [2025-03-28 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779075', 'tblTempUsageDetail_20' ) end [2025-03-28 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:31:21] Production.INFO: ==18257== Releasing lock... [2025-03-28 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:31:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-28 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:32:05 [end_date_ymd] => 2025-03-28 04:32:05 [RateCDR] => 1 ) [2025-03-28 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:32:05' and `end` < '2025-03-28 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:32:18] Production.INFO: count ==455 [2025-03-28 04:32:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:32:05 - End Time 2025-03-28 04:32:05 [2025-03-28 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779080', 'tblTempUsageDetail_20' ) start [2025-03-28 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779080', 'tblTempUsageDetail_20' ) end [2025-03-28 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779080', 'tblTempVendorCDR_20' ) start [2025-03-28 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779080', 'tblTempVendorCDR_20' ) end [2025-03-28 04:32:18] Production.INFO: ProcessCDR(1,14779080,1,1,2) [2025-03-28 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779080', 'tblTempUsageDetail_20' ) start [2025-03-28 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779080', 'tblTempUsageDetail_20' ) end [2025-03-28 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:32:21] Production.INFO: ==18338== Releasing lock... [2025-03-28 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-28 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:33:05 [end_date_ymd] => 2025-03-28 04:33:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:33:05' and `end` < '2025-03-28 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-28 04:33:18] Production.INFO: count ==451 [2025-03-28 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:33:05 - End Time 2025-03-28 04:33:05 [2025-03-28 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779085', 'tblTempUsageDetail_20' ) start [2025-03-28 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779085', 'tblTempUsageDetail_20' ) end [2025-03-28 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779085', 'tblTempVendorCDR_20' ) start [2025-03-28 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779085', 'tblTempVendorCDR_20' ) end [2025-03-28 04:33:18] Production.INFO: ProcessCDR(1,14779085,1,1,2) [2025-03-28 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779085', 'tblTempUsageDetail_20' ) start [2025-03-28 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779085', 'tblTempUsageDetail_20' ) end [2025-03-28 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:33:21] Production.INFO: ==18456== Releasing lock... [2025-03-28 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-28 04:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:34:06 [end_date_ymd] => 2025-03-28 04:34:06 [RateCDR] => 1 ) [2025-03-28 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-28 01:34:06' and `end` < '2025-03-28 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-28 04:34:19] Production.INFO: count ==448 [2025-03-28 04:34:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:34:06 - End Time 2025-03-28 04:34:06 [2025-03-28 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779090', 'tblTempUsageDetail_20' ) start [2025-03-28 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779090', 'tblTempUsageDetail_20' ) end [2025-03-28 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779090', 'tblTempVendorCDR_20' ) start [2025-03-28 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779090', 'tblTempVendorCDR_20' ) end [2025-03-28 04:34:19] Production.INFO: ProcessCDR(1,14779090,1,1,2) [2025-03-28 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779090', 'tblTempUsageDetail_20' ) start [2025-03-28 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779090', 'tblTempUsageDetail_20' ) end [2025-03-28 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:34:22] Production.INFO: ==18589== Releasing lock... [2025-03-28 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:34:22] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:35:05 [end_date_ymd] => 2025-03-28 04:35:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:35:05' and `end` < '2025-03-28 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-28 04:35:17] Production.INFO: count ==448 [2025-03-28 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-28 01:35:05 - End Time 2025-03-28 04:35:05 [2025-03-28 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779095', 'tblTempUsageDetail_20' ) start [2025-03-28 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779095', 'tblTempUsageDetail_20' ) end [2025-03-28 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779095', 'tblTempVendorCDR_20' ) start [2025-03-28 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779095', 'tblTempVendorCDR_20' ) end [2025-03-28 04:35:18] Production.INFO: ProcessCDR(1,14779095,1,1,2) [2025-03-28 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779095', 'tblTempUsageDetail_20' ) start [2025-03-28 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779095', 'tblTempUsageDetail_20' ) end [2025-03-28 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:35:21] Production.INFO: ==18674== Releasing lock... [2025-03-28 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:35:21] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:36:05 [end_date_ymd] => 2025-03-28 04:36:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:36:05' and `end` < '2025-03-28 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-28 04:36:18] Production.INFO: count ==445 [2025-03-28 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:36:05 - End Time 2025-03-28 04:36:05 [2025-03-28 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779100', 'tblTempUsageDetail_20' ) start [2025-03-28 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779100', 'tblTempUsageDetail_20' ) end [2025-03-28 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779100', 'tblTempVendorCDR_20' ) start [2025-03-28 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779100', 'tblTempVendorCDR_20' ) end [2025-03-28 04:36:18] Production.INFO: ProcessCDR(1,14779100,1,1,2) [2025-03-28 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779100', 'tblTempUsageDetail_20' ) start [2025-03-28 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779100', 'tblTempUsageDetail_20' ) end [2025-03-28 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:36:21] Production.INFO: ==18766== Releasing lock... [2025-03-28 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:36:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:37:05 [end_date_ymd] => 2025-03-28 04:37:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:37:05' and `end` < '2025-03-28 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-28 04:37:18] Production.INFO: count ==443 [2025-03-28 04:37:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:37:05 - End Time 2025-03-28 04:37:05 [2025-03-28 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779105', 'tblTempUsageDetail_20' ) start [2025-03-28 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779105', 'tblTempUsageDetail_20' ) end [2025-03-28 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779105', 'tblTempVendorCDR_20' ) start [2025-03-28 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779105', 'tblTempVendorCDR_20' ) end [2025-03-28 04:37:18] Production.INFO: ProcessCDR(1,14779105,1,1,2) [2025-03-28 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779105', 'tblTempUsageDetail_20' ) start [2025-03-28 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779105', 'tblTempUsageDetail_20' ) end [2025-03-28 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:37:21] Production.INFO: ==18851== Releasing lock... [2025-03-28 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-28 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:38:05 [end_date_ymd] => 2025-03-28 04:38:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:38:05' and `end` < '2025-03-28 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-28 04:38:18] Production.INFO: count ==441 [2025-03-28 04:38:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:38:05 - End Time 2025-03-28 04:38:05 [2025-03-28 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779110', 'tblTempUsageDetail_20' ) start [2025-03-28 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779110', 'tblTempUsageDetail_20' ) end [2025-03-28 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779110', 'tblTempVendorCDR_20' ) start [2025-03-28 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779110', 'tblTempVendorCDR_20' ) end [2025-03-28 04:38:18] Production.INFO: ProcessCDR(1,14779110,1,1,2) [2025-03-28 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779110', 'tblTempUsageDetail_20' ) start [2025-03-28 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779110', 'tblTempUsageDetail_20' ) end [2025-03-28 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:38:21] Production.INFO: ==18939== Releasing lock... [2025-03-28 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:39:05 [end_date_ymd] => 2025-03-28 04:39:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:39:05' and `end` < '2025-03-28 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-28 04:39:17] Production.INFO: count ==436 [2025-03-28 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-28 01:39:05 - End Time 2025-03-28 04:39:05 [2025-03-28 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779115', 'tblTempUsageDetail_20' ) start [2025-03-28 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779115', 'tblTempUsageDetail_20' ) end [2025-03-28 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779115', 'tblTempVendorCDR_20' ) start [2025-03-28 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779115', 'tblTempVendorCDR_20' ) end [2025-03-28 04:39:17] Production.INFO: ProcessCDR(1,14779115,1,1,2) [2025-03-28 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779115', 'tblTempUsageDetail_20' ) start [2025-03-28 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779115', 'tblTempUsageDetail_20' ) end [2025-03-28 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:39:21] Production.INFO: ==19020== Releasing lock... [2025-03-28 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:40:06 [end_date_ymd] => 2025-03-28 04:40:06 [RateCDR] => 1 ) [2025-03-28 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-28 01:40:06' and `end` < '2025-03-28 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-28 04:40:18] Production.INFO: count ==422 [2025-03-28 04:40:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:40:06 - End Time 2025-03-28 04:40:06 [2025-03-28 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779121', 'tblTempUsageDetail_20' ) start [2025-03-28 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779121', 'tblTempUsageDetail_20' ) end [2025-03-28 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779121', 'tblTempVendorCDR_20' ) start [2025-03-28 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779121', 'tblTempVendorCDR_20' ) end [2025-03-28 04:40:19] Production.INFO: ProcessCDR(1,14779121,1,1,2) [2025-03-28 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779121', 'tblTempUsageDetail_20' ) start [2025-03-28 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779121', 'tblTempUsageDetail_20' ) end [2025-03-28 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:40:22] Production.INFO: ==19120== Releasing lock... [2025-03-28 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:40:22] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:41:05 [end_date_ymd] => 2025-03-28 04:41:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:41:05' and `end` < '2025-03-28 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-28 04:41:18] Production.INFO: count ==404 [2025-03-28 04:41:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:41:05 - End Time 2025-03-28 04:41:05 [2025-03-28 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779126', 'tblTempUsageDetail_20' ) start [2025-03-28 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779126', 'tblTempUsageDetail_20' ) end [2025-03-28 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779126', 'tblTempVendorCDR_20' ) start [2025-03-28 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779126', 'tblTempVendorCDR_20' ) end [2025-03-28 04:41:18] Production.INFO: ProcessCDR(1,14779126,1,1,2) [2025-03-28 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779126', 'tblTempUsageDetail_20' ) start [2025-03-28 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779126', 'tblTempUsageDetail_20' ) end [2025-03-28 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:41:21] Production.INFO: ==19210== Releasing lock... [2025-03-28 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:42:06 [end_date_ymd] => 2025-03-28 04:42:06 [RateCDR] => 1 ) [2025-03-28 04: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-28 01:42:06' and `end` < '2025-03-28 04: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-28 04:42:18] Production.INFO: count ==401 [2025-03-28 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:42:06 - End Time 2025-03-28 04:42:06 [2025-03-28 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779131', 'tblTempUsageDetail_20' ) start [2025-03-28 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779131', 'tblTempUsageDetail_20' ) end [2025-03-28 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779131', 'tblTempVendorCDR_20' ) start [2025-03-28 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779131', 'tblTempVendorCDR_20' ) end [2025-03-28 04:42:18] Production.INFO: ProcessCDR(1,14779131,1,1,2) [2025-03-28 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779131', 'tblTempUsageDetail_20' ) start [2025-03-28 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779131', 'tblTempUsageDetail_20' ) end [2025-03-28 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:42:22] Production.INFO: ==19297== Releasing lock... [2025-03-28 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:42:22] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:43:05 [end_date_ymd] => 2025-03-28 04:43:05 [RateCDR] => 1 ) [2025-03-28 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:43:05' and `end` < '2025-03-28 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:43:18] Production.INFO: count ==415 [2025-03-28 04:43:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:43:05 - End Time 2025-03-28 04:43:05 [2025-03-28 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779136', 'tblTempUsageDetail_20' ) start [2025-03-28 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779136', 'tblTempUsageDetail_20' ) end [2025-03-28 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779136', 'tblTempVendorCDR_20' ) start [2025-03-28 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779136', 'tblTempVendorCDR_20' ) end [2025-03-28 04:43:18] Production.INFO: ProcessCDR(1,14779136,1,1,2) [2025-03-28 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779136', 'tblTempUsageDetail_20' ) start [2025-03-28 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779136', 'tblTempUsageDetail_20' ) end [2025-03-28 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:43:21] Production.INFO: ==19385== Releasing lock... [2025-03-28 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:44:06 [end_date_ymd] => 2025-03-28 04:44:06 [RateCDR] => 1 ) [2025-03-28 04:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:44:06' and `end` < '2025-03-28 04:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:44:18] Production.INFO: count ==414 [2025-03-28 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:44:06 - End Time 2025-03-28 04:44:06 [2025-03-28 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779141', 'tblTempUsageDetail_20' ) start [2025-03-28 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779141', 'tblTempUsageDetail_20' ) end [2025-03-28 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779141', 'tblTempVendorCDR_20' ) start [2025-03-28 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779141', 'tblTempVendorCDR_20' ) end [2025-03-28 04:44:18] Production.INFO: ProcessCDR(1,14779141,1,1,2) [2025-03-28 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779141', 'tblTempUsageDetail_20' ) start [2025-03-28 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779141', 'tblTempUsageDetail_20' ) end [2025-03-28 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:44:22] Production.INFO: ==19471== Releasing lock... [2025-03-28 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:44:22] Production.INFO: 32 MB #Memory Used# [2025-03-28 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:45:05 [end_date_ymd] => 2025-03-28 04:45:05 [RateCDR] => 1 ) [2025-03-28 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:45:05' and `end` < '2025-03-28 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:45:17] Production.INFO: count ==410 [2025-03-28 04:45:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:45:05 - End Time 2025-03-28 04:45:05 [2025-03-28 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779146', 'tblTempUsageDetail_20' ) start [2025-03-28 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779146', 'tblTempUsageDetail_20' ) end [2025-03-28 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779146', 'tblTempVendorCDR_20' ) start [2025-03-28 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779146', 'tblTempVendorCDR_20' ) end [2025-03-28 04:45:18] Production.INFO: ProcessCDR(1,14779146,1,1,2) [2025-03-28 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779146', 'tblTempUsageDetail_20' ) start [2025-03-28 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779146', 'tblTempUsageDetail_20' ) end [2025-03-28 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:45:21] Production.INFO: ==19542== Releasing lock... [2025-03-28 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:45:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:46:06 [end_date_ymd] => 2025-03-28 04:46:06 [RateCDR] => 1 ) [2025-03-28 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-28 01:46:06' and `end` < '2025-03-28 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-28 04:46:19] Production.INFO: count ==404 [2025-03-28 04:46:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:46:06 - End Time 2025-03-28 04:46:06 [2025-03-28 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779151', 'tblTempUsageDetail_20' ) start [2025-03-28 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779151', 'tblTempUsageDetail_20' ) end [2025-03-28 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779151', 'tblTempVendorCDR_20' ) start [2025-03-28 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779151', 'tblTempVendorCDR_20' ) end [2025-03-28 04:46:19] Production.INFO: ProcessCDR(1,14779151,1,1,2) [2025-03-28 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779151', 'tblTempUsageDetail_20' ) start [2025-03-28 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779151', 'tblTempUsageDetail_20' ) end [2025-03-28 04:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:46:23] Production.INFO: ==19617== Releasing lock... [2025-03-28 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:46:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-28 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:47:06 [end_date_ymd] => 2025-03-28 04:47:06 [RateCDR] => 1 ) [2025-03-28 04:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:47:06' and `end` < '2025-03-28 04:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:47:20] Production.INFO: count ==387 [2025-03-28 04:47:20] Production.ERROR: pbx CDR StartTime 2025-03-28 01:47:06 - End Time 2025-03-28 04:47:06 [2025-03-28 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779156', 'tblTempUsageDetail_20' ) start [2025-03-28 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779156', 'tblTempUsageDetail_20' ) end [2025-03-28 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779156', 'tblTempVendorCDR_20' ) start [2025-03-28 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779156', 'tblTempVendorCDR_20' ) end [2025-03-28 04:47:20] Production.INFO: ProcessCDR(1,14779156,1,1,2) [2025-03-28 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779156', 'tblTempUsageDetail_20' ) start [2025-03-28 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779156', 'tblTempUsageDetail_20' ) end [2025-03-28 04:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:47:23] Production.INFO: ==19689== Releasing lock... [2025-03-28 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:47:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-28 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:48:06 [end_date_ymd] => 2025-03-28 04:48:06 [RateCDR] => 1 ) [2025-03-28 04:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:48:06' and `end` < '2025-03-28 04:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:48:19] Production.INFO: count ==383 [2025-03-28 04:48:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:48:06 - End Time 2025-03-28 04:48:06 [2025-03-28 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779161', 'tblTempUsageDetail_20' ) start [2025-03-28 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779161', 'tblTempUsageDetail_20' ) end [2025-03-28 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779161', 'tblTempVendorCDR_20' ) start [2025-03-28 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779161', 'tblTempVendorCDR_20' ) end [2025-03-28 04:48:19] Production.INFO: ProcessCDR(1,14779161,1,1,2) [2025-03-28 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779161', 'tblTempUsageDetail_20' ) start [2025-03-28 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779161', 'tblTempUsageDetail_20' ) end [2025-03-28 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:48:23] Production.INFO: ==19759== Releasing lock... [2025-03-28 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:48:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-28 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:49:05 [end_date_ymd] => 2025-03-28 04:49:05 [RateCDR] => 1 ) [2025-03-28 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:49:05' and `end` < '2025-03-28 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:49:18] Production.INFO: count ==381 [2025-03-28 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:49:05 - End Time 2025-03-28 04:49:05 [2025-03-28 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779166', 'tblTempUsageDetail_20' ) start [2025-03-28 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779166', 'tblTempUsageDetail_20' ) end [2025-03-28 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779166', 'tblTempVendorCDR_20' ) start [2025-03-28 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779166', 'tblTempVendorCDR_20' ) end [2025-03-28 04:49:18] Production.INFO: ProcessCDR(1,14779166,1,1,2) [2025-03-28 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779166', 'tblTempUsageDetail_20' ) start [2025-03-28 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779166', 'tblTempUsageDetail_20' ) end [2025-03-28 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:49:22] Production.INFO: ==19832== Releasing lock... [2025-03-28 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:49:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 04:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:50:07 [end_date_ymd] => 2025-03-28 04:50:07 [RateCDR] => 1 ) [2025-03-28 04: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-28 01:50:07' and `end` < '2025-03-28 04: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-28 04:50:21] Production.INFO: count ==372 [2025-03-28 04:50:21] Production.ERROR: pbx CDR StartTime 2025-03-28 01:50:07 - End Time 2025-03-28 04:50:07 [2025-03-28 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779172', 'tblTempUsageDetail_20' ) start [2025-03-28 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779172', 'tblTempUsageDetail_20' ) end [2025-03-28 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779172', 'tblTempVendorCDR_20' ) start [2025-03-28 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779172', 'tblTempVendorCDR_20' ) end [2025-03-28 04:50:21] Production.INFO: ProcessCDR(1,14779172,1,1,2) [2025-03-28 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779172', 'tblTempUsageDetail_20' ) start [2025-03-28 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779172', 'tblTempUsageDetail_20' ) end [2025-03-28 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:50:24] Production.INFO: ==19947== Releasing lock... [2025-03-28 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:50:24] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:51:05 [end_date_ymd] => 2025-03-28 04:51:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:51:05' and `end` < '2025-03-28 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-28 04:51:18] Production.INFO: count ==372 [2025-03-28 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:51:05 - End Time 2025-03-28 04:51:05 [2025-03-28 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779177', 'tblTempUsageDetail_20' ) start [2025-03-28 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779177', 'tblTempUsageDetail_20' ) end [2025-03-28 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779177', 'tblTempVendorCDR_20' ) start [2025-03-28 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779177', 'tblTempVendorCDR_20' ) end [2025-03-28 04:51:18] Production.INFO: ProcessCDR(1,14779177,1,1,2) [2025-03-28 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779177', 'tblTempUsageDetail_20' ) start [2025-03-28 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779177', 'tblTempUsageDetail_20' ) end [2025-03-28 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:51:22] Production.INFO: ==20020== Releasing lock... [2025-03-28 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:51:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:52:06 [end_date_ymd] => 2025-03-28 04:52:06 [RateCDR] => 1 ) [2025-03-28 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 01:52:06' and `end` < '2025-03-28 04:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 04:52:18] Production.INFO: count ==372 [2025-03-28 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:52:06 - End Time 2025-03-28 04:52:06 [2025-03-28 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779182', 'tblTempUsageDetail_20' ) start [2025-03-28 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779182', 'tblTempUsageDetail_20' ) end [2025-03-28 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779182', 'tblTempVendorCDR_20' ) start [2025-03-28 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779182', 'tblTempVendorCDR_20' ) end [2025-03-28 04:52:19] Production.INFO: ProcessCDR(1,14779182,1,1,2) [2025-03-28 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779182', 'tblTempUsageDetail_20' ) start [2025-03-28 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779182', 'tblTempUsageDetail_20' ) end [2025-03-28 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:52:22] Production.INFO: ==20093== Releasing lock... [2025-03-28 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:52:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:53:05 [end_date_ymd] => 2025-03-28 04:53:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:53:05' and `end` < '2025-03-28 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-28 04:53:19] Production.INFO: count ==375 [2025-03-28 04:53:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:53:05 - End Time 2025-03-28 04:53:05 [2025-03-28 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779187', 'tblTempUsageDetail_20' ) start [2025-03-28 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779187', 'tblTempUsageDetail_20' ) end [2025-03-28 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779187', 'tblTempVendorCDR_20' ) start [2025-03-28 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779187', 'tblTempVendorCDR_20' ) end [2025-03-28 04:53:19] Production.INFO: ProcessCDR(1,14779187,1,1,2) [2025-03-28 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779187', 'tblTempUsageDetail_20' ) start [2025-03-28 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779187', 'tblTempUsageDetail_20' ) end [2025-03-28 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:53:23] Production.INFO: ==20184== Releasing lock... [2025-03-28 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:53:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-28 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:54:05 [end_date_ymd] => 2025-03-28 04:54:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:54:05' and `end` < '2025-03-28 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-28 04:54:19] Production.INFO: count ==379 [2025-03-28 04:54:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:54:05 - End Time 2025-03-28 04:54:05 [2025-03-28 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779192', 'tblTempUsageDetail_20' ) start [2025-03-28 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779192', 'tblTempUsageDetail_20' ) end [2025-03-28 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779192', 'tblTempVendorCDR_20' ) start [2025-03-28 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779192', 'tblTempVendorCDR_20' ) end [2025-03-28 04:54:19] Production.INFO: ProcessCDR(1,14779192,1,1,2) [2025-03-28 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779192', 'tblTempUsageDetail_20' ) start [2025-03-28 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779192', 'tblTempUsageDetail_20' ) end [2025-03-28 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:54:22] Production.INFO: ==20256== Releasing lock... [2025-03-28 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:54:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-28 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:55:05 [end_date_ymd] => 2025-03-28 04:55:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:55:05' and `end` < '2025-03-28 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-28 04:55:19] Production.INFO: count ==379 [2025-03-28 04:55:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:55:05 - End Time 2025-03-28 04:55:05 [2025-03-28 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779197', 'tblTempUsageDetail_20' ) start [2025-03-28 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779197', 'tblTempUsageDetail_20' ) end [2025-03-28 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779197', 'tblTempVendorCDR_20' ) start [2025-03-28 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779197', 'tblTempVendorCDR_20' ) end [2025-03-28 04:55:19] Production.INFO: ProcessCDR(1,14779197,1,1,2) [2025-03-28 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779197', 'tblTempUsageDetail_20' ) start [2025-03-28 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779197', 'tblTempUsageDetail_20' ) end [2025-03-28 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:55:22] Production.INFO: ==20329== Releasing lock... [2025-03-28 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-28 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:56:06 [end_date_ymd] => 2025-03-28 04:56:06 [RateCDR] => 1 ) [2025-03-28 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-28 01:56:06' and `end` < '2025-03-28 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-28 04:56:19] Production.INFO: count ==379 [2025-03-28 04:56:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:56:06 - End Time 2025-03-28 04:56:06 [2025-03-28 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779202', 'tblTempUsageDetail_20' ) start [2025-03-28 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779202', 'tblTempUsageDetail_20' ) end [2025-03-28 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779202', 'tblTempVendorCDR_20' ) start [2025-03-28 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779202', 'tblTempVendorCDR_20' ) end [2025-03-28 04:56:19] Production.INFO: ProcessCDR(1,14779202,1,1,2) [2025-03-28 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779202', 'tblTempUsageDetail_20' ) start [2025-03-28 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779202', 'tblTempUsageDetail_20' ) end [2025-03-28 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:56:22] Production.INFO: ==20406== Releasing lock... [2025-03-28 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:56:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-28 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:57:05 [end_date_ymd] => 2025-03-28 04:57:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:57:05' and `end` < '2025-03-28 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-28 04:57:18] Production.INFO: count ==379 [2025-03-28 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:57:05 - End Time 2025-03-28 04:57:05 [2025-03-28 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779207', 'tblTempUsageDetail_20' ) start [2025-03-28 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779207', 'tblTempUsageDetail_20' ) end [2025-03-28 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779207', 'tblTempVendorCDR_20' ) start [2025-03-28 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779207', 'tblTempVendorCDR_20' ) end [2025-03-28 04:57:18] Production.INFO: ProcessCDR(1,14779207,1,1,2) [2025-03-28 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779207', 'tblTempUsageDetail_20' ) start [2025-03-28 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779207', 'tblTempUsageDetail_20' ) end [2025-03-28 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:57:22] Production.INFO: ==20480== Releasing lock... [2025-03-28 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:57:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-28 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:58:05 [end_date_ymd] => 2025-03-28 04:58:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:58:05' and `end` < '2025-03-28 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-28 04:58:19] Production.INFO: count ==376 [2025-03-28 04:58:19] Production.ERROR: pbx CDR StartTime 2025-03-28 01:58:05 - End Time 2025-03-28 04:58:05 [2025-03-28 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779212', 'tblTempUsageDetail_20' ) start [2025-03-28 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779212', 'tblTempUsageDetail_20' ) end [2025-03-28 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779212', 'tblTempVendorCDR_20' ) start [2025-03-28 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779212', 'tblTempVendorCDR_20' ) end [2025-03-28 04:58:19] Production.INFO: ProcessCDR(1,14779212,1,1,2) [2025-03-28 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779212', 'tblTempUsageDetail_20' ) start [2025-03-28 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779212', 'tblTempUsageDetail_20' ) end [2025-03-28 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:58:22] Production.INFO: ==20553== Releasing lock... [2025-03-28 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:58:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-28 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 01:59:05 [end_date_ymd] => 2025-03-28 04:59:05 [RateCDR] => 1 ) [2025-03-28 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-28 01:59:05' and `end` < '2025-03-28 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-28 04:59:18] Production.INFO: count ==376 [2025-03-28 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-28 01:59:05 - End Time 2025-03-28 04:59:05 [2025-03-28 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779217', 'tblTempUsageDetail_20' ) start [2025-03-28 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779217', 'tblTempUsageDetail_20' ) end [2025-03-28 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779217', 'tblTempVendorCDR_20' ) start [2025-03-28 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779217', 'tblTempVendorCDR_20' ) end [2025-03-28 04:59:18] Production.INFO: ProcessCDR(1,14779217,1,1,2) [2025-03-28 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779217', 'tblTempUsageDetail_20' ) start [2025-03-28 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779217', 'tblTempUsageDetail_20' ) end [2025-03-28 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 04:59:22] Production.INFO: ==20624== Releasing lock... [2025-03-28 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 04:59:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-28 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:00:06 [end_date_ymd] => 2025-03-28 05:00:06 [RateCDR] => 1 ) [2025-03-28 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-28 02:00:06' and `end` < '2025-03-28 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-28 05:00:19] Production.INFO: count ==362 [2025-03-28 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-28 02:00:06 - End Time 2025-03-28 05:00:06 [2025-03-28 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779223', 'tblTempUsageDetail_20' ) start [2025-03-28 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779223', 'tblTempUsageDetail_20' ) end [2025-03-28 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779223', 'tblTempVendorCDR_20' ) start [2025-03-28 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779223', 'tblTempVendorCDR_20' ) end [2025-03-28 05:00:19] Production.INFO: ProcessCDR(1,14779223,1,1,2) [2025-03-28 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779223', 'tblTempUsageDetail_20' ) start [2025-03-28 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779223', 'tblTempUsageDetail_20' ) end [2025-03-28 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:00:23] Production.INFO: ==20707== Releasing lock... [2025-03-28 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:00:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:01:05 [end_date_ymd] => 2025-03-28 05:01:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:01:05' and `end` < '2025-03-28 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-28 05:01:18] Production.INFO: count ==348 [2025-03-28 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:01:05 - End Time 2025-03-28 05:01:05 [2025-03-28 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779228', 'tblTempUsageDetail_20' ) start [2025-03-28 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779228', 'tblTempUsageDetail_20' ) end [2025-03-28 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779228', 'tblTempVendorCDR_20' ) start [2025-03-28 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779228', 'tblTempVendorCDR_20' ) end [2025-03-28 05:01:18] Production.INFO: ProcessCDR(1,14779228,1,1,2) [2025-03-28 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779228', 'tblTempUsageDetail_20' ) start [2025-03-28 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779228', 'tblTempUsageDetail_20' ) end [2025-03-28 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:01:22] Production.INFO: ==20793== Releasing lock... [2025-03-28 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:01:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:02:06 [end_date_ymd] => 2025-03-28 05:02:06 [RateCDR] => 1 ) [2025-03-28 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-28 02:02:06' and `end` < '2025-03-28 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-28 05:02:19] Production.INFO: count ==348 [2025-03-28 05:02:19] Production.ERROR: pbx CDR StartTime 2025-03-28 02:02:06 - End Time 2025-03-28 05:02:06 [2025-03-28 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779233', 'tblTempUsageDetail_20' ) start [2025-03-28 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779233', 'tblTempUsageDetail_20' ) end [2025-03-28 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779233', 'tblTempVendorCDR_20' ) start [2025-03-28 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779233', 'tblTempVendorCDR_20' ) end [2025-03-28 05:02:19] Production.INFO: ProcessCDR(1,14779233,1,1,2) [2025-03-28 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779233', 'tblTempUsageDetail_20' ) start [2025-03-28 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779233', 'tblTempUsageDetail_20' ) end [2025-03-28 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:02:23] Production.INFO: ==20867== Releasing lock... [2025-03-28 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:02:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:03:05 [end_date_ymd] => 2025-03-28 05:03:05 [RateCDR] => 1 ) [2025-03-28 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:03:05' and `end` < '2025-03-28 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:03:17] Production.INFO: count ==344 [2025-03-28 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:03:05 - End Time 2025-03-28 05:03:05 [2025-03-28 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779238', 'tblTempUsageDetail_20' ) start [2025-03-28 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779238', 'tblTempUsageDetail_20' ) end [2025-03-28 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779238', 'tblTempVendorCDR_20' ) start [2025-03-28 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779238', 'tblTempVendorCDR_20' ) end [2025-03-28 05:03:18] Production.INFO: ProcessCDR(1,14779238,1,1,2) [2025-03-28 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779238', 'tblTempUsageDetail_20' ) start [2025-03-28 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779238', 'tblTempUsageDetail_20' ) end [2025-03-28 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:03:21] Production.INFO: ==20940== Releasing lock... [2025-03-28 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:03:21] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:04:05 [end_date_ymd] => 2025-03-28 05:04:05 [RateCDR] => 1 ) [2025-03-28 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:04:05' and `end` < '2025-03-28 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:04:18] Production.INFO: count ==344 [2025-03-28 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:04:05 - End Time 2025-03-28 05:04:05 [2025-03-28 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779243', 'tblTempUsageDetail_20' ) start [2025-03-28 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779243', 'tblTempUsageDetail_20' ) end [2025-03-28 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779243', 'tblTempVendorCDR_20' ) start [2025-03-28 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779243', 'tblTempVendorCDR_20' ) end [2025-03-28 05:04:18] Production.INFO: ProcessCDR(1,14779243,1,1,2) [2025-03-28 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779243', 'tblTempUsageDetail_20' ) start [2025-03-28 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779243', 'tblTempUsageDetail_20' ) end [2025-03-28 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:04:22] Production.INFO: ==21013== Releasing lock... [2025-03-28 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:04:22] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:05:05 [end_date_ymd] => 2025-03-28 05:05:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:05:05' and `end` < '2025-03-28 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-28 05:05:17] Production.INFO: count ==340 [2025-03-28 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-28 02:05:05 - End Time 2025-03-28 05:05:05 [2025-03-28 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779248', 'tblTempUsageDetail_20' ) start [2025-03-28 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779248', 'tblTempUsageDetail_20' ) end [2025-03-28 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779248', 'tblTempVendorCDR_20' ) start [2025-03-28 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779248', 'tblTempVendorCDR_20' ) end [2025-03-28 05:05:17] Production.INFO: ProcessCDR(1,14779248,1,1,2) [2025-03-28 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779248', 'tblTempUsageDetail_20' ) start [2025-03-28 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779248', 'tblTempUsageDetail_20' ) end [2025-03-28 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:05:21] Production.INFO: ==21137== Releasing lock... [2025-03-28 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:05:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:06:05 [end_date_ymd] => 2025-03-28 05:06:05 [RateCDR] => 1 ) [2025-03-28 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:06:05' and `end` < '2025-03-28 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:06:19] Production.INFO: count ==340 [2025-03-28 05:06:19] Production.ERROR: pbx CDR StartTime 2025-03-28 02:06:05 - End Time 2025-03-28 05:06:05 [2025-03-28 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779253', 'tblTempUsageDetail_20' ) start [2025-03-28 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779253', 'tblTempUsageDetail_20' ) end [2025-03-28 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779253', 'tblTempVendorCDR_20' ) start [2025-03-28 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779253', 'tblTempVendorCDR_20' ) end [2025-03-28 05:06:19] Production.INFO: ProcessCDR(1,14779253,1,1,2) [2025-03-28 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779253', 'tblTempUsageDetail_20' ) start [2025-03-28 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779253', 'tblTempUsageDetail_20' ) end [2025-03-28 05:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:06:23] Production.INFO: ==21230== Releasing lock... [2025-03-28 05:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:06:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:07:05 [end_date_ymd] => 2025-03-28 05:07:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:07:05' and `end` < '2025-03-28 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-28 05:07:18] Production.INFO: count ==336 [2025-03-28 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:07:05 - End Time 2025-03-28 05:07:05 [2025-03-28 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779258', 'tblTempUsageDetail_20' ) start [2025-03-28 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779258', 'tblTempUsageDetail_20' ) end [2025-03-28 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779258', 'tblTempVendorCDR_20' ) start [2025-03-28 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779258', 'tblTempVendorCDR_20' ) end [2025-03-28 05:07:18] Production.INFO: ProcessCDR(1,14779258,1,1,2) [2025-03-28 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779258', 'tblTempUsageDetail_20' ) start [2025-03-28 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779258', 'tblTempUsageDetail_20' ) end [2025-03-28 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:07:22] Production.INFO: ==21318== Releasing lock... [2025-03-28 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:07:22] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:08:05 [end_date_ymd] => 2025-03-28 05:08:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:08:05' and `end` < '2025-03-28 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-28 05:08:18] Production.INFO: count ==336 [2025-03-28 05:08:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:08:05 - End Time 2025-03-28 05:08:05 [2025-03-28 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779263', 'tblTempUsageDetail_20' ) start [2025-03-28 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779263', 'tblTempUsageDetail_20' ) end [2025-03-28 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779263', 'tblTempVendorCDR_20' ) start [2025-03-28 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779263', 'tblTempVendorCDR_20' ) end [2025-03-28 05:08:18] Production.INFO: ProcessCDR(1,14779263,1,1,2) [2025-03-28 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779263', 'tblTempUsageDetail_20' ) start [2025-03-28 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779263', 'tblTempUsageDetail_20' ) end [2025-03-28 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:08:21] Production.INFO: ==21412== Releasing lock... [2025-03-28 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:08:21] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:09:05 [end_date_ymd] => 2025-03-28 05:09:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:09:05' and `end` < '2025-03-28 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-28 05:09:17] Production.INFO: count ==336 [2025-03-28 05:09:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:09:05 - End Time 2025-03-28 05:09:05 [2025-03-28 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779268', 'tblTempUsageDetail_20' ) start [2025-03-28 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779268', 'tblTempUsageDetail_20' ) end [2025-03-28 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779268', 'tblTempVendorCDR_20' ) start [2025-03-28 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779268', 'tblTempVendorCDR_20' ) end [2025-03-28 05:09:18] Production.INFO: ProcessCDR(1,14779268,1,1,2) [2025-03-28 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779268', 'tblTempUsageDetail_20' ) start [2025-03-28 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779268', 'tblTempUsageDetail_20' ) end [2025-03-28 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:09:21] Production.INFO: ==21506== Releasing lock... [2025-03-28 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:09:21] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:10:06 [end_date_ymd] => 2025-03-28 05:10:06 [RateCDR] => 1 ) [2025-03-28 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:10:06' and `end` < '2025-03-28 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:10:19] Production.INFO: count ==328 [2025-03-28 05:10:19] Production.ERROR: pbx CDR StartTime 2025-03-28 02:10:06 - End Time 2025-03-28 05:10:06 [2025-03-28 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779273', 'tblTempUsageDetail_20' ) start [2025-03-28 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779273', 'tblTempUsageDetail_20' ) end [2025-03-28 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779273', 'tblTempVendorCDR_20' ) start [2025-03-28 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779273', 'tblTempVendorCDR_20' ) end [2025-03-28 05:10:19] Production.INFO: ProcessCDR(1,14779273,1,1,2) [2025-03-28 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779273', 'tblTempUsageDetail_20' ) start [2025-03-28 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779273', 'tblTempUsageDetail_20' ) end [2025-03-28 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:10:23] Production.INFO: ==21600== Releasing lock... [2025-03-28 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:10:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:11:06 [end_date_ymd] => 2025-03-28 05:11:06 [RateCDR] => 1 ) [2025-03-28 05: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-28 02:11:06' and `end` < '2025-03-28 05: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-28 05:11:19] Production.INFO: count ==320 [2025-03-28 05:11:19] Production.ERROR: pbx CDR StartTime 2025-03-28 02:11:06 - End Time 2025-03-28 05:11:06 [2025-03-28 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779279', 'tblTempUsageDetail_20' ) start [2025-03-28 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779279', 'tblTempUsageDetail_20' ) end [2025-03-28 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779279', 'tblTempVendorCDR_20' ) start [2025-03-28 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779279', 'tblTempVendorCDR_20' ) end [2025-03-28 05:11:19] Production.INFO: ProcessCDR(1,14779279,1,1,2) [2025-03-28 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779279', 'tblTempUsageDetail_20' ) start [2025-03-28 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779279', 'tblTempUsageDetail_20' ) end [2025-03-28 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:11:22] Production.INFO: ==21698== Releasing lock... [2025-03-28 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:11:22] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:12:05 [end_date_ymd] => 2025-03-28 05:12:05 [RateCDR] => 1 ) [2025-03-28 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:12:05' and `end` < '2025-03-28 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:12:18] Production.INFO: count ==310 [2025-03-28 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:12:05 - End Time 2025-03-28 05:12:05 [2025-03-28 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779284', 'tblTempUsageDetail_20' ) start [2025-03-28 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779284', 'tblTempUsageDetail_20' ) end [2025-03-28 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779284', 'tblTempVendorCDR_20' ) start [2025-03-28 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779284', 'tblTempVendorCDR_20' ) end [2025-03-28 05:12:18] Production.INFO: ProcessCDR(1,14779284,1,1,2) [2025-03-28 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779284', 'tblTempUsageDetail_20' ) start [2025-03-28 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779284', 'tblTempUsageDetail_20' ) end [2025-03-28 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:12:21] Production.INFO: ==21789== Releasing lock... [2025-03-28 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:12:21] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:13:06 [end_date_ymd] => 2025-03-28 05:13:06 [RateCDR] => 1 ) [2025-03-28 05:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:13:06' and `end` < '2025-03-28 05:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:13:19] Production.INFO: count ==305 [2025-03-28 05:13:19] Production.ERROR: pbx CDR StartTime 2025-03-28 02:13:06 - End Time 2025-03-28 05:13:06 [2025-03-28 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779289', 'tblTempUsageDetail_20' ) start [2025-03-28 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779289', 'tblTempUsageDetail_20' ) end [2025-03-28 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779289', 'tblTempVendorCDR_20' ) start [2025-03-28 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779289', 'tblTempVendorCDR_20' ) end [2025-03-28 05:13:19] Production.INFO: ProcessCDR(1,14779289,1,1,2) [2025-03-28 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779289', 'tblTempUsageDetail_20' ) start [2025-03-28 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779289', 'tblTempUsageDetail_20' ) end [2025-03-28 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:13:22] Production.INFO: ==21880== Releasing lock... [2025-03-28 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:13:22] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:14:06 [end_date_ymd] => 2025-03-28 05:14:06 [RateCDR] => 1 ) [2025-03-28 05:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:14:06' and `end` < '2025-03-28 05:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:14:19] Production.INFO: count ==303 [2025-03-28 05:14:19] Production.ERROR: pbx CDR StartTime 2025-03-28 02:14:06 - End Time 2025-03-28 05:14:06 [2025-03-28 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779294', 'tblTempUsageDetail_20' ) start [2025-03-28 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779294', 'tblTempUsageDetail_20' ) end [2025-03-28 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779294', 'tblTempVendorCDR_20' ) start [2025-03-28 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779294', 'tblTempVendorCDR_20' ) end [2025-03-28 05:14:19] Production.INFO: ProcessCDR(1,14779294,1,1,2) [2025-03-28 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779294', 'tblTempUsageDetail_20' ) start [2025-03-28 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779294', 'tblTempUsageDetail_20' ) end [2025-03-28 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:14:22] Production.INFO: ==21972== Releasing lock... [2025-03-28 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:14:22] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:15:05 [end_date_ymd] => 2025-03-28 05:15:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:15:05' and `end` < '2025-03-28 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-28 05:15:18] Production.INFO: count ==303 [2025-03-28 05:15:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:15:05 - End Time 2025-03-28 05:15:05 [2025-03-28 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779299', 'tblTempUsageDetail_20' ) start [2025-03-28 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779299', 'tblTempUsageDetail_20' ) end [2025-03-28 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779299', 'tblTempVendorCDR_20' ) start [2025-03-28 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779299', 'tblTempVendorCDR_20' ) end [2025-03-28 05:15:18] Production.INFO: ProcessCDR(1,14779299,1,1,2) [2025-03-28 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779299', 'tblTempUsageDetail_20' ) start [2025-03-28 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779299', 'tblTempUsageDetail_20' ) end [2025-03-28 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:15:21] Production.INFO: ==22066== Releasing lock... [2025-03-28 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:15:21] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:16:05 [end_date_ymd] => 2025-03-28 05:16:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:16:05' and `end` < '2025-03-28 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-28 05:16:18] Production.INFO: count ==303 [2025-03-28 05:16:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:16:05 - End Time 2025-03-28 05:16:05 [2025-03-28 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779304', 'tblTempUsageDetail_20' ) start [2025-03-28 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779304', 'tblTempUsageDetail_20' ) end [2025-03-28 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779304', 'tblTempVendorCDR_20' ) start [2025-03-28 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779304', 'tblTempVendorCDR_20' ) end [2025-03-28 05:16:18] Production.INFO: ProcessCDR(1,14779304,1,1,2) [2025-03-28 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779304', 'tblTempUsageDetail_20' ) start [2025-03-28 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779304', 'tblTempUsageDetail_20' ) end [2025-03-28 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:16:21] Production.INFO: ==22191== Releasing lock... [2025-03-28 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:16:21] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:17:06 [end_date_ymd] => 2025-03-28 05:17:06 [RateCDR] => 1 ) [2025-03-28 05: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-28 02:17:06' and `end` < '2025-03-28 05: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-28 05:17:18] Production.INFO: count ==307 [2025-03-28 05:17:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:17:06 - End Time 2025-03-28 05:17:06 [2025-03-28 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779309', 'tblTempUsageDetail_20' ) start [2025-03-28 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779309', 'tblTempUsageDetail_20' ) end [2025-03-28 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779309', 'tblTempVendorCDR_20' ) start [2025-03-28 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779309', 'tblTempVendorCDR_20' ) end [2025-03-28 05:17:18] Production.INFO: ProcessCDR(1,14779309,1,1,2) [2025-03-28 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779309', 'tblTempUsageDetail_20' ) start [2025-03-28 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779309', 'tblTempUsageDetail_20' ) end [2025-03-28 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:17:22] Production.INFO: ==22321== Releasing lock... [2025-03-28 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:17:22] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:18:05 [end_date_ymd] => 2025-03-28 05:18:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:18:05' and `end` < '2025-03-28 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-28 05:18:17] Production.INFO: count ==297 [2025-03-28 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-28 02:18:05 - End Time 2025-03-28 05:18:05 [2025-03-28 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779314', 'tblTempUsageDetail_20' ) start [2025-03-28 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779314', 'tblTempUsageDetail_20' ) end [2025-03-28 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779314', 'tblTempVendorCDR_20' ) start [2025-03-28 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779314', 'tblTempVendorCDR_20' ) end [2025-03-28 05:18:17] Production.INFO: ProcessCDR(1,14779314,1,1,2) [2025-03-28 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779314', 'tblTempUsageDetail_20' ) start [2025-03-28 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779314', 'tblTempUsageDetail_20' ) end [2025-03-28 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:18:21] Production.INFO: ==22468== Releasing lock... [2025-03-28 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:18:21] Production.INFO: 31 MB #Memory Used# [2025-03-28 05:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:19:06 [end_date_ymd] => 2025-03-28 05:19:06 [RateCDR] => 1 ) [2025-03-28 05: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-28 02:19:06' and `end` < '2025-03-28 05: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-28 05:19:18] Production.INFO: count ==281 [2025-03-28 05:19:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:19:06 - End Time 2025-03-28 05:19:06 [2025-03-28 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779319', 'tblTempUsageDetail_20' ) start [2025-03-28 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779319', 'tblTempUsageDetail_20' ) end [2025-03-28 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779319', 'tblTempVendorCDR_20' ) start [2025-03-28 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779319', 'tblTempVendorCDR_20' ) end [2025-03-28 05:19:18] Production.INFO: ProcessCDR(1,14779319,1,1,2) [2025-03-28 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779319', 'tblTempUsageDetail_20' ) start [2025-03-28 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779319', 'tblTempUsageDetail_20' ) end [2025-03-28 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:19:22] Production.INFO: ==22612== Releasing lock... [2025-03-28 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:19:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-28 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:20:06 [end_date_ymd] => 2025-03-28 05:20:06 [RateCDR] => 1 ) [2025-03-28 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:20:06' and `end` < '2025-03-28 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:20:19] Production.INFO: count ==278 [2025-03-28 05:20:19] Production.ERROR: pbx CDR StartTime 2025-03-28 02:20:06 - End Time 2025-03-28 05:20:06 [2025-03-28 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779325', 'tblTempUsageDetail_20' ) start [2025-03-28 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779325', 'tblTempUsageDetail_20' ) end [2025-03-28 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779325', 'tblTempVendorCDR_20' ) start [2025-03-28 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779325', 'tblTempVendorCDR_20' ) end [2025-03-28 05:20:19] Production.INFO: ProcessCDR(1,14779325,1,1,2) [2025-03-28 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779325', 'tblTempUsageDetail_20' ) start [2025-03-28 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779325', 'tblTempUsageDetail_20' ) end [2025-03-28 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:20:22] Production.INFO: ==22787== Releasing lock... [2025-03-28 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-28 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:21:06 [end_date_ymd] => 2025-03-28 05:21:06 [RateCDR] => 1 ) [2025-03-28 05: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-28 02:21:06' and `end` < '2025-03-28 05: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-28 05:21:18] Production.INFO: count ==272 [2025-03-28 05:21:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:21:06 - End Time 2025-03-28 05:21:06 [2025-03-28 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779330', 'tblTempUsageDetail_20' ) start [2025-03-28 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779330', 'tblTempUsageDetail_20' ) end [2025-03-28 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779330', 'tblTempVendorCDR_20' ) start [2025-03-28 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779330', 'tblTempVendorCDR_20' ) end [2025-03-28 05:21:18] Production.INFO: ProcessCDR(1,14779330,1,1,2) [2025-03-28 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779330', 'tblTempUsageDetail_20' ) start [2025-03-28 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779330', 'tblTempUsageDetail_20' ) end [2025-03-28 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:21:21] Production.INFO: ==22921== Releasing lock... [2025-03-28 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-28 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:22:06 [end_date_ymd] => 2025-03-28 05:22:06 [RateCDR] => 1 ) [2025-03-28 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:22:06' and `end` < '2025-03-28 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:22:18] Production.INFO: count ==272 [2025-03-28 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:22:06 - End Time 2025-03-28 05:22:06 [2025-03-28 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779335', 'tblTempUsageDetail_20' ) start [2025-03-28 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779335', 'tblTempUsageDetail_20' ) end [2025-03-28 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779335', 'tblTempVendorCDR_20' ) start [2025-03-28 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779335', 'tblTempVendorCDR_20' ) end [2025-03-28 05:22:18] Production.INFO: ProcessCDR(1,14779335,1,1,2) [2025-03-28 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779335', 'tblTempUsageDetail_20' ) start [2025-03-28 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779335', 'tblTempUsageDetail_20' ) end [2025-03-28 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:22:22] Production.INFO: ==23060== Releasing lock... [2025-03-28 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:22:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-28 05:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:23:06 [end_date_ymd] => 2025-03-28 05:23:06 [RateCDR] => 1 ) [2025-03-28 05: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-28 02:23:06' and `end` < '2025-03-28 05: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-28 05:23:18] Production.INFO: count ==271 [2025-03-28 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:23:06 - End Time 2025-03-28 05:23:06 [2025-03-28 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779340', 'tblTempUsageDetail_20' ) start [2025-03-28 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779340', 'tblTempUsageDetail_20' ) end [2025-03-28 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779340', 'tblTempVendorCDR_20' ) start [2025-03-28 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779340', 'tblTempVendorCDR_20' ) end [2025-03-28 05:23:18] Production.INFO: ProcessCDR(1,14779340,1,1,2) [2025-03-28 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779340', 'tblTempUsageDetail_20' ) start [2025-03-28 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779340', 'tblTempUsageDetail_20' ) end [2025-03-28 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:23:22] Production.INFO: ==23190== Releasing lock... [2025-03-28 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-28 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:24:05 [end_date_ymd] => 2025-03-28 05:24:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:24:05' and `end` < '2025-03-28 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-28 05:24:18] Production.INFO: count ==270 [2025-03-28 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:24:05 - End Time 2025-03-28 05:24:05 [2025-03-28 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779345', 'tblTempUsageDetail_20' ) start [2025-03-28 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779345', 'tblTempUsageDetail_20' ) end [2025-03-28 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779345', 'tblTempVendorCDR_20' ) start [2025-03-28 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779345', 'tblTempVendorCDR_20' ) end [2025-03-28 05:24:18] Production.INFO: ProcessCDR(1,14779345,1,1,2) [2025-03-28 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779345', 'tblTempUsageDetail_20' ) start [2025-03-28 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779345', 'tblTempUsageDetail_20' ) end [2025-03-28 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:24:22] Production.INFO: ==23323== Releasing lock... [2025-03-28 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:24:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-28 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:25:05 [end_date_ymd] => 2025-03-28 05:25:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:25:05' and `end` < '2025-03-28 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-28 05:25:18] Production.INFO: count ==274 [2025-03-28 05:25:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:25:05 - End Time 2025-03-28 05:25:05 [2025-03-28 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779350', 'tblTempUsageDetail_20' ) start [2025-03-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779350', 'tblTempUsageDetail_20' ) end [2025-03-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779350', 'tblTempVendorCDR_20' ) start [2025-03-28 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779350', 'tblTempVendorCDR_20' ) end [2025-03-28 05:25:18] Production.INFO: ProcessCDR(1,14779350,1,1,2) [2025-03-28 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779350', 'tblTempUsageDetail_20' ) start [2025-03-28 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779350', 'tblTempUsageDetail_20' ) end [2025-03-28 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:25:21] Production.INFO: ==23455== Releasing lock... [2025-03-28 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-28 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:26:05 [end_date_ymd] => 2025-03-28 05:26:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:26:05' and `end` < '2025-03-28 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-28 05:26:18] Production.INFO: count ==274 [2025-03-28 05:26:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:26:05 - End Time 2025-03-28 05:26:05 [2025-03-28 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779355', 'tblTempUsageDetail_20' ) start [2025-03-28 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779355', 'tblTempUsageDetail_20' ) end [2025-03-28 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779355', 'tblTempVendorCDR_20' ) start [2025-03-28 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779355', 'tblTempVendorCDR_20' ) end [2025-03-28 05:26:18] Production.INFO: ProcessCDR(1,14779355,1,1,2) [2025-03-28 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779355', 'tblTempUsageDetail_20' ) start [2025-03-28 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779355', 'tblTempUsageDetail_20' ) end [2025-03-28 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:26:21] Production.INFO: ==23587== Releasing lock... [2025-03-28 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-28 05:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:27:06 [end_date_ymd] => 2025-03-28 05:27:06 [RateCDR] => 1 ) [2025-03-28 05:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:27:06' and `end` < '2025-03-28 05:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:27:18] Production.INFO: count ==270 [2025-03-28 05:27:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:27:06 - End Time 2025-03-28 05:27:06 [2025-03-28 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779360', 'tblTempUsageDetail_20' ) start [2025-03-28 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779360', 'tblTempUsageDetail_20' ) end [2025-03-28 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779360', 'tblTempVendorCDR_20' ) start [2025-03-28 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779360', 'tblTempVendorCDR_20' ) end [2025-03-28 05:27:18] Production.INFO: ProcessCDR(1,14779360,1,1,2) [2025-03-28 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779360', 'tblTempUsageDetail_20' ) start [2025-03-28 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779360', 'tblTempUsageDetail_20' ) end [2025-03-28 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:27:22] Production.INFO: ==23723== Releasing lock... [2025-03-28 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:27:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-28 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:28:04 [end_date_ymd] => 2025-03-28 05:28:04 [RateCDR] => 1 ) [2025-03-28 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-28 02:28:04' and `end` < '2025-03-28 05:28: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-28 05:28:17] Production.INFO: count ==262 [2025-03-28 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-28 02:28:04 - End Time 2025-03-28 05:28:04 [2025-03-28 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779365', 'tblTempUsageDetail_20' ) start [2025-03-28 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779365', 'tblTempUsageDetail_20' ) end [2025-03-28 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779365', 'tblTempVendorCDR_20' ) start [2025-03-28 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779365', 'tblTempVendorCDR_20' ) end [2025-03-28 05:28:17] Production.INFO: ProcessCDR(1,14779365,1,1,2) [2025-03-28 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779365', 'tblTempUsageDetail_20' ) start [2025-03-28 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779365', 'tblTempUsageDetail_20' ) end [2025-03-28 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:28:20] Production.INFO: ==23855== Releasing lock... [2025-03-28 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:28:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-28 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:29:05 [end_date_ymd] => 2025-03-28 05:29:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:29:05' and `end` < '2025-03-28 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-28 05:29:18] Production.INFO: count ==249 [2025-03-28 05:29:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:29:05 - End Time 2025-03-28 05:29:05 [2025-03-28 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779370', 'tblTempUsageDetail_20' ) start [2025-03-28 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779370', 'tblTempUsageDetail_20' ) end [2025-03-28 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779370', 'tblTempVendorCDR_20' ) start [2025-03-28 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779370', 'tblTempVendorCDR_20' ) end [2025-03-28 05:29:18] Production.INFO: ProcessCDR(1,14779370,1,1,2) [2025-03-28 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779370', 'tblTempUsageDetail_20' ) start [2025-03-28 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779370', 'tblTempUsageDetail_20' ) end [2025-03-28 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:29:21] Production.INFO: ==23983== Releasing lock... [2025-03-28 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-28 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:30:06 [end_date_ymd] => 2025-03-28 05:30:06 [RateCDR] => 1 ) [2025-03-28 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-28 02:30:06' and `end` < '2025-03-28 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-28 05:30:18] Production.INFO: count ==237 [2025-03-28 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:30:06 - End Time 2025-03-28 05:30:06 [2025-03-28 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779376', 'tblTempUsageDetail_20' ) start [2025-03-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779376', 'tblTempUsageDetail_20' ) end [2025-03-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779376', 'tblTempVendorCDR_20' ) start [2025-03-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779376', 'tblTempVendorCDR_20' ) end [2025-03-28 05:30:18] Production.INFO: ProcessCDR(1,14779376,1,1,2) [2025-03-28 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779376', 'tblTempUsageDetail_20' ) start [2025-03-28 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779376', 'tblTempUsageDetail_20' ) end [2025-03-28 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:30:22] Production.INFO: ==24087== Releasing lock... [2025-03-28 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:30:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-28 05:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:31:06 [end_date_ymd] => 2025-03-28 05:31:06 [RateCDR] => 1 ) [2025-03-28 05: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-28 02:31:06' and `end` < '2025-03-28 05: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-28 05:31:18] Production.INFO: count ==217 [2025-03-28 05:31:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:31:06 - End Time 2025-03-28 05:31:06 [2025-03-28 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779381', 'tblTempUsageDetail_20' ) start [2025-03-28 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779381', 'tblTempUsageDetail_20' ) end [2025-03-28 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779381', 'tblTempVendorCDR_20' ) start [2025-03-28 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779381', 'tblTempVendorCDR_20' ) end [2025-03-28 05:31:18] Production.INFO: ProcessCDR(1,14779381,1,1,2) [2025-03-28 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779381', 'tblTempUsageDetail_20' ) start [2025-03-28 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779381', 'tblTempUsageDetail_20' ) end [2025-03-28 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:31:22] Production.INFO: ==24164== Releasing lock... [2025-03-28 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:31:22] Production.INFO: 30 MB #Memory Used# [2025-03-28 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:32:04 [end_date_ymd] => 2025-03-28 05:32:04 [RateCDR] => 1 ) [2025-03-28 05:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:32:04' and `end` < '2025-03-28 05:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:32:17] Production.INFO: count ==209 [2025-03-28 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-28 02:32:04 - End Time 2025-03-28 05:32:04 [2025-03-28 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779386', 'tblTempUsageDetail_20' ) start [2025-03-28 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779386', 'tblTempUsageDetail_20' ) end [2025-03-28 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779386', 'tblTempVendorCDR_20' ) start [2025-03-28 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779386', 'tblTempVendorCDR_20' ) end [2025-03-28 05:32:17] Production.INFO: ProcessCDR(1,14779386,1,1,2) [2025-03-28 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779386', 'tblTempUsageDetail_20' ) start [2025-03-28 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779386', 'tblTempUsageDetail_20' ) end [2025-03-28 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:32:20] Production.INFO: ==24238== Releasing lock... [2025-03-28 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:32:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-28 05:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:33:06 [end_date_ymd] => 2025-03-28 05:33:06 [RateCDR] => 1 ) [2025-03-28 05:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:33:06' and `end` < '2025-03-28 05:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:33:18] Production.INFO: count ==209 [2025-03-28 05:33:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:33:06 - End Time 2025-03-28 05:33:06 [2025-03-28 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779391', 'tblTempUsageDetail_20' ) start [2025-03-28 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779391', 'tblTempUsageDetail_20' ) end [2025-03-28 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779391', 'tblTempVendorCDR_20' ) start [2025-03-28 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779391', 'tblTempVendorCDR_20' ) end [2025-03-28 05:33:18] Production.INFO: ProcessCDR(1,14779391,1,1,2) [2025-03-28 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779391', 'tblTempUsageDetail_20' ) start [2025-03-28 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779391', 'tblTempUsageDetail_20' ) end [2025-03-28 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:33:21] Production.INFO: ==24308== Releasing lock... [2025-03-28 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-28 05:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:34:04 [end_date_ymd] => 2025-03-28 05:34:04 [RateCDR] => 1 ) [2025-03-28 05:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:34:04' and `end` < '2025-03-28 05:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:34:17] Production.INFO: count ==209 [2025-03-28 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-28 02:34:04 - End Time 2025-03-28 05:34:04 [2025-03-28 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779396', 'tblTempUsageDetail_20' ) start [2025-03-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779396', 'tblTempUsageDetail_20' ) end [2025-03-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779396', 'tblTempVendorCDR_20' ) start [2025-03-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779396', 'tblTempVendorCDR_20' ) end [2025-03-28 05:34:17] Production.INFO: ProcessCDR(1,14779396,1,1,2) [2025-03-28 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779396', 'tblTempUsageDetail_20' ) start [2025-03-28 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779396', 'tblTempUsageDetail_20' ) end [2025-03-28 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:34:20] Production.INFO: ==24383== Releasing lock... [2025-03-28 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:34:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-28 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:35:05 [end_date_ymd] => 2025-03-28 05:35:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:35:05' and `end` < '2025-03-28 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-28 05:35:18] Production.INFO: count ==209 [2025-03-28 05:35:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:35:05 - End Time 2025-03-28 05:35:05 [2025-03-28 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779401', 'tblTempUsageDetail_20' ) start [2025-03-28 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779401', 'tblTempUsageDetail_20' ) end [2025-03-28 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779401', 'tblTempVendorCDR_20' ) start [2025-03-28 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779401', 'tblTempVendorCDR_20' ) end [2025-03-28 05:35:18] Production.INFO: ProcessCDR(1,14779401,1,1,2) [2025-03-28 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779401', 'tblTempUsageDetail_20' ) start [2025-03-28 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779401', 'tblTempUsageDetail_20' ) end [2025-03-28 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:35:21] Production.INFO: ==24456== Releasing lock... [2025-03-28 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-28 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:36:06 [end_date_ymd] => 2025-03-28 05:36:06 [RateCDR] => 1 ) [2025-03-28 05: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-28 02:36:06' and `end` < '2025-03-28 05: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-28 05:36:19] Production.INFO: count ==209 [2025-03-28 05:36:19] Production.ERROR: pbx CDR StartTime 2025-03-28 02:36:06 - End Time 2025-03-28 05:36:06 [2025-03-28 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779406', 'tblTempUsageDetail_20' ) start [2025-03-28 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779406', 'tblTempUsageDetail_20' ) end [2025-03-28 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779406', 'tblTempVendorCDR_20' ) start [2025-03-28 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779406', 'tblTempVendorCDR_20' ) end [2025-03-28 05:36:19] Production.INFO: ProcessCDR(1,14779406,1,1,2) [2025-03-28 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779406', 'tblTempUsageDetail_20' ) start [2025-03-28 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779406', 'tblTempUsageDetail_20' ) end [2025-03-28 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:36:22] Production.INFO: ==24566== Releasing lock... [2025-03-28 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-28 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:37:05 [end_date_ymd] => 2025-03-28 05:37:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:37:05' and `end` < '2025-03-28 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-28 05:37:18] Production.INFO: count ==209 [2025-03-28 05:37:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:37:05 - End Time 2025-03-28 05:37:05 [2025-03-28 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779411', 'tblTempUsageDetail_20' ) start [2025-03-28 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779411', 'tblTempUsageDetail_20' ) end [2025-03-28 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779411', 'tblTempVendorCDR_20' ) start [2025-03-28 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779411', 'tblTempVendorCDR_20' ) end [2025-03-28 05:37:18] Production.INFO: ProcessCDR(1,14779411,1,1,2) [2025-03-28 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779411', 'tblTempUsageDetail_20' ) start [2025-03-28 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779411', 'tblTempUsageDetail_20' ) end [2025-03-28 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:37:22] Production.INFO: ==24640== Releasing lock... [2025-03-28 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:37:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-28 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:38:06 [end_date_ymd] => 2025-03-28 05:38:06 [RateCDR] => 1 ) [2025-03-28 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-28 02:38:06' and `end` < '2025-03-28 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-28 05:38:18] Production.INFO: count ==209 [2025-03-28 05:38:19] Production.ERROR: pbx CDR StartTime 2025-03-28 02:38:06 - End Time 2025-03-28 05:38:06 [2025-03-28 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779416', 'tblTempUsageDetail_20' ) start [2025-03-28 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779416', 'tblTempUsageDetail_20' ) end [2025-03-28 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779416', 'tblTempVendorCDR_20' ) start [2025-03-28 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779416', 'tblTempVendorCDR_20' ) end [2025-03-28 05:38:19] Production.INFO: ProcessCDR(1,14779416,1,1,2) [2025-03-28 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779416', 'tblTempUsageDetail_20' ) start [2025-03-28 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779416', 'tblTempUsageDetail_20' ) end [2025-03-28 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:38:22] Production.INFO: ==24723== Releasing lock... [2025-03-28 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:38:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-28 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:39:05 [end_date_ymd] => 2025-03-28 05:39:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:39:05' and `end` < '2025-03-28 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-28 05:39:17] Production.INFO: count ==205 [2025-03-28 05:39:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:39:05 - End Time 2025-03-28 05:39:05 [2025-03-28 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779421', 'tblTempUsageDetail_20' ) start [2025-03-28 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779421', 'tblTempUsageDetail_20' ) end [2025-03-28 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779421', 'tblTempVendorCDR_20' ) start [2025-03-28 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779421', 'tblTempVendorCDR_20' ) end [2025-03-28 05:39:18] Production.INFO: ProcessCDR(1,14779421,1,1,2) [2025-03-28 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779421', 'tblTempUsageDetail_20' ) start [2025-03-28 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779421', 'tblTempUsageDetail_20' ) end [2025-03-28 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:39:21] Production.INFO: ==24794== Releasing lock... [2025-03-28 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-28 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:40:06 [end_date_ymd] => 2025-03-28 05:40:06 [RateCDR] => 1 ) [2025-03-28 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-28 02:40:06' and `end` < '2025-03-28 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-28 05:40:19] Production.INFO: count ==195 [2025-03-28 05:40:19] Production.ERROR: pbx CDR StartTime 2025-03-28 02:40:06 - End Time 2025-03-28 05:40:06 [2025-03-28 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779426', 'tblTempUsageDetail_20' ) start [2025-03-28 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779426', 'tblTempUsageDetail_20' ) end [2025-03-28 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779426', 'tblTempVendorCDR_20' ) start [2025-03-28 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779426', 'tblTempVendorCDR_20' ) end [2025-03-28 05:40:19] Production.INFO: ProcessCDR(1,14779426,1,1,2) [2025-03-28 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779426', 'tblTempUsageDetail_20' ) start [2025-03-28 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779426', 'tblTempUsageDetail_20' ) end [2025-03-28 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:40:22] Production.INFO: ==24870== Releasing lock... [2025-03-28 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:40:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:41:05 [end_date_ymd] => 2025-03-28 05:41:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:41:05' and `end` < '2025-03-28 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-28 05:41:17] Production.INFO: count ==195 [2025-03-28 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-28 02:41:05 - End Time 2025-03-28 05:41:05 [2025-03-28 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779432', 'tblTempUsageDetail_20' ) start [2025-03-28 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779432', 'tblTempUsageDetail_20' ) end [2025-03-28 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779432', 'tblTempVendorCDR_20' ) start [2025-03-28 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779432', 'tblTempVendorCDR_20' ) end [2025-03-28 05:41:17] Production.INFO: ProcessCDR(1,14779432,1,1,2) [2025-03-28 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779432', 'tblTempUsageDetail_20' ) start [2025-03-28 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779432', 'tblTempUsageDetail_20' ) end [2025-03-28 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:41:21] Production.INFO: ==24944== Releasing lock... [2025-03-28 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:42:06 [end_date_ymd] => 2025-03-28 05:42:06 [RateCDR] => 1 ) [2025-03-28 05:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:42:06' and `end` < '2025-03-28 05:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:42:18] Production.INFO: count ==195 [2025-03-28 05:42:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:42:06 - End Time 2025-03-28 05:42:06 [2025-03-28 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779437', 'tblTempUsageDetail_20' ) start [2025-03-28 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779437', 'tblTempUsageDetail_20' ) end [2025-03-28 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779437', 'tblTempVendorCDR_20' ) start [2025-03-28 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779437', 'tblTempVendorCDR_20' ) end [2025-03-28 05:42:18] Production.INFO: ProcessCDR(1,14779437,1,1,2) [2025-03-28 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779437', 'tblTempUsageDetail_20' ) start [2025-03-28 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779437', 'tblTempUsageDetail_20' ) end [2025-03-28 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:42:22] Production.INFO: ==25013== Releasing lock... [2025-03-28 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:43:05 [end_date_ymd] => 2025-03-28 05:43:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:43:05' and `end` < '2025-03-28 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-28 05:43:17] Production.INFO: count ==195 [2025-03-28 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-28 02:43:05 - End Time 2025-03-28 05:43:05 [2025-03-28 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779442', 'tblTempUsageDetail_20' ) start [2025-03-28 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779442', 'tblTempUsageDetail_20' ) end [2025-03-28 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779442', 'tblTempVendorCDR_20' ) start [2025-03-28 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779442', 'tblTempVendorCDR_20' ) end [2025-03-28 05:43:17] Production.INFO: ProcessCDR(1,14779442,1,1,2) [2025-03-28 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779442', 'tblTempUsageDetail_20' ) start [2025-03-28 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779442', 'tblTempUsageDetail_20' ) end [2025-03-28 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:43:21] Production.INFO: ==25087== Releasing lock... [2025-03-28 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:44:06 [end_date_ymd] => 2025-03-28 05:44:06 [RateCDR] => 1 ) [2025-03-28 05:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:44:06' and `end` < '2025-03-28 05:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:44:18] Production.INFO: count ==191 [2025-03-28 05:44:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:44:06 - End Time 2025-03-28 05:44:06 [2025-03-28 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779447', 'tblTempUsageDetail_20' ) start [2025-03-28 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779447', 'tblTempUsageDetail_20' ) end [2025-03-28 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779447', 'tblTempVendorCDR_20' ) start [2025-03-28 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779447', 'tblTempVendorCDR_20' ) end [2025-03-28 05:44:18] Production.INFO: ProcessCDR(1,14779447,1,1,2) [2025-03-28 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779447', 'tblTempUsageDetail_20' ) start [2025-03-28 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779447', 'tblTempUsageDetail_20' ) end [2025-03-28 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:44:22] Production.INFO: ==25159== Releasing lock... [2025-03-28 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:44:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:45:05 [end_date_ymd] => 2025-03-28 05:45:05 [RateCDR] => 1 ) [2025-03-28 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:45:05' and `end` < '2025-03-28 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-28 05:45:18] Production.INFO: count ==191 [2025-03-28 05:45:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:45:05 - End Time 2025-03-28 05:45:05 [2025-03-28 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779452', 'tblTempUsageDetail_20' ) start [2025-03-28 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779452', 'tblTempUsageDetail_20' ) end [2025-03-28 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779452', 'tblTempVendorCDR_20' ) start [2025-03-28 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779452', 'tblTempVendorCDR_20' ) end [2025-03-28 05:45:18] Production.INFO: ProcessCDR(1,14779452,1,1,2) [2025-03-28 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779452', 'tblTempUsageDetail_20' ) start [2025-03-28 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779452', 'tblTempUsageDetail_20' ) end [2025-03-28 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:45:21] Production.INFO: ==25232== Releasing lock... [2025-03-28 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:46:05 [end_date_ymd] => 2025-03-28 05:46:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:46:05' and `end` < '2025-03-28 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-28 05:46:18] Production.INFO: count ==191 [2025-03-28 05:46:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:46:05 - End Time 2025-03-28 05:46:05 [2025-03-28 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779457', 'tblTempUsageDetail_20' ) start [2025-03-28 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779457', 'tblTempUsageDetail_20' ) end [2025-03-28 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779457', 'tblTempVendorCDR_20' ) start [2025-03-28 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779457', 'tblTempVendorCDR_20' ) end [2025-03-28 05:46:18] Production.INFO: ProcessCDR(1,14779457,1,1,2) [2025-03-28 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779457', 'tblTempUsageDetail_20' ) start [2025-03-28 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779457', 'tblTempUsageDetail_20' ) end [2025-03-28 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:46:21] Production.INFO: ==25306== Releasing lock... [2025-03-28 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:46:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:47:05 [end_date_ymd] => 2025-03-28 05:47:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:47:05' and `end` < '2025-03-28 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-28 05:47:17] Production.INFO: count ==191 [2025-03-28 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:47:05 - End Time 2025-03-28 05:47:05 [2025-03-28 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779462', 'tblTempUsageDetail_20' ) start [2025-03-28 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779462', 'tblTempUsageDetail_20' ) end [2025-03-28 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779462', 'tblTempVendorCDR_20' ) start [2025-03-28 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779462', 'tblTempVendorCDR_20' ) end [2025-03-28 05:47:18] Production.INFO: ProcessCDR(1,14779462,1,1,2) [2025-03-28 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779462', 'tblTempUsageDetail_20' ) start [2025-03-28 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779462', 'tblTempUsageDetail_20' ) end [2025-03-28 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:47:21] Production.INFO: ==25379== Releasing lock... [2025-03-28 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:48:05 [end_date_ymd] => 2025-03-28 05:48:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:48:05' and `end` < '2025-03-28 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-28 05:48:18] Production.INFO: count ==191 [2025-03-28 05:48:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:48:05 - End Time 2025-03-28 05:48:05 [2025-03-28 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779467', 'tblTempUsageDetail_20' ) start [2025-03-28 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779467', 'tblTempUsageDetail_20' ) end [2025-03-28 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779467', 'tblTempVendorCDR_20' ) start [2025-03-28 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779467', 'tblTempVendorCDR_20' ) end [2025-03-28 05:48:18] Production.INFO: ProcessCDR(1,14779467,1,1,2) [2025-03-28 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779467', 'tblTempUsageDetail_20' ) start [2025-03-28 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779467', 'tblTempUsageDetail_20' ) end [2025-03-28 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:48:21] Production.INFO: ==25450== Releasing lock... [2025-03-28 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:48:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:49:04 [end_date_ymd] => 2025-03-28 05:49:04 [RateCDR] => 1 ) [2025-03-28 05:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:49:04' and `end` < '2025-03-28 05:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:49:17] Production.INFO: count ==191 [2025-03-28 05:49:17] Production.ERROR: pbx CDR StartTime 2025-03-28 02:49:04 - End Time 2025-03-28 05:49:04 [2025-03-28 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779472', 'tblTempUsageDetail_20' ) start [2025-03-28 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779472', 'tblTempUsageDetail_20' ) end [2025-03-28 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779472', 'tblTempVendorCDR_20' ) start [2025-03-28 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779472', 'tblTempVendorCDR_20' ) end [2025-03-28 05:49:17] Production.INFO: ProcessCDR(1,14779472,1,1,2) [2025-03-28 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779472', 'tblTempUsageDetail_20' ) start [2025-03-28 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779472', 'tblTempUsageDetail_20' ) end [2025-03-28 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:49:20] Production.INFO: ==25522== Releasing lock... [2025-03-28 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:49:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:50:06 [end_date_ymd] => 2025-03-28 05:50:06 [RateCDR] => 1 ) [2025-03-28 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-28 02:50:06' and `end` < '2025-03-28 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-28 05:50:18] Production.INFO: count ==191 [2025-03-28 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:50:06 - End Time 2025-03-28 05:50:06 [2025-03-28 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779478', 'tblTempUsageDetail_20' ) start [2025-03-28 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779478', 'tblTempUsageDetail_20' ) end [2025-03-28 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779478', 'tblTempVendorCDR_20' ) start [2025-03-28 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779478', 'tblTempVendorCDR_20' ) end [2025-03-28 05:50:18] Production.INFO: ProcessCDR(1,14779478,1,1,2) [2025-03-28 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779478', 'tblTempUsageDetail_20' ) start [2025-03-28 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779478', 'tblTempUsageDetail_20' ) end [2025-03-28 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:50:22] Production.INFO: ==25598== Releasing lock... [2025-03-28 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:50:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:51:05 [end_date_ymd] => 2025-03-28 05:51:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:51:05' and `end` < '2025-03-28 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-28 05:51:17] Production.INFO: count ==191 [2025-03-28 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-28 02:51:05 - End Time 2025-03-28 05:51:05 [2025-03-28 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779483', 'tblTempUsageDetail_20' ) start [2025-03-28 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779483', 'tblTempUsageDetail_20' ) end [2025-03-28 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779483', 'tblTempVendorCDR_20' ) start [2025-03-28 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779483', 'tblTempVendorCDR_20' ) end [2025-03-28 05:51:17] Production.INFO: ProcessCDR(1,14779483,1,1,2) [2025-03-28 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779483', 'tblTempUsageDetail_20' ) start [2025-03-28 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779483', 'tblTempUsageDetail_20' ) end [2025-03-28 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:51:21] Production.INFO: ==25713== Releasing lock... [2025-03-28 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:51:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:52:05 [end_date_ymd] => 2025-03-28 05:52:05 [RateCDR] => 1 ) [2025-03-28 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:52:05' and `end` < '2025-03-28 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:52:18] Production.INFO: count ==183 [2025-03-28 05:52:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:52:05 - End Time 2025-03-28 05:52:05 [2025-03-28 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779488', 'tblTempUsageDetail_20' ) start [2025-03-28 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779488', 'tblTempUsageDetail_20' ) end [2025-03-28 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779488', 'tblTempVendorCDR_20' ) start [2025-03-28 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779488', 'tblTempVendorCDR_20' ) end [2025-03-28 05:52:18] Production.INFO: ProcessCDR(1,14779488,1,1,2) [2025-03-28 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779488', 'tblTempUsageDetail_20' ) start [2025-03-28 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779488', 'tblTempUsageDetail_20' ) end [2025-03-28 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:52:21] Production.INFO: ==25783== Releasing lock... [2025-03-28 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:53:04 [end_date_ymd] => 2025-03-28 05:53:04 [RateCDR] => 1 ) [2025-03-28 05:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:53:04' and `end` < '2025-03-28 05:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:53:17] Production.INFO: count ==173 [2025-03-28 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-28 02:53:04 - End Time 2025-03-28 05:53:04 [2025-03-28 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779493', 'tblTempUsageDetail_20' ) start [2025-03-28 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779493', 'tblTempUsageDetail_20' ) end [2025-03-28 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779493', 'tblTempVendorCDR_20' ) start [2025-03-28 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779493', 'tblTempVendorCDR_20' ) end [2025-03-28 05:53:17] Production.INFO: ProcessCDR(1,14779493,1,1,2) [2025-03-28 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779493', 'tblTempUsageDetail_20' ) start [2025-03-28 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779493', 'tblTempUsageDetail_20' ) end [2025-03-28 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:53:20] Production.INFO: ==25858== Releasing lock... [2025-03-28 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:53:20] Production.INFO: 30 MB #Memory Used# [2025-03-28 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:54:05 [end_date_ymd] => 2025-03-28 05:54:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:54:05' and `end` < '2025-03-28 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-28 05:54:18] Production.INFO: count ==169 [2025-03-28 05:54:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:54:05 - End Time 2025-03-28 05:54:05 [2025-03-28 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779498', 'tblTempUsageDetail_20' ) start [2025-03-28 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779498', 'tblTempUsageDetail_20' ) end [2025-03-28 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779498', 'tblTempVendorCDR_20' ) start [2025-03-28 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779498', 'tblTempVendorCDR_20' ) end [2025-03-28 05:54:18] Production.INFO: ProcessCDR(1,14779498,1,1,2) [2025-03-28 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779498', 'tblTempUsageDetail_20' ) start [2025-03-28 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779498', 'tblTempUsageDetail_20' ) end [2025-03-28 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:54:21] Production.INFO: ==25931== Releasing lock... [2025-03-28 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:55:06 [end_date_ymd] => 2025-03-28 05:55:06 [RateCDR] => 1 ) [2025-03-28 05: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-28 02:55:06' and `end` < '2025-03-28 05: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-28 05:55:18] Production.INFO: count ==161 [2025-03-28 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:55:06 - End Time 2025-03-28 05:55:06 [2025-03-28 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779503', 'tblTempUsageDetail_20' ) start [2025-03-28 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779503', 'tblTempUsageDetail_20' ) end [2025-03-28 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779503', 'tblTempVendorCDR_20' ) start [2025-03-28 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779503', 'tblTempVendorCDR_20' ) end [2025-03-28 05:55:18] Production.INFO: ProcessCDR(1,14779503,1,1,2) [2025-03-28 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779503', 'tblTempUsageDetail_20' ) start [2025-03-28 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779503', 'tblTempUsageDetail_20' ) end [2025-03-28 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:55:22] Production.INFO: ==26003== Releasing lock... [2025-03-28 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:55:22] Production.INFO: 30 MB #Memory Used# [2025-03-28 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:56:05 [end_date_ymd] => 2025-03-28 05:56:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:56:05' and `end` < '2025-03-28 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-28 05:56:18] Production.INFO: count ==158 [2025-03-28 05:56:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:56:05 - End Time 2025-03-28 05:56:05 [2025-03-28 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779508', 'tblTempUsageDetail_20' ) start [2025-03-28 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779508', 'tblTempUsageDetail_20' ) end [2025-03-28 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779508', 'tblTempVendorCDR_20' ) start [2025-03-28 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779508', 'tblTempVendorCDR_20' ) end [2025-03-28 05:56:18] Production.INFO: ProcessCDR(1,14779508,1,1,2) [2025-03-28 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779508', 'tblTempUsageDetail_20' ) start [2025-03-28 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779508', 'tblTempUsageDetail_20' ) end [2025-03-28 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:56:21] Production.INFO: ==26077== Releasing lock... [2025-03-28 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:57:05 [end_date_ymd] => 2025-03-28 05:57:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:57:05' and `end` < '2025-03-28 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-28 05:57:18] Production.INFO: count ==148 [2025-03-28 05:57:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:57:05 - End Time 2025-03-28 05:57:05 [2025-03-28 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779513', 'tblTempUsageDetail_20' ) start [2025-03-28 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779513', 'tblTempUsageDetail_20' ) end [2025-03-28 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779513', 'tblTempVendorCDR_20' ) start [2025-03-28 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779513', 'tblTempVendorCDR_20' ) end [2025-03-28 05:57:18] Production.INFO: ProcessCDR(1,14779513,1,1,2) [2025-03-28 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779513', 'tblTempUsageDetail_20' ) start [2025-03-28 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779513', 'tblTempUsageDetail_20' ) end [2025-03-28 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:57:21] Production.INFO: ==26151== Releasing lock... [2025-03-28 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:58:05 [end_date_ymd] => 2025-03-28 05:58:05 [RateCDR] => 1 ) [2025-03-28 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-28 02:58:05' and `end` < '2025-03-28 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-28 05:58:17] Production.INFO: count ==144 [2025-03-28 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-28 02:58:05 - End Time 2025-03-28 05:58:05 [2025-03-28 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779518', 'tblTempUsageDetail_20' ) start [2025-03-28 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779518', 'tblTempUsageDetail_20' ) end [2025-03-28 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779518', 'tblTempVendorCDR_20' ) start [2025-03-28 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779518', 'tblTempVendorCDR_20' ) end [2025-03-28 05:58:18] Production.INFO: ProcessCDR(1,14779518,1,1,2) [2025-03-28 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779518', 'tblTempUsageDetail_20' ) start [2025-03-28 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779518', 'tblTempUsageDetail_20' ) end [2025-03-28 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:58:21] Production.INFO: ==26225== Releasing lock... [2025-03-28 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 05:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 02:59:06 [end_date_ymd] => 2025-03-28 05:59:06 [RateCDR] => 1 ) [2025-03-28 05:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 02:59:06' and `end` < '2025-03-28 05:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 05:59:18] Production.INFO: count ==140 [2025-03-28 05:59:18] Production.ERROR: pbx CDR StartTime 2025-03-28 02:59:06 - End Time 2025-03-28 05:59:06 [2025-03-28 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779523', 'tblTempUsageDetail_20' ) start [2025-03-28 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779523', 'tblTempUsageDetail_20' ) end [2025-03-28 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779523', 'tblTempVendorCDR_20' ) start [2025-03-28 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779523', 'tblTempVendorCDR_20' ) end [2025-03-28 05:59:18] Production.INFO: ProcessCDR(1,14779523,1,1,2) [2025-03-28 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779523', 'tblTempUsageDetail_20' ) start [2025-03-28 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779523', 'tblTempUsageDetail_20' ) end [2025-03-28 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 05:59:22] Production.INFO: ==26297== Releasing lock... [2025-03-28 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 05:59:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:00:06 [end_date_ymd] => 2025-03-28 06:00:06 [RateCDR] => 1 ) [2025-03-28 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-28 03:00:06' and `end` < '2025-03-28 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:00:18] Production.INFO: count ==123 [2025-03-28 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:00:06 - End Time 2025-03-28 06:00:06 [2025-03-28 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779529', 'tblTempUsageDetail_20' ) start [2025-03-28 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779529', 'tblTempUsageDetail_20' ) end [2025-03-28 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779529', 'tblTempVendorCDR_20' ) start [2025-03-28 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779529', 'tblTempVendorCDR_20' ) end [2025-03-28 06:00:18] Production.INFO: ProcessCDR(1,14779529,1,1,2) [2025-03-28 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779529', 'tblTempUsageDetail_20' ) start [2025-03-28 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779529', 'tblTempUsageDetail_20' ) end [2025-03-28 06:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:00:24] Production.INFO: ==26374== Releasing lock... [2025-03-28 06:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:00:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:01:06 [end_date_ymd] => 2025-03-28 06:01:06 [RateCDR] => 1 ) [2025-03-28 06: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-28 03:01:06' and `end` < '2025-03-28 06: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-28 06:01:18] Production.INFO: count ==113 [2025-03-28 06:01:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:01:06 - End Time 2025-03-28 06:01:06 [2025-03-28 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779534', 'tblTempUsageDetail_20' ) start [2025-03-28 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779534', 'tblTempUsageDetail_20' ) end [2025-03-28 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779534', 'tblTempVendorCDR_20' ) start [2025-03-28 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779534', 'tblTempVendorCDR_20' ) end [2025-03-28 06:01:18] Production.INFO: ProcessCDR(1,14779534,1,1,2) [2025-03-28 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779534', 'tblTempUsageDetail_20' ) start [2025-03-28 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779534', 'tblTempUsageDetail_20' ) end [2025-03-28 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:01:22] Production.INFO: ==26461== Releasing lock... [2025-03-28 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:02:05 [end_date_ymd] => 2025-03-28 06:02:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:02:05' and `end` < '2025-03-28 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-28 06:02:18] Production.INFO: count ==109 [2025-03-28 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:02:05 - End Time 2025-03-28 06:02:05 [2025-03-28 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779539', 'tblTempUsageDetail_20' ) start [2025-03-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779539', 'tblTempUsageDetail_20' ) end [2025-03-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779539', 'tblTempVendorCDR_20' ) start [2025-03-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779539', 'tblTempVendorCDR_20' ) end [2025-03-28 06:02:18] Production.INFO: ProcessCDR(1,14779539,1,1,2) [2025-03-28 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779539', 'tblTempUsageDetail_20' ) start [2025-03-28 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779539', 'tblTempUsageDetail_20' ) end [2025-03-28 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:02:21] Production.INFO: ==26533== Releasing lock... [2025-03-28 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:02:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:03:06 [end_date_ymd] => 2025-03-28 06:03:06 [RateCDR] => 1 ) [2025-03-28 06:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:03:06' and `end` < '2025-03-28 06:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:03:19] Production.INFO: count ==99 [2025-03-28 06:03:19] Production.ERROR: pbx CDR StartTime 2025-03-28 03:03:06 - End Time 2025-03-28 06:03:06 [2025-03-28 06:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779544', 'tblTempUsageDetail_20' ) start [2025-03-28 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779544', 'tblTempUsageDetail_20' ) end [2025-03-28 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779544', 'tblTempVendorCDR_20' ) start [2025-03-28 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779544', 'tblTempVendorCDR_20' ) end [2025-03-28 06:03:19] Production.INFO: ProcessCDR(1,14779544,1,1,2) [2025-03-28 06:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779544', 'tblTempUsageDetail_20' ) start [2025-03-28 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779544', 'tblTempUsageDetail_20' ) end [2025-03-28 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:03:22] Production.INFO: ==26606== Releasing lock... [2025-03-28 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:04:05 [end_date_ymd] => 2025-03-28 06:04:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:04:05' and `end` < '2025-03-28 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-28 06:04:18] Production.INFO: count ==91 [2025-03-28 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:04:05 - End Time 2025-03-28 06:04:05 [2025-03-28 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779549', 'tblTempUsageDetail_20' ) start [2025-03-28 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779549', 'tblTempUsageDetail_20' ) end [2025-03-28 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779549', 'tblTempVendorCDR_20' ) start [2025-03-28 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779549', 'tblTempVendorCDR_20' ) end [2025-03-28 06:04:18] Production.INFO: ProcessCDR(1,14779549,1,1,2) [2025-03-28 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779549', 'tblTempUsageDetail_20' ) start [2025-03-28 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779549', 'tblTempUsageDetail_20' ) end [2025-03-28 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:04:21] Production.INFO: ==26675== Releasing lock... [2025-03-28 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:05:06 [end_date_ymd] => 2025-03-28 06:05:06 [RateCDR] => 1 ) [2025-03-28 06:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:05:06' and `end` < '2025-03-28 06:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:05:18] Production.INFO: count ==79 [2025-03-28 06:05:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:05:06 - End Time 2025-03-28 06:05:06 [2025-03-28 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779554', 'tblTempUsageDetail_20' ) start [2025-03-28 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779554', 'tblTempUsageDetail_20' ) end [2025-03-28 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779554', 'tblTempVendorCDR_20' ) start [2025-03-28 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779554', 'tblTempVendorCDR_20' ) end [2025-03-28 06:05:18] Production.INFO: ProcessCDR(1,14779554,1,1,2) [2025-03-28 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779554', 'tblTempUsageDetail_20' ) start [2025-03-28 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779554', 'tblTempUsageDetail_20' ) end [2025-03-28 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:05:22] Production.INFO: ==26748== Releasing lock... [2025-03-28 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-28 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:06:05 [end_date_ymd] => 2025-03-28 06:06:05 [RateCDR] => 1 ) [2025-03-28 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:06:05' and `end` < '2025-03-28 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:06:18] Production.INFO: count ==76 [2025-03-28 06:06:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:06:05 - End Time 2025-03-28 06:06:05 [2025-03-28 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779559', 'tblTempUsageDetail_20' ) start [2025-03-28 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779559', 'tblTempUsageDetail_20' ) end [2025-03-28 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779559', 'tblTempVendorCDR_20' ) start [2025-03-28 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779559', 'tblTempVendorCDR_20' ) end [2025-03-28 06:06:18] Production.INFO: ProcessCDR(1,14779559,1,1,2) [2025-03-28 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779559', 'tblTempUsageDetail_20' ) start [2025-03-28 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779559', 'tblTempUsageDetail_20' ) end [2025-03-28 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:06:21] Production.INFO: ==26823== Releasing lock... [2025-03-28 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-28 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:07:06 [end_date_ymd] => 2025-03-28 06:07:06 [RateCDR] => 1 ) [2025-03-28 06:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:07:06' and `end` < '2025-03-28 06:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:07:19] Production.INFO: count ==76 [2025-03-28 06:07:19] Production.ERROR: pbx CDR StartTime 2025-03-28 03:07:06 - End Time 2025-03-28 06:07:06 [2025-03-28 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779564', 'tblTempUsageDetail_20' ) start [2025-03-28 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779564', 'tblTempUsageDetail_20' ) end [2025-03-28 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779564', 'tblTempVendorCDR_20' ) start [2025-03-28 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779564', 'tblTempVendorCDR_20' ) end [2025-03-28 06:07:19] Production.INFO: ProcessCDR(1,14779564,1,1,2) [2025-03-28 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779564', 'tblTempUsageDetail_20' ) start [2025-03-28 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779564', 'tblTempUsageDetail_20' ) end [2025-03-28 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:07:22] Production.INFO: ==26932== Releasing lock... [2025-03-28 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:07:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-28 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:08:05 [end_date_ymd] => 2025-03-28 06:08:05 [RateCDR] => 1 ) [2025-03-28 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:08:05' and `end` < '2025-03-28 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:08:18] Production.INFO: count ==75 [2025-03-28 06:08:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:08:05 - End Time 2025-03-28 06:08:05 [2025-03-28 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779569', 'tblTempUsageDetail_20' ) start [2025-03-28 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779569', 'tblTempUsageDetail_20' ) end [2025-03-28 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779569', 'tblTempVendorCDR_20' ) start [2025-03-28 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779569', 'tblTempVendorCDR_20' ) end [2025-03-28 06:08:18] Production.INFO: ProcessCDR(1,14779569,1,1,2) [2025-03-28 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779569', 'tblTempUsageDetail_20' ) start [2025-03-28 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779569', 'tblTempUsageDetail_20' ) end [2025-03-28 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:08:21] Production.INFO: ==27007== Releasing lock... [2025-03-28 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-28 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:09:06 [end_date_ymd] => 2025-03-28 06:09:06 [RateCDR] => 1 ) [2025-03-28 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-28 03:09:06' and `end` < '2025-03-28 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-28 06:09:18] Production.INFO: count ==75 [2025-03-28 06:09:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:09:06 - End Time 2025-03-28 06:09:06 [2025-03-28 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779574', 'tblTempUsageDetail_20' ) start [2025-03-28 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779574', 'tblTempUsageDetail_20' ) end [2025-03-28 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779574', 'tblTempVendorCDR_20' ) start [2025-03-28 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779574', 'tblTempVendorCDR_20' ) end [2025-03-28 06:09:18] Production.INFO: ProcessCDR(1,14779574,1,1,2) [2025-03-28 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779574', 'tblTempUsageDetail_20' ) start [2025-03-28 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779574', 'tblTempUsageDetail_20' ) end [2025-03-28 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:09:22] Production.INFO: ==27081== Releasing lock... [2025-03-28 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-28 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:10:06 [end_date_ymd] => 2025-03-28 06:10:06 [RateCDR] => 1 ) [2025-03-28 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-28 03:10:06' and `end` < '2025-03-28 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-28 06:10:18] Production.INFO: count ==75 [2025-03-28 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:10:06 - End Time 2025-03-28 06:10:06 [2025-03-28 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779579', 'tblTempUsageDetail_20' ) start [2025-03-28 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779579', 'tblTempUsageDetail_20' ) end [2025-03-28 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779579', 'tblTempVendorCDR_20' ) start [2025-03-28 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779579', 'tblTempVendorCDR_20' ) end [2025-03-28 06:10:18] Production.INFO: ProcessCDR(1,14779579,1,1,2) [2025-03-28 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779579', 'tblTempUsageDetail_20' ) start [2025-03-28 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779579', 'tblTempUsageDetail_20' ) end [2025-03-28 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:10:22] Production.INFO: ==27154== Releasing lock... [2025-03-28 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-28 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:11:06 [end_date_ymd] => 2025-03-28 06:11:06 [RateCDR] => 1 ) [2025-03-28 06:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:11:06' and `end` < '2025-03-28 06:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:11:18] Production.INFO: count ==75 [2025-03-28 06:11:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:11:06 - End Time 2025-03-28 06:11:06 [2025-03-28 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779585', 'tblTempUsageDetail_20' ) start [2025-03-28 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779585', 'tblTempUsageDetail_20' ) end [2025-03-28 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779585', 'tblTempVendorCDR_20' ) start [2025-03-28 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779585', 'tblTempVendorCDR_20' ) end [2025-03-28 06:11:18] Production.INFO: ProcessCDR(1,14779585,1,1,2) [2025-03-28 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779585', 'tblTempUsageDetail_20' ) start [2025-03-28 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779585', 'tblTempUsageDetail_20' ) end [2025-03-28 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:11:22] Production.INFO: ==27228== Releasing lock... [2025-03-28 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-28 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:12:05 [end_date_ymd] => 2025-03-28 06:12:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:12:05' and `end` < '2025-03-28 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-28 06:12:18] Production.INFO: count ==74 [2025-03-28 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:12:05 - End Time 2025-03-28 06:12:05 [2025-03-28 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779590', 'tblTempUsageDetail_20' ) start [2025-03-28 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779590', 'tblTempUsageDetail_20' ) end [2025-03-28 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779590', 'tblTempVendorCDR_20' ) start [2025-03-28 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779590', 'tblTempVendorCDR_20' ) end [2025-03-28 06:12:18] Production.INFO: ProcessCDR(1,14779590,1,1,2) [2025-03-28 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779590', 'tblTempUsageDetail_20' ) start [2025-03-28 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779590', 'tblTempUsageDetail_20' ) end [2025-03-28 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:12:21] Production.INFO: ==27304== Releasing lock... [2025-03-28 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-28 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:13:06 [end_date_ymd] => 2025-03-28 06:13:06 [RateCDR] => 1 ) [2025-03-28 06:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:13:06' and `end` < '2025-03-28 06:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:13:18] Production.INFO: count ==82 [2025-03-28 06:13:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:13:06 - End Time 2025-03-28 06:13:06 [2025-03-28 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779595', 'tblTempUsageDetail_20' ) start [2025-03-28 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779595', 'tblTempUsageDetail_20' ) end [2025-03-28 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779595', 'tblTempVendorCDR_20' ) start [2025-03-28 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779595', 'tblTempVendorCDR_20' ) end [2025-03-28 06:13:18] Production.INFO: ProcessCDR(1,14779595,1,1,2) [2025-03-28 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779595', 'tblTempUsageDetail_20' ) start [2025-03-28 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779595', 'tblTempUsageDetail_20' ) end [2025-03-28 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:13:21] Production.INFO: ==27376== Releasing lock... [2025-03-28 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:13:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:14:05 [end_date_ymd] => 2025-03-28 06:14:05 [RateCDR] => 1 ) [2025-03-28 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:14:05' and `end` < '2025-03-28 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:14:17] Production.INFO: count ==82 [2025-03-28 06:14:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:14:05 - End Time 2025-03-28 06:14:05 [2025-03-28 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779600', 'tblTempUsageDetail_20' ) start [2025-03-28 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779600', 'tblTempUsageDetail_20' ) end [2025-03-28 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779600', 'tblTempVendorCDR_20' ) start [2025-03-28 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779600', 'tblTempVendorCDR_20' ) end [2025-03-28 06:14:17] Production.INFO: ProcessCDR(1,14779600,1,1,2) [2025-03-28 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779600', 'tblTempUsageDetail_20' ) start [2025-03-28 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779600', 'tblTempUsageDetail_20' ) end [2025-03-28 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:14:21] Production.INFO: ==27448== Releasing lock... [2025-03-28 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:14:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:15:06 [end_date_ymd] => 2025-03-28 06:15:06 [RateCDR] => 1 ) [2025-03-28 06:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:15:06' and `end` < '2025-03-28 06:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:15:18] Production.INFO: count ==80 [2025-03-28 06:15:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:15:06 - End Time 2025-03-28 06:15:06 [2025-03-28 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779605', 'tblTempUsageDetail_20' ) start [2025-03-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779605', 'tblTempUsageDetail_20' ) end [2025-03-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779605', 'tblTempVendorCDR_20' ) start [2025-03-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779605', 'tblTempVendorCDR_20' ) end [2025-03-28 06:15:18] Production.INFO: ProcessCDR(1,14779605,1,1,2) [2025-03-28 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779605', 'tblTempUsageDetail_20' ) start [2025-03-28 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779605', 'tblTempUsageDetail_20' ) end [2025-03-28 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:15:21] Production.INFO: ==27521== Releasing lock... [2025-03-28 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-28 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:16:05 [end_date_ymd] => 2025-03-28 06:16:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:16:05' and `end` < '2025-03-28 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-28 06:16:18] Production.INFO: count ==80 [2025-03-28 06:16:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:16:05 - End Time 2025-03-28 06:16:05 [2025-03-28 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779610', 'tblTempUsageDetail_20' ) start [2025-03-28 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779610', 'tblTempUsageDetail_20' ) end [2025-03-28 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779610', 'tblTempVendorCDR_20' ) start [2025-03-28 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779610', 'tblTempVendorCDR_20' ) end [2025-03-28 06:16:18] Production.INFO: ProcessCDR(1,14779610,1,1,2) [2025-03-28 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779610', 'tblTempUsageDetail_20' ) start [2025-03-28 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779610', 'tblTempUsageDetail_20' ) end [2025-03-28 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:16:21] Production.INFO: ==27595== Releasing lock... [2025-03-28 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-28 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:17:06 [end_date_ymd] => 2025-03-28 06:17:06 [RateCDR] => 1 ) [2025-03-28 06:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:17:06' and `end` < '2025-03-28 06:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:17:18] Production.INFO: count ==80 [2025-03-28 06:17:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:17:06 - End Time 2025-03-28 06:17:06 [2025-03-28 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779615', 'tblTempUsageDetail_20' ) start [2025-03-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779615', 'tblTempUsageDetail_20' ) end [2025-03-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779615', 'tblTempVendorCDR_20' ) start [2025-03-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779615', 'tblTempVendorCDR_20' ) end [2025-03-28 06:17:18] Production.INFO: ProcessCDR(1,14779615,1,1,2) [2025-03-28 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779615', 'tblTempUsageDetail_20' ) start [2025-03-28 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779615', 'tblTempUsageDetail_20' ) end [2025-03-28 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:17:22] Production.INFO: ==27674== Releasing lock... [2025-03-28 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:17:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-28 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:18:05 [end_date_ymd] => 2025-03-28 06:18:05 [RateCDR] => 1 ) [2025-03-28 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:18:05' and `end` < '2025-03-28 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:18:17] Production.INFO: count ==80 [2025-03-28 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:18:05 - End Time 2025-03-28 06:18:05 [2025-03-28 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779620', 'tblTempUsageDetail_20' ) start [2025-03-28 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779620', 'tblTempUsageDetail_20' ) end [2025-03-28 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779620', 'tblTempVendorCDR_20' ) start [2025-03-28 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779620', 'tblTempVendorCDR_20' ) end [2025-03-28 06:18:17] Production.INFO: ProcessCDR(1,14779620,1,1,2) [2025-03-28 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779620', 'tblTempUsageDetail_20' ) start [2025-03-28 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779620', 'tblTempUsageDetail_20' ) end [2025-03-28 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:18:21] Production.INFO: ==27746== Releasing lock... [2025-03-28 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-28 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:19:05 [end_date_ymd] => 2025-03-28 06:19:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:19:05' and `end` < '2025-03-28 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-28 06:19:18] Production.INFO: count ==83 [2025-03-28 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:19:05 - End Time 2025-03-28 06:19:05 [2025-03-28 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779625', 'tblTempUsageDetail_20' ) start [2025-03-28 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779625', 'tblTempUsageDetail_20' ) end [2025-03-28 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779625', 'tblTempVendorCDR_20' ) start [2025-03-28 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779625', 'tblTempVendorCDR_20' ) end [2025-03-28 06:19:18] Production.INFO: ProcessCDR(1,14779625,1,1,2) [2025-03-28 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779625', 'tblTempUsageDetail_20' ) start [2025-03-28 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779625', 'tblTempUsageDetail_20' ) end [2025-03-28 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:19:21] Production.INFO: ==27825== Releasing lock... [2025-03-28 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:19:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:20:06 [end_date_ymd] => 2025-03-28 06:20:06 [RateCDR] => 1 ) [2025-03-28 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-28 03:20:06' and `end` < '2025-03-28 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-28 06:20:19] Production.INFO: count ==97 [2025-03-28 06:20:19] Production.ERROR: pbx CDR StartTime 2025-03-28 03:20:06 - End Time 2025-03-28 06:20:06 [2025-03-28 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779631', 'tblTempUsageDetail_20' ) start [2025-03-28 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779631', 'tblTempUsageDetail_20' ) end [2025-03-28 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779631', 'tblTempVendorCDR_20' ) start [2025-03-28 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779631', 'tblTempVendorCDR_20' ) end [2025-03-28 06:20:19] Production.INFO: ProcessCDR(1,14779631,1,1,2) [2025-03-28 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779631', 'tblTempUsageDetail_20' ) start [2025-03-28 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779631', 'tblTempUsageDetail_20' ) end [2025-03-28 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:20:22] Production.INFO: ==27896== Releasing lock... [2025-03-28 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:21:05 [end_date_ymd] => 2025-03-28 06:21:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:21:05' and `end` < '2025-03-28 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-28 06:21:18] Production.INFO: count ==105 [2025-03-28 06:21:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:21:05 - End Time 2025-03-28 06:21:05 [2025-03-28 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779636', 'tblTempUsageDetail_20' ) start [2025-03-28 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779636', 'tblTempUsageDetail_20' ) end [2025-03-28 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779636', 'tblTempVendorCDR_20' ) start [2025-03-28 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779636', 'tblTempVendorCDR_20' ) end [2025-03-28 06:21:18] Production.INFO: ProcessCDR(1,14779636,1,1,2) [2025-03-28 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779636', 'tblTempUsageDetail_20' ) start [2025-03-28 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779636', 'tblTempUsageDetail_20' ) end [2025-03-28 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:21:21] Production.INFO: ==27971== Releasing lock... [2025-03-28 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:22:05 [end_date_ymd] => 2025-03-28 06:22:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:22:05' and `end` < '2025-03-28 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-28 06:22:17] Production.INFO: count ==101 [2025-03-28 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:22:05 - End Time 2025-03-28 06:22:05 [2025-03-28 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779641', 'tblTempUsageDetail_20' ) start [2025-03-28 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779641', 'tblTempUsageDetail_20' ) end [2025-03-28 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779641', 'tblTempVendorCDR_20' ) start [2025-03-28 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779641', 'tblTempVendorCDR_20' ) end [2025-03-28 06:22:17] Production.INFO: ProcessCDR(1,14779641,1,1,2) [2025-03-28 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779641', 'tblTempUsageDetail_20' ) start [2025-03-28 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779641', 'tblTempUsageDetail_20' ) end [2025-03-28 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:22:21] Production.INFO: ==28083== Releasing lock... [2025-03-28 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:23:05 [end_date_ymd] => 2025-03-28 06:23:05 [RateCDR] => 1 ) [2025-03-28 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:23:05' and `end` < '2025-03-28 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:23:17] Production.INFO: count ==105 [2025-03-28 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:23:05 - End Time 2025-03-28 06:23:05 [2025-03-28 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779646', 'tblTempUsageDetail_20' ) start [2025-03-28 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779646', 'tblTempUsageDetail_20' ) end [2025-03-28 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779646', 'tblTempVendorCDR_20' ) start [2025-03-28 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779646', 'tblTempVendorCDR_20' ) end [2025-03-28 06:23:17] Production.INFO: ProcessCDR(1,14779646,1,1,2) [2025-03-28 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779646', 'tblTempUsageDetail_20' ) start [2025-03-28 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779646', 'tblTempUsageDetail_20' ) end [2025-03-28 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:23:21] Production.INFO: ==28156== Releasing lock... [2025-03-28 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:24:06 [end_date_ymd] => 2025-03-28 06:24:06 [RateCDR] => 1 ) [2025-03-28 06:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:24:06' and `end` < '2025-03-28 06:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:24:19] Production.INFO: count ==105 [2025-03-28 06:24:19] Production.ERROR: pbx CDR StartTime 2025-03-28 03:24:06 - End Time 2025-03-28 06:24:06 [2025-03-28 06:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779651', 'tblTempUsageDetail_20' ) start [2025-03-28 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779651', 'tblTempUsageDetail_20' ) end [2025-03-28 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779651', 'tblTempVendorCDR_20' ) start [2025-03-28 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779651', 'tblTempVendorCDR_20' ) end [2025-03-28 06:24:19] Production.INFO: ProcessCDR(1,14779651,1,1,2) [2025-03-28 06:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779651', 'tblTempUsageDetail_20' ) start [2025-03-28 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779651', 'tblTempUsageDetail_20' ) end [2025-03-28 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:24:22] Production.INFO: ==28229== Releasing lock... [2025-03-28 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:25:05 [end_date_ymd] => 2025-03-28 06:25:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:25:05' and `end` < '2025-03-28 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-28 06:25:18] Production.INFO: count ==105 [2025-03-28 06:25:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:25:05 - End Time 2025-03-28 06:25:05 [2025-03-28 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779656', 'tblTempUsageDetail_20' ) start [2025-03-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779656', 'tblTempUsageDetail_20' ) end [2025-03-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779656', 'tblTempVendorCDR_20' ) start [2025-03-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779656', 'tblTempVendorCDR_20' ) end [2025-03-28 06:25:18] Production.INFO: ProcessCDR(1,14779656,1,1,2) [2025-03-28 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779656', 'tblTempUsageDetail_20' ) start [2025-03-28 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779656', 'tblTempUsageDetail_20' ) end [2025-03-28 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:25:21] Production.INFO: ==28300== Releasing lock... [2025-03-28 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:26:06 [end_date_ymd] => 2025-03-28 06:26:06 [RateCDR] => 1 ) [2025-03-28 06:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:26:06' and `end` < '2025-03-28 06:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:26:19] Production.INFO: count ==104 [2025-03-28 06:26:19] Production.ERROR: pbx CDR StartTime 2025-03-28 03:26:06 - End Time 2025-03-28 06:26:06 [2025-03-28 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779661', 'tblTempUsageDetail_20' ) start [2025-03-28 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779661', 'tblTempUsageDetail_20' ) end [2025-03-28 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779661', 'tblTempVendorCDR_20' ) start [2025-03-28 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779661', 'tblTempVendorCDR_20' ) end [2025-03-28 06:26:19] Production.INFO: ProcessCDR(1,14779661,1,1,2) [2025-03-28 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779661', 'tblTempUsageDetail_20' ) start [2025-03-28 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779661', 'tblTempUsageDetail_20' ) end [2025-03-28 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:26:22] Production.INFO: ==28372== Releasing lock... [2025-03-28 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:27:05 [end_date_ymd] => 2025-03-28 06:27:05 [RateCDR] => 1 ) [2025-03-28 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:27:05' and `end` < '2025-03-28 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:27:18] Production.INFO: count ==100 [2025-03-28 06:27:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:27:05 - End Time 2025-03-28 06:27:05 [2025-03-28 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779666', 'tblTempUsageDetail_20' ) start [2025-03-28 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779666', 'tblTempUsageDetail_20' ) end [2025-03-28 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779666', 'tblTempVendorCDR_20' ) start [2025-03-28 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779666', 'tblTempVendorCDR_20' ) end [2025-03-28 06:27:18] Production.INFO: ProcessCDR(1,14779666,1,1,2) [2025-03-28 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779666', 'tblTempUsageDetail_20' ) start [2025-03-28 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779666', 'tblTempUsageDetail_20' ) end [2025-03-28 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:27:21] Production.INFO: ==28445== Releasing lock... [2025-03-28 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:28:06 [end_date_ymd] => 2025-03-28 06:28:06 [RateCDR] => 1 ) [2025-03-28 06:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:28:06' and `end` < '2025-03-28 06:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:28:19] Production.INFO: count ==96 [2025-03-28 06:28:19] Production.ERROR: pbx CDR StartTime 2025-03-28 03:28:06 - End Time 2025-03-28 06:28:06 [2025-03-28 06:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779671', 'tblTempUsageDetail_20' ) start [2025-03-28 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779671', 'tblTempUsageDetail_20' ) end [2025-03-28 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779671', 'tblTempVendorCDR_20' ) start [2025-03-28 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779671', 'tblTempVendorCDR_20' ) end [2025-03-28 06:28:19] Production.INFO: ProcessCDR(1,14779671,1,1,2) [2025-03-28 06:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779671', 'tblTempUsageDetail_20' ) start [2025-03-28 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779671', 'tblTempUsageDetail_20' ) end [2025-03-28 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:28:22] Production.INFO: ==28522== Releasing lock... [2025-03-28 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:28:22] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:29:05 [end_date_ymd] => 2025-03-28 06:29:05 [RateCDR] => 1 ) [2025-03-28 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:29:05' and `end` < '2025-03-28 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:29:18] Production.INFO: count ==96 [2025-03-28 06:29:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:29:05 - End Time 2025-03-28 06:29:05 [2025-03-28 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779676', 'tblTempUsageDetail_20' ) start [2025-03-28 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779676', 'tblTempUsageDetail_20' ) end [2025-03-28 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779676', 'tblTempVendorCDR_20' ) start [2025-03-28 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779676', 'tblTempVendorCDR_20' ) end [2025-03-28 06:29:18] Production.INFO: ProcessCDR(1,14779676,1,1,2) [2025-03-28 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779676', 'tblTempUsageDetail_20' ) start [2025-03-28 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779676', 'tblTempUsageDetail_20' ) end [2025-03-28 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:29:21] Production.INFO: ==28592== Releasing lock... [2025-03-28 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:29:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:30:06 [end_date_ymd] => 2025-03-28 06:30:06 [RateCDR] => 1 ) [2025-03-28 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-28 03:30:06' and `end` < '2025-03-28 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-28 06:30:19] Production.INFO: count ==98 [2025-03-28 06:30:19] Production.ERROR: pbx CDR StartTime 2025-03-28 03:30:06 - End Time 2025-03-28 06:30:06 [2025-03-28 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779682', 'tblTempUsageDetail_20' ) start [2025-03-28 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779682', 'tblTempUsageDetail_20' ) end [2025-03-28 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779682', 'tblTempVendorCDR_20' ) start [2025-03-28 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779682', 'tblTempVendorCDR_20' ) end [2025-03-28 06:30:19] Production.INFO: ProcessCDR(1,14779682,1,1,2) [2025-03-28 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779682', 'tblTempUsageDetail_20' ) start [2025-03-28 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779682', 'tblTempUsageDetail_20' ) end [2025-03-28 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:30:22] Production.INFO: ==28671== Releasing lock... [2025-03-28 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:31:05 [end_date_ymd] => 2025-03-28 06:31:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:31:05' and `end` < '2025-03-28 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-28 06:31:18] Production.INFO: count ==98 [2025-03-28 06:31:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:31:05 - End Time 2025-03-28 06:31:05 [2025-03-28 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779687', 'tblTempUsageDetail_20' ) start [2025-03-28 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779687', 'tblTempUsageDetail_20' ) end [2025-03-28 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779687', 'tblTempVendorCDR_20' ) start [2025-03-28 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779687', 'tblTempVendorCDR_20' ) end [2025-03-28 06:31:18] Production.INFO: ProcessCDR(1,14779687,1,1,2) [2025-03-28 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779687', 'tblTempUsageDetail_20' ) start [2025-03-28 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779687', 'tblTempUsageDetail_20' ) end [2025-03-28 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:31:21] Production.INFO: ==28748== Releasing lock... [2025-03-28 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:32:05 [end_date_ymd] => 2025-03-28 06:32:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:32:05' and `end` < '2025-03-28 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-28 06:32:18] Production.INFO: count ==98 [2025-03-28 06:32:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:32:05 - End Time 2025-03-28 06:32:05 [2025-03-28 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779692', 'tblTempUsageDetail_20' ) start [2025-03-28 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779692', 'tblTempUsageDetail_20' ) end [2025-03-28 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779692', 'tblTempVendorCDR_20' ) start [2025-03-28 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779692', 'tblTempVendorCDR_20' ) end [2025-03-28 06:32:18] Production.INFO: ProcessCDR(1,14779692,1,1,2) [2025-03-28 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779692', 'tblTempUsageDetail_20' ) start [2025-03-28 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779692', 'tblTempUsageDetail_20' ) end [2025-03-28 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:32:21] Production.INFO: ==28824== Releasing lock... [2025-03-28 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:33:05 [end_date_ymd] => 2025-03-28 06:33:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:33:05' and `end` < '2025-03-28 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-28 06:33:18] Production.INFO: count ==98 [2025-03-28 06:33:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:33:05 - End Time 2025-03-28 06:33:05 [2025-03-28 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779697', 'tblTempUsageDetail_20' ) start [2025-03-28 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779697', 'tblTempUsageDetail_20' ) end [2025-03-28 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779697', 'tblTempVendorCDR_20' ) start [2025-03-28 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779697', 'tblTempVendorCDR_20' ) end [2025-03-28 06:33:18] Production.INFO: ProcessCDR(1,14779697,1,1,2) [2025-03-28 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779697', 'tblTempUsageDetail_20' ) start [2025-03-28 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779697', 'tblTempUsageDetail_20' ) end [2025-03-28 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:33:21] Production.INFO: ==28892== Releasing lock... [2025-03-28 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:34:05 [end_date_ymd] => 2025-03-28 06:34:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:34:05' and `end` < '2025-03-28 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-28 06:34:18] Production.INFO: count ==100 [2025-03-28 06:34:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:34:05 - End Time 2025-03-28 06:34:05 [2025-03-28 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779702', 'tblTempUsageDetail_20' ) start [2025-03-28 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779702', 'tblTempUsageDetail_20' ) end [2025-03-28 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779702', 'tblTempVendorCDR_20' ) start [2025-03-28 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779702', 'tblTempVendorCDR_20' ) end [2025-03-28 06:34:18] Production.INFO: ProcessCDR(1,14779702,1,1,2) [2025-03-28 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779702', 'tblTempUsageDetail_20' ) start [2025-03-28 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779702', 'tblTempUsageDetail_20' ) end [2025-03-28 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:34:22] Production.INFO: ==28968== Releasing lock... [2025-03-28 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:35:05 [end_date_ymd] => 2025-03-28 06:35:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:35:05' and `end` < '2025-03-28 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-28 06:35:17] Production.INFO: count ==101 [2025-03-28 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:35:05 - End Time 2025-03-28 06:35:05 [2025-03-28 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779707', 'tblTempUsageDetail_20' ) start [2025-03-28 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779707', 'tblTempUsageDetail_20' ) end [2025-03-28 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779707', 'tblTempVendorCDR_20' ) start [2025-03-28 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779707', 'tblTempVendorCDR_20' ) end [2025-03-28 06:35:17] Production.INFO: ProcessCDR(1,14779707,1,1,2) [2025-03-28 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779707', 'tblTempUsageDetail_20' ) start [2025-03-28 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779707', 'tblTempUsageDetail_20' ) end [2025-03-28 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:35:22] Production.INFO: ==29043== Releasing lock... [2025-03-28 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:35:22] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:36:05 [end_date_ymd] => 2025-03-28 06:36:05 [RateCDR] => 1 ) [2025-03-28 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:36:05' and `end` < '2025-03-28 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:36:18] Production.INFO: count ==101 [2025-03-28 06:36:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:36:05 - End Time 2025-03-28 06:36:05 [2025-03-28 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779712', 'tblTempUsageDetail_20' ) start [2025-03-28 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779712', 'tblTempUsageDetail_20' ) end [2025-03-28 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779712', 'tblTempVendorCDR_20' ) start [2025-03-28 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779712', 'tblTempVendorCDR_20' ) end [2025-03-28 06:36:18] Production.INFO: ProcessCDR(1,14779712,1,1,2) [2025-03-28 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779712', 'tblTempUsageDetail_20' ) start [2025-03-28 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779712', 'tblTempUsageDetail_20' ) end [2025-03-28 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:36:21] Production.INFO: ==29119== Releasing lock... [2025-03-28 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:36:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:37:05 [end_date_ymd] => 2025-03-28 06:37:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:37:05' and `end` < '2025-03-28 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-28 06:37:17] Production.INFO: count ==101 [2025-03-28 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:37:05 - End Time 2025-03-28 06:37:05 [2025-03-28 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779717', 'tblTempUsageDetail_20' ) start [2025-03-28 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779717', 'tblTempUsageDetail_20' ) end [2025-03-28 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779717', 'tblTempVendorCDR_20' ) start [2025-03-28 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779717', 'tblTempVendorCDR_20' ) end [2025-03-28 06:37:17] Production.INFO: ProcessCDR(1,14779717,1,1,2) [2025-03-28 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779717', 'tblTempUsageDetail_20' ) start [2025-03-28 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779717', 'tblTempUsageDetail_20' ) end [2025-03-28 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:37:20] Production.INFO: ==29193== Releasing lock... [2025-03-28 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:37:20] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:38:05 [end_date_ymd] => 2025-03-28 06:38:05 [RateCDR] => 1 ) [2025-03-28 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:38:05' and `end` < '2025-03-28 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:38:17] Production.INFO: count ==101 [2025-03-28 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:38:05 - End Time 2025-03-28 06:38:05 [2025-03-28 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779722', 'tblTempUsageDetail_20' ) start [2025-03-28 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779722', 'tblTempUsageDetail_20' ) end [2025-03-28 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779722', 'tblTempVendorCDR_20' ) start [2025-03-28 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779722', 'tblTempVendorCDR_20' ) end [2025-03-28 06:38:17] Production.INFO: ProcessCDR(1,14779722,1,1,2) [2025-03-28 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779722', 'tblTempUsageDetail_20' ) start [2025-03-28 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779722', 'tblTempUsageDetail_20' ) end [2025-03-28 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:38:21] Production.INFO: ==29306== Releasing lock... [2025-03-28 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:38:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:39:06 [end_date_ymd] => 2025-03-28 06:39:06 [RateCDR] => 1 ) [2025-03-28 06:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:39:06' and `end` < '2025-03-28 06:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:39:18] Production.INFO: count ==101 [2025-03-28 06:39:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:39:06 - End Time 2025-03-28 06:39:06 [2025-03-28 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779727', 'tblTempUsageDetail_20' ) start [2025-03-28 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779727', 'tblTempUsageDetail_20' ) end [2025-03-28 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779727', 'tblTempVendorCDR_20' ) start [2025-03-28 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779727', 'tblTempVendorCDR_20' ) end [2025-03-28 06:39:18] Production.INFO: ProcessCDR(1,14779727,1,1,2) [2025-03-28 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779727', 'tblTempUsageDetail_20' ) start [2025-03-28 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779727', 'tblTempUsageDetail_20' ) end [2025-03-28 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:39:21] Production.INFO: ==29378== Releasing lock... [2025-03-28 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:39:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:40:06 [end_date_ymd] => 2025-03-28 06:40:06 [RateCDR] => 1 ) [2025-03-28 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-28 03:40:06' and `end` < '2025-03-28 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-28 06:40:18] Production.INFO: count ==103 [2025-03-28 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:40:06 - End Time 2025-03-28 06:40:06 [2025-03-28 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779732', 'tblTempUsageDetail_20' ) start [2025-03-28 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779732', 'tblTempUsageDetail_20' ) end [2025-03-28 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779732', 'tblTempVendorCDR_20' ) start [2025-03-28 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779732', 'tblTempVendorCDR_20' ) end [2025-03-28 06:40:18] Production.INFO: ProcessCDR(1,14779732,1,1,2) [2025-03-28 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779732', 'tblTempUsageDetail_20' ) start [2025-03-28 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779732', 'tblTempUsageDetail_20' ) end [2025-03-28 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:40:22] Production.INFO: ==29458== Releasing lock... [2025-03-28 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:40:22] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:41:05 [end_date_ymd] => 2025-03-28 06:41:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:41:05' and `end` < '2025-03-28 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-28 06:41:18] Production.INFO: count ==103 [2025-03-28 06:41:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:41:05 - End Time 2025-03-28 06:41:05 [2025-03-28 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779738', 'tblTempUsageDetail_20' ) start [2025-03-28 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779738', 'tblTempUsageDetail_20' ) end [2025-03-28 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779738', 'tblTempVendorCDR_20' ) start [2025-03-28 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779738', 'tblTempVendorCDR_20' ) end [2025-03-28 06:41:18] Production.INFO: ProcessCDR(1,14779738,1,1,2) [2025-03-28 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779738', 'tblTempUsageDetail_20' ) start [2025-03-28 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779738', 'tblTempUsageDetail_20' ) end [2025-03-28 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:41:21] Production.INFO: ==29534== Releasing lock... [2025-03-28 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:41:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:42:05 [end_date_ymd] => 2025-03-28 06:42:05 [RateCDR] => 1 ) [2025-03-28 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:42:05' and `end` < '2025-03-28 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:42:17] Production.INFO: count ==103 [2025-03-28 06:42:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:42:05 - End Time 2025-03-28 06:42:05 [2025-03-28 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779743', 'tblTempUsageDetail_20' ) start [2025-03-28 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779743', 'tblTempUsageDetail_20' ) end [2025-03-28 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779743', 'tblTempVendorCDR_20' ) start [2025-03-28 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779743', 'tblTempVendorCDR_20' ) end [2025-03-28 06:42:18] Production.INFO: ProcessCDR(1,14779743,1,1,2) [2025-03-28 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779743', 'tblTempUsageDetail_20' ) start [2025-03-28 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779743', 'tblTempUsageDetail_20' ) end [2025-03-28 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:42:21] Production.INFO: ==29604== Releasing lock... [2025-03-28 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:42:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:43:05 [end_date_ymd] => 2025-03-28 06:43:05 [RateCDR] => 1 ) [2025-03-28 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:43:05' and `end` < '2025-03-28 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:43:18] Production.INFO: count ==103 [2025-03-28 06:43:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:43:05 - End Time 2025-03-28 06:43:05 [2025-03-28 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779748', 'tblTempUsageDetail_20' ) start [2025-03-28 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779748', 'tblTempUsageDetail_20' ) end [2025-03-28 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779748', 'tblTempVendorCDR_20' ) start [2025-03-28 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779748', 'tblTempVendorCDR_20' ) end [2025-03-28 06:43:18] Production.INFO: ProcessCDR(1,14779748,1,1,2) [2025-03-28 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779748', 'tblTempUsageDetail_20' ) start [2025-03-28 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779748', 'tblTempUsageDetail_20' ) end [2025-03-28 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:43:21] Production.INFO: ==29681== Releasing lock... [2025-03-28 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:43:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:44:05 [end_date_ymd] => 2025-03-28 06:44:05 [RateCDR] => 1 ) [2025-03-28 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:44:05' and `end` < '2025-03-28 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:44:18] Production.INFO: count ==103 [2025-03-28 06:44:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:44:05 - End Time 2025-03-28 06:44:05 [2025-03-28 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779753', 'tblTempUsageDetail_20' ) start [2025-03-28 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779753', 'tblTempUsageDetail_20' ) end [2025-03-28 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779753', 'tblTempVendorCDR_20' ) start [2025-03-28 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779753', 'tblTempVendorCDR_20' ) end [2025-03-28 06:44:18] Production.INFO: ProcessCDR(1,14779753,1,1,2) [2025-03-28 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779753', 'tblTempUsageDetail_20' ) start [2025-03-28 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779753', 'tblTempUsageDetail_20' ) end [2025-03-28 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:44:21] Production.INFO: ==29756== Releasing lock... [2025-03-28 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:44:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:45:05 [end_date_ymd] => 2025-03-28 06:45:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:45:05' and `end` < '2025-03-28 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-28 06:45:17] Production.INFO: count ==103 [2025-03-28 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:45:05 - End Time 2025-03-28 06:45:05 [2025-03-28 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779758', 'tblTempUsageDetail_20' ) start [2025-03-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779758', 'tblTempUsageDetail_20' ) end [2025-03-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779758', 'tblTempVendorCDR_20' ) start [2025-03-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779758', 'tblTempVendorCDR_20' ) end [2025-03-28 06:45:17] Production.INFO: ProcessCDR(1,14779758,1,1,2) [2025-03-28 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779758', 'tblTempUsageDetail_20' ) start [2025-03-28 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779758', 'tblTempUsageDetail_20' ) end [2025-03-28 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:45:21] Production.INFO: ==29828== Releasing lock... [2025-03-28 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:45:21] Production.INFO: 29 MB #Memory Used# [2025-03-28 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:46:05 [end_date_ymd] => 2025-03-28 06:46:05 [RateCDR] => 1 ) [2025-03-28 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:46:05' and `end` < '2025-03-28 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:46:17] Production.INFO: count ==104 [2025-03-28 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:46:05 - End Time 2025-03-28 06:46:05 [2025-03-28 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779763', 'tblTempUsageDetail_20' ) start [2025-03-28 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779763', 'tblTempUsageDetail_20' ) end [2025-03-28 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779763', 'tblTempVendorCDR_20' ) start [2025-03-28 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779763', 'tblTempVendorCDR_20' ) end [2025-03-28 06:46:17] Production.INFO: ProcessCDR(1,14779763,1,1,2) [2025-03-28 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779763', 'tblTempUsageDetail_20' ) start [2025-03-28 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779763', 'tblTempUsageDetail_20' ) end [2025-03-28 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:46:22] Production.INFO: ==29906== Releasing lock... [2025-03-28 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:46:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:47:05 [end_date_ymd] => 2025-03-28 06:47:05 [RateCDR] => 1 ) [2025-03-28 06: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-28 03:47:05' and `end` < '2025-03-28 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-28 06:47:18] Production.INFO: count ==104 [2025-03-28 06:47:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:47:05 - End Time 2025-03-28 06:47:05 [2025-03-28 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779768', 'tblTempUsageDetail_20' ) start [2025-03-28 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779768', 'tblTempUsageDetail_20' ) end [2025-03-28 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779768', 'tblTempVendorCDR_20' ) start [2025-03-28 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779768', 'tblTempVendorCDR_20' ) end [2025-03-28 06:47:18] Production.INFO: ProcessCDR(1,14779768,1,1,2) [2025-03-28 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779768', 'tblTempUsageDetail_20' ) start [2025-03-28 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779768', 'tblTempUsageDetail_20' ) end [2025-03-28 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:47:21] Production.INFO: ==29980== Releasing lock... [2025-03-28 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:48:06 [end_date_ymd] => 2025-03-28 06:48:06 [RateCDR] => 1 ) [2025-03-28 06:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:48:06' and `end` < '2025-03-28 06:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:48:18] Production.INFO: count ==107 [2025-03-28 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:48:06 - End Time 2025-03-28 06:48:06 [2025-03-28 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779773', 'tblTempUsageDetail_20' ) start [2025-03-28 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779773', 'tblTempUsageDetail_20' ) end [2025-03-28 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779773', 'tblTempVendorCDR_20' ) start [2025-03-28 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779773', 'tblTempVendorCDR_20' ) end [2025-03-28 06:48:18] Production.INFO: ProcessCDR(1,14779773,1,1,2) [2025-03-28 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779773', 'tblTempUsageDetail_20' ) start [2025-03-28 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779773', 'tblTempUsageDetail_20' ) end [2025-03-28 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:48:21] Production.INFO: ==30055== Releasing lock... [2025-03-28 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:49:05 [end_date_ymd] => 2025-03-28 06:49:05 [RateCDR] => 1 ) [2025-03-28 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:49:05' and `end` < '2025-03-28 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:49:17] Production.INFO: count ==107 [2025-03-28 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:49:05 - End Time 2025-03-28 06:49:05 [2025-03-28 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779778', 'tblTempUsageDetail_20' ) start [2025-03-28 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779778', 'tblTempUsageDetail_20' ) end [2025-03-28 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779778', 'tblTempVendorCDR_20' ) start [2025-03-28 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779778', 'tblTempVendorCDR_20' ) end [2025-03-28 06:49:18] Production.INFO: ProcessCDR(1,14779778,1,1,2) [2025-03-28 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779778', 'tblTempUsageDetail_20' ) start [2025-03-28 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779778', 'tblTempUsageDetail_20' ) end [2025-03-28 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:49:21] Production.INFO: ==30129== Releasing lock... [2025-03-28 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:50:06 [end_date_ymd] => 2025-03-28 06:50:06 [RateCDR] => 1 ) [2025-03-28 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:50:06' and `end` < '2025-03-28 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:50:18] Production.INFO: count ==115 [2025-03-28 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:50:06 - End Time 2025-03-28 06:50:06 [2025-03-28 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779784', 'tblTempUsageDetail_20' ) start [2025-03-28 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779784', 'tblTempUsageDetail_20' ) end [2025-03-28 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779784', 'tblTempVendorCDR_20' ) start [2025-03-28 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779784', 'tblTempVendorCDR_20' ) end [2025-03-28 06:50:19] Production.INFO: ProcessCDR(1,14779784,1,1,2) [2025-03-28 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779784', 'tblTempUsageDetail_20' ) start [2025-03-28 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779784', 'tblTempUsageDetail_20' ) end [2025-03-28 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:50:22] Production.INFO: ==30205== Releasing lock... [2025-03-28 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:51:05 [end_date_ymd] => 2025-03-28 06:51:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:51:05' and `end` < '2025-03-28 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-28 06:51:17] Production.INFO: count ==114 [2025-03-28 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:51:05 - End Time 2025-03-28 06:51:05 [2025-03-28 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779789', 'tblTempUsageDetail_20' ) start [2025-03-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779789', 'tblTempUsageDetail_20' ) end [2025-03-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779789', 'tblTempVendorCDR_20' ) start [2025-03-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779789', 'tblTempVendorCDR_20' ) end [2025-03-28 06:51:17] Production.INFO: ProcessCDR(1,14779789,1,1,2) [2025-03-28 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779789', 'tblTempUsageDetail_20' ) start [2025-03-28 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779789', 'tblTempUsageDetail_20' ) end [2025-03-28 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:51:22] Production.INFO: ==30288== Releasing lock... [2025-03-28 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:52:05 [end_date_ymd] => 2025-03-28 06:52:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:52:05' and `end` < '2025-03-28 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-28 06:52:17] Production.INFO: count ==114 [2025-03-28 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:52:05 - End Time 2025-03-28 06:52:05 [2025-03-28 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779794', 'tblTempUsageDetail_20' ) start [2025-03-28 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779794', 'tblTempUsageDetail_20' ) end [2025-03-28 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779794', 'tblTempVendorCDR_20' ) start [2025-03-28 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779794', 'tblTempVendorCDR_20' ) end [2025-03-28 06:52:17] Production.INFO: ProcessCDR(1,14779794,1,1,2) [2025-03-28 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779794', 'tblTempUsageDetail_20' ) start [2025-03-28 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779794', 'tblTempUsageDetail_20' ) end [2025-03-28 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:52:20] Production.INFO: ==30360== Releasing lock... [2025-03-28 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:52:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:53:04 [end_date_ymd] => 2025-03-28 06:53:04 [RateCDR] => 1 ) [2025-03-28 06: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-28 03:53:04' and `end` < '2025-03-28 06: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-28 06:53:17] Production.INFO: count ==112 [2025-03-28 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:53:04 - End Time 2025-03-28 06:53:04 [2025-03-28 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779799', 'tblTempUsageDetail_20' ) start [2025-03-28 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779799', 'tblTempUsageDetail_20' ) end [2025-03-28 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779799', 'tblTempVendorCDR_20' ) start [2025-03-28 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779799', 'tblTempVendorCDR_20' ) end [2025-03-28 06:53:17] Production.INFO: ProcessCDR(1,14779799,1,1,2) [2025-03-28 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779799', 'tblTempUsageDetail_20' ) start [2025-03-28 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779799', 'tblTempUsageDetail_20' ) end [2025-03-28 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:53:20] Production.INFO: ==30487== Releasing lock... [2025-03-28 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:53:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:54:05 [end_date_ymd] => 2025-03-28 06:54:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:54:05' and `end` < '2025-03-28 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-28 06:54:17] Production.INFO: count ==112 [2025-03-28 06:54:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:54:05 - End Time 2025-03-28 06:54:05 [2025-03-28 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779804', 'tblTempUsageDetail_20' ) start [2025-03-28 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779804', 'tblTempUsageDetail_20' ) end [2025-03-28 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779804', 'tblTempVendorCDR_20' ) start [2025-03-28 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779804', 'tblTempVendorCDR_20' ) end [2025-03-28 06:54:18] Production.INFO: ProcessCDR(1,14779804,1,1,2) [2025-03-28 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779804', 'tblTempUsageDetail_20' ) start [2025-03-28 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779804', 'tblTempUsageDetail_20' ) end [2025-03-28 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:54:21] Production.INFO: ==30571== Releasing lock... [2025-03-28 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:55:06 [end_date_ymd] => 2025-03-28 06:55:06 [RateCDR] => 1 ) [2025-03-28 06:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:55:06' and `end` < '2025-03-28 06:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:55:18] Production.INFO: count ==112 [2025-03-28 06:55:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:55:06 - End Time 2025-03-28 06:55:06 [2025-03-28 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779809', 'tblTempUsageDetail_20' ) start [2025-03-28 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779809', 'tblTempUsageDetail_20' ) end [2025-03-28 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779809', 'tblTempVendorCDR_20' ) start [2025-03-28 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779809', 'tblTempVendorCDR_20' ) end [2025-03-28 06:55:18] Production.INFO: ProcessCDR(1,14779809,1,1,2) [2025-03-28 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779809', 'tblTempUsageDetail_20' ) start [2025-03-28 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779809', 'tblTempUsageDetail_20' ) end [2025-03-28 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:55:21] Production.INFO: ==30647== Releasing lock... [2025-03-28 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:56:06 [end_date_ymd] => 2025-03-28 06:56:06 [RateCDR] => 1 ) [2025-03-28 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:56:06' and `end` < '2025-03-28 06:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:56:18] Production.INFO: count ==112 [2025-03-28 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:56:06 - End Time 2025-03-28 06:56:06 [2025-03-28 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779814', 'tblTempUsageDetail_20' ) start [2025-03-28 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779814', 'tblTempUsageDetail_20' ) end [2025-03-28 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779814', 'tblTempVendorCDR_20' ) start [2025-03-28 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779814', 'tblTempVendorCDR_20' ) end [2025-03-28 06:56:18] Production.INFO: ProcessCDR(1,14779814,1,1,2) [2025-03-28 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779814', 'tblTempUsageDetail_20' ) start [2025-03-28 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779814', 'tblTempUsageDetail_20' ) end [2025-03-28 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:56:21] Production.INFO: ==30732== Releasing lock... [2025-03-28 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:57:06 [end_date_ymd] => 2025-03-28 06:57:06 [RateCDR] => 1 ) [2025-03-28 06:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:57:06' and `end` < '2025-03-28 06:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:57:18] Production.INFO: count ==112 [2025-03-28 06:57:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:57:06 - End Time 2025-03-28 06:57:06 [2025-03-28 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779819', 'tblTempUsageDetail_20' ) start [2025-03-28 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779819', 'tblTempUsageDetail_20' ) end [2025-03-28 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779819', 'tblTempVendorCDR_20' ) start [2025-03-28 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779819', 'tblTempVendorCDR_20' ) end [2025-03-28 06:57:18] Production.INFO: ProcessCDR(1,14779819,1,1,2) [2025-03-28 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779819', 'tblTempUsageDetail_20' ) start [2025-03-28 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779819', 'tblTempUsageDetail_20' ) end [2025-03-28 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:57:21] Production.INFO: ==30819== Releasing lock... [2025-03-28 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:58:05 [end_date_ymd] => 2025-03-28 06:58:05 [RateCDR] => 1 ) [2025-03-28 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-28 03:58:05' and `end` < '2025-03-28 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-28 06:58:17] Production.INFO: count ==113 [2025-03-28 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-28 03:58:05 - End Time 2025-03-28 06:58:05 [2025-03-28 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779824', 'tblTempUsageDetail_20' ) start [2025-03-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779824', 'tblTempUsageDetail_20' ) end [2025-03-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779824', 'tblTempVendorCDR_20' ) start [2025-03-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779824', 'tblTempVendorCDR_20' ) end [2025-03-28 06:58:17] Production.INFO: ProcessCDR(1,14779824,1,1,2) [2025-03-28 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779824', 'tblTempUsageDetail_20' ) start [2025-03-28 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779824', 'tblTempUsageDetail_20' ) end [2025-03-28 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:58:22] Production.INFO: ==30933== Releasing lock... [2025-03-28 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 06:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 03:59:06 [end_date_ymd] => 2025-03-28 06:59:06 [RateCDR] => 1 ) [2025-03-28 06:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 03:59:06' and `end` < '2025-03-28 06:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 06:59:18] Production.INFO: count ==120 [2025-03-28 06:59:18] Production.ERROR: pbx CDR StartTime 2025-03-28 03:59:06 - End Time 2025-03-28 06:59:06 [2025-03-28 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779829', 'tblTempUsageDetail_20' ) start [2025-03-28 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779829', 'tblTempUsageDetail_20' ) end [2025-03-28 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779829', 'tblTempVendorCDR_20' ) start [2025-03-28 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779829', 'tblTempVendorCDR_20' ) end [2025-03-28 06:59:18] Production.INFO: ProcessCDR(1,14779829,1,1,2) [2025-03-28 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 06:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779829', 'tblTempUsageDetail_20' ) start [2025-03-28 06:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779829', 'tblTempUsageDetail_20' ) end [2025-03-28 06:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 06:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 06:59:23] Production.INFO: ==31058== Releasing lock... [2025-03-28 06:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 06:59:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:00:05 [end_date_ymd] => 2025-03-28 07:00:05 [RateCDR] => 1 ) [2025-03-28 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:00:05' and `end` < '2025-03-28 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:00:18] Production.INFO: count ==118 [2025-03-28 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:00:05 - End Time 2025-03-28 07:00:05 [2025-03-28 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779834', 'tblTempUsageDetail_20' ) start [2025-03-28 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779834', 'tblTempUsageDetail_20' ) end [2025-03-28 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779834', 'tblTempVendorCDR_20' ) start [2025-03-28 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779834', 'tblTempVendorCDR_20' ) end [2025-03-28 07:00:18] Production.INFO: ProcessCDR(1,14779834,1,1,2) [2025-03-28 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779834', 'tblTempUsageDetail_20' ) start [2025-03-28 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779834', 'tblTempUsageDetail_20' ) end [2025-03-28 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:00:21] Production.INFO: ==31149== Releasing lock... [2025-03-28 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:00:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:01:05 [end_date_ymd] => 2025-03-28 07:01:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:01:05' and `end` < '2025-03-28 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-28 07:01:17] Production.INFO: count ==118 [2025-03-28 07:01:17] Production.ERROR: pbx CDR StartTime 2025-03-28 04:01:05 - End Time 2025-03-28 07:01:05 [2025-03-28 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779840', 'tblTempUsageDetail_20' ) start [2025-03-28 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779840', 'tblTempUsageDetail_20' ) end [2025-03-28 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779840', 'tblTempVendorCDR_20' ) start [2025-03-28 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779840', 'tblTempVendorCDR_20' ) end [2025-03-28 07:01:17] Production.INFO: ProcessCDR(1,14779840,1,1,2) [2025-03-28 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779840', 'tblTempUsageDetail_20' ) start [2025-03-28 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779840', 'tblTempUsageDetail_20' ) end [2025-03-28 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:01:21] Production.INFO: ==31239== Releasing lock... [2025-03-28 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:02:05 [end_date_ymd] => 2025-03-28 07:02:05 [RateCDR] => 1 ) [2025-03-28 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:02:05' and `end` < '2025-03-28 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:02:18] Production.INFO: count ==118 [2025-03-28 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:02:05 - End Time 2025-03-28 07:02:05 [2025-03-28 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779845', 'tblTempUsageDetail_20' ) start [2025-03-28 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779845', 'tblTempUsageDetail_20' ) end [2025-03-28 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779845', 'tblTempVendorCDR_20' ) start [2025-03-28 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779845', 'tblTempVendorCDR_20' ) end [2025-03-28 07:02:18] Production.INFO: ProcessCDR(1,14779845,1,1,2) [2025-03-28 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779845', 'tblTempUsageDetail_20' ) start [2025-03-28 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779845', 'tblTempUsageDetail_20' ) end [2025-03-28 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:02:22] Production.INFO: ==31396== Releasing lock... [2025-03-28 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:03:06 [end_date_ymd] => 2025-03-28 07:03:06 [RateCDR] => 1 ) [2025-03-28 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:03:06' and `end` < '2025-03-28 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:03:19] Production.INFO: count ==119 [2025-03-28 07:03:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:03:06 - End Time 2025-03-28 07:03:06 [2025-03-28 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779850', 'tblTempUsageDetail_20' ) start [2025-03-28 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779850', 'tblTempUsageDetail_20' ) end [2025-03-28 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779850', 'tblTempVendorCDR_20' ) start [2025-03-28 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779850', 'tblTempVendorCDR_20' ) end [2025-03-28 07:03:19] Production.INFO: ProcessCDR(1,14779850,1,1,2) [2025-03-28 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779850', 'tblTempUsageDetail_20' ) start [2025-03-28 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779850', 'tblTempUsageDetail_20' ) end [2025-03-28 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:03:25] Production.INFO: ==31475== Releasing lock... [2025-03-28 07:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:03:25] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:04:07 [end_date_ymd] => 2025-03-28 07:04:07 [RateCDR] => 1 ) [2025-03-28 07:04: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-28 04:04:07' and `end` < '2025-03-28 07:04: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-28 07:04:20] Production.INFO: count ==118 [2025-03-28 07:04:20] Production.ERROR: pbx CDR StartTime 2025-03-28 04:04:07 - End Time 2025-03-28 07:04:07 [2025-03-28 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779855', 'tblTempUsageDetail_20' ) start [2025-03-28 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779855', 'tblTempUsageDetail_20' ) end [2025-03-28 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779855', 'tblTempVendorCDR_20' ) start [2025-03-28 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779855', 'tblTempVendorCDR_20' ) end [2025-03-28 07:04:20] Production.INFO: ProcessCDR(1,14779855,1,1,2) [2025-03-28 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779855', 'tblTempUsageDetail_20' ) start [2025-03-28 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779855', 'tblTempUsageDetail_20' ) end [2025-03-28 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:04:23] Production.INFO: ==31555== Releasing lock... [2025-03-28 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:04:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:05:05 [end_date_ymd] => 2025-03-28 07:05:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:05:05' and `end` < '2025-03-28 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-28 07:05:18] Production.INFO: count ==118 [2025-03-28 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:05:05 - End Time 2025-03-28 07:05:05 [2025-03-28 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779860', 'tblTempUsageDetail_20' ) start [2025-03-28 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779860', 'tblTempUsageDetail_20' ) end [2025-03-28 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779860', 'tblTempVendorCDR_20' ) start [2025-03-28 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779860', 'tblTempVendorCDR_20' ) end [2025-03-28 07:05:18] Production.INFO: ProcessCDR(1,14779860,1,1,2) [2025-03-28 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779860', 'tblTempUsageDetail_20' ) start [2025-03-28 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779860', 'tblTempUsageDetail_20' ) end [2025-03-28 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:05:22] Production.INFO: ==31712== Releasing lock... [2025-03-28 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:06:05 [end_date_ymd] => 2025-03-28 07:06:05 [RateCDR] => 1 ) [2025-03-28 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:06:05' and `end` < '2025-03-28 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:06:18] Production.INFO: count ==118 [2025-03-28 07:06:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:06:05 - End Time 2025-03-28 07:06:05 [2025-03-28 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779865', 'tblTempUsageDetail_20' ) start [2025-03-28 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779865', 'tblTempUsageDetail_20' ) end [2025-03-28 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779865', 'tblTempVendorCDR_20' ) start [2025-03-28 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779865', 'tblTempVendorCDR_20' ) end [2025-03-28 07:06:19] Production.INFO: ProcessCDR(1,14779865,1,1,2) [2025-03-28 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779865', 'tblTempUsageDetail_20' ) start [2025-03-28 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779865', 'tblTempUsageDetail_20' ) end [2025-03-28 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:06:22] Production.INFO: ==31790== Releasing lock... [2025-03-28 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:07:05 [end_date_ymd] => 2025-03-28 07:07:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:07:05' and `end` < '2025-03-28 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-28 07:07:19] Production.INFO: count ==118 [2025-03-28 07:07:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:07:05 - End Time 2025-03-28 07:07:05 [2025-03-28 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779870', 'tblTempUsageDetail_20' ) start [2025-03-28 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779870', 'tblTempUsageDetail_20' ) end [2025-03-28 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779870', 'tblTempVendorCDR_20' ) start [2025-03-28 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779870', 'tblTempVendorCDR_20' ) end [2025-03-28 07:07:19] Production.INFO: ProcessCDR(1,14779870,1,1,2) [2025-03-28 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779870', 'tblTempUsageDetail_20' ) start [2025-03-28 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779870', 'tblTempUsageDetail_20' ) end [2025-03-28 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:07:22] Production.INFO: ==31876== Releasing lock... [2025-03-28 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:08:05 [end_date_ymd] => 2025-03-28 07:08:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:08:05' and `end` < '2025-03-28 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-28 07:08:18] Production.INFO: count ==118 [2025-03-28 07:08:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:08:05 - End Time 2025-03-28 07:08:05 [2025-03-28 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779875', 'tblTempUsageDetail_20' ) start [2025-03-28 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779875', 'tblTempUsageDetail_20' ) end [2025-03-28 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779875', 'tblTempVendorCDR_20' ) start [2025-03-28 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779875', 'tblTempVendorCDR_20' ) end [2025-03-28 07:08:18] Production.INFO: ProcessCDR(1,14779875,1,1,2) [2025-03-28 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779875', 'tblTempUsageDetail_20' ) start [2025-03-28 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779875', 'tblTempUsageDetail_20' ) end [2025-03-28 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:08:21] Production.INFO: ==31992== Releasing lock... [2025-03-28 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:09:05 [end_date_ymd] => 2025-03-28 07:09:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:09:05' and `end` < '2025-03-28 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-28 07:09:19] Production.INFO: count ==118 [2025-03-28 07:09:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:09:05 - End Time 2025-03-28 07:09:05 [2025-03-28 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779880', 'tblTempUsageDetail_20' ) start [2025-03-28 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779880', 'tblTempUsageDetail_20' ) end [2025-03-28 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779880', 'tblTempVendorCDR_20' ) start [2025-03-28 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779880', 'tblTempVendorCDR_20' ) end [2025-03-28 07:09:19] Production.INFO: ProcessCDR(1,14779880,1,1,2) [2025-03-28 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779880', 'tblTempUsageDetail_20' ) start [2025-03-28 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779880', 'tblTempUsageDetail_20' ) end [2025-03-28 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:09:22] Production.INFO: ==32148== Releasing lock... [2025-03-28 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:10:06 [end_date_ymd] => 2025-03-28 07:10:06 [RateCDR] => 1 ) [2025-03-28 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:10:06' and `end` < '2025-03-28 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:10:19] Production.INFO: count ==118 [2025-03-28 07:10:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:10:06 - End Time 2025-03-28 07:10:06 [2025-03-28 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779886', 'tblTempUsageDetail_20' ) start [2025-03-28 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779886', 'tblTempUsageDetail_20' ) end [2025-03-28 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779886', 'tblTempVendorCDR_20' ) start [2025-03-28 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779886', 'tblTempVendorCDR_20' ) end [2025-03-28 07:10:19] Production.INFO: ProcessCDR(1,14779886,1,1,2) [2025-03-28 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779886', 'tblTempUsageDetail_20' ) start [2025-03-28 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779886', 'tblTempUsageDetail_20' ) end [2025-03-28 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:10:22] Production.INFO: ==32229== Releasing lock... [2025-03-28 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:11:05 [end_date_ymd] => 2025-03-28 07:11:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:11:05' and `end` < '2025-03-28 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-28 07:11:20] Production.INFO: count ==123 [2025-03-28 07:11:20] Production.ERROR: pbx CDR StartTime 2025-03-28 04:11:05 - End Time 2025-03-28 07:11:05 [2025-03-28 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779891', 'tblTempUsageDetail_20' ) start [2025-03-28 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779891', 'tblTempUsageDetail_20' ) end [2025-03-28 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779891', 'tblTempVendorCDR_20' ) start [2025-03-28 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779891', 'tblTempVendorCDR_20' ) end [2025-03-28 07:11:20] Production.INFO: ProcessCDR(1,14779891,1,1,2) [2025-03-28 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779891', 'tblTempUsageDetail_20' ) start [2025-03-28 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779891', 'tblTempUsageDetail_20' ) end [2025-03-28 07:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:11:24] Production.INFO: ==32311== Releasing lock... [2025-03-28 07:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:11:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:12:06 [end_date_ymd] => 2025-03-28 07:12:06 [RateCDR] => 1 ) [2025-03-28 07:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:12:06' and `end` < '2025-03-28 07:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:12:19] Production.INFO: count ==123 [2025-03-28 07:12:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:12:06 - End Time 2025-03-28 07:12:06 [2025-03-28 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779896', 'tblTempUsageDetail_20' ) start [2025-03-28 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779896', 'tblTempUsageDetail_20' ) end [2025-03-28 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779896', 'tblTempVendorCDR_20' ) start [2025-03-28 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779896', 'tblTempVendorCDR_20' ) end [2025-03-28 07:12:19] Production.INFO: ProcessCDR(1,14779896,1,1,2) [2025-03-28 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779896', 'tblTempUsageDetail_20' ) start [2025-03-28 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779896', 'tblTempUsageDetail_20' ) end [2025-03-28 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:12:23] Production.INFO: ==32470== Releasing lock... [2025-03-28 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:12:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:13:04 [end_date_ymd] => 2025-03-28 07:13:04 [RateCDR] => 1 ) [2025-03-28 07: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-28 04:13:04' and `end` < '2025-03-28 07: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-28 07:13:18] Production.INFO: count ==123 [2025-03-28 07:13:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:13:04 - End Time 2025-03-28 07:13:04 [2025-03-28 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779901', 'tblTempUsageDetail_20' ) start [2025-03-28 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779901', 'tblTempUsageDetail_20' ) end [2025-03-28 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779901', 'tblTempVendorCDR_20' ) start [2025-03-28 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779901', 'tblTempVendorCDR_20' ) end [2025-03-28 07:13:18] Production.INFO: ProcessCDR(1,14779901,1,1,2) [2025-03-28 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779901', 'tblTempUsageDetail_20' ) start [2025-03-28 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779901', 'tblTempUsageDetail_20' ) end [2025-03-28 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:13:21] Production.INFO: ==32548== Releasing lock... [2025-03-28 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:14:05 [end_date_ymd] => 2025-03-28 07:14:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:14:05' and `end` < '2025-03-28 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-28 07:14:19] Production.INFO: count ==122 [2025-03-28 07:14:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:14:05 - End Time 2025-03-28 07:14:05 [2025-03-28 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779906', 'tblTempUsageDetail_20' ) start [2025-03-28 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779906', 'tblTempUsageDetail_20' ) end [2025-03-28 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779906', 'tblTempVendorCDR_20' ) start [2025-03-28 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779906', 'tblTempVendorCDR_20' ) end [2025-03-28 07:14:19] Production.INFO: ProcessCDR(1,14779906,1,1,2) [2025-03-28 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779906', 'tblTempUsageDetail_20' ) start [2025-03-28 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779906', 'tblTempUsageDetail_20' ) end [2025-03-28 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:14:22] Production.INFO: ==32624== Releasing lock... [2025-03-28 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:15:06 [end_date_ymd] => 2025-03-28 07:15:06 [RateCDR] => 1 ) [2025-03-28 07:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:15:06' and `end` < '2025-03-28 07:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:15:19] Production.INFO: count ==119 [2025-03-28 07:15:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:15:06 - End Time 2025-03-28 07:15:06 [2025-03-28 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779911', 'tblTempUsageDetail_20' ) start [2025-03-28 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779911', 'tblTempUsageDetail_20' ) end [2025-03-28 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779911', 'tblTempVendorCDR_20' ) start [2025-03-28 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779911', 'tblTempVendorCDR_20' ) end [2025-03-28 07:15:19] Production.INFO: ProcessCDR(1,14779911,1,1,2) [2025-03-28 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779911', 'tblTempUsageDetail_20' ) start [2025-03-28 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779911', 'tblTempUsageDetail_20' ) end [2025-03-28 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:15:23] Production.INFO: ==32754== Releasing lock... [2025-03-28 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:15:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:16:05 [end_date_ymd] => 2025-03-28 07:16:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:16:05' and `end` < '2025-03-28 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-28 07:16:17] Production.INFO: count ==119 [2025-03-28 07:16:17] Production.ERROR: pbx CDR StartTime 2025-03-28 04:16:05 - End Time 2025-03-28 07:16:05 [2025-03-28 07:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779916', 'tblTempUsageDetail_20' ) start [2025-03-28 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779916', 'tblTempUsageDetail_20' ) end [2025-03-28 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779916', 'tblTempVendorCDR_20' ) start [2025-03-28 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779916', 'tblTempVendorCDR_20' ) end [2025-03-28 07:16:17] Production.INFO: ProcessCDR(1,14779916,1,1,2) [2025-03-28 07:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779916', 'tblTempUsageDetail_20' ) start [2025-03-28 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779916', 'tblTempUsageDetail_20' ) end [2025-03-28 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:16:21] Production.INFO: ==421== Releasing lock... [2025-03-28 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:17:06 [end_date_ymd] => 2025-03-28 07:17:06 [RateCDR] => 1 ) [2025-03-28 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:17:06' and `end` < '2025-03-28 07:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:17:19] Production.INFO: count ==123 [2025-03-28 07:17:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:17:06 - End Time 2025-03-28 07:17:06 [2025-03-28 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779921', 'tblTempUsageDetail_20' ) start [2025-03-28 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779921', 'tblTempUsageDetail_20' ) end [2025-03-28 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779921', 'tblTempVendorCDR_20' ) start [2025-03-28 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779921', 'tblTempVendorCDR_20' ) end [2025-03-28 07:17:19] Production.INFO: ProcessCDR(1,14779921,1,1,2) [2025-03-28 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779921', 'tblTempUsageDetail_20' ) start [2025-03-28 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779921', 'tblTempUsageDetail_20' ) end [2025-03-28 07:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:17:25] Production.INFO: ==503== Releasing lock... [2025-03-28 07:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:17:25] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:18:05 [end_date_ymd] => 2025-03-28 07:18:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:18:05' and `end` < '2025-03-28 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-28 07:18:18] Production.INFO: count ==125 [2025-03-28 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:18:05 - End Time 2025-03-28 07:18:05 [2025-03-28 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779926', 'tblTempUsageDetail_20' ) start [2025-03-28 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779926', 'tblTempUsageDetail_20' ) end [2025-03-28 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779926', 'tblTempVendorCDR_20' ) start [2025-03-28 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779926', 'tblTempVendorCDR_20' ) end [2025-03-28 07:18:18] Production.INFO: ProcessCDR(1,14779926,1,1,2) [2025-03-28 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779926', 'tblTempUsageDetail_20' ) start [2025-03-28 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779926', 'tblTempUsageDetail_20' ) end [2025-03-28 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:18:22] Production.INFO: ==584== Releasing lock... [2025-03-28 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:18:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:19:06 [end_date_ymd] => 2025-03-28 07:19:06 [RateCDR] => 1 ) [2025-03-28 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:19:06' and `end` < '2025-03-28 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:19:19] Production.INFO: count ==125 [2025-03-28 07:19:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:19:06 - End Time 2025-03-28 07:19:06 [2025-03-28 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779931', 'tblTempUsageDetail_20' ) start [2025-03-28 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779931', 'tblTempUsageDetail_20' ) end [2025-03-28 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779931', 'tblTempVendorCDR_20' ) start [2025-03-28 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779931', 'tblTempVendorCDR_20' ) end [2025-03-28 07:19:19] Production.INFO: ProcessCDR(1,14779931,1,1,2) [2025-03-28 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779931', 'tblTempUsageDetail_20' ) start [2025-03-28 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779931', 'tblTempUsageDetail_20' ) end [2025-03-28 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:19:22] Production.INFO: ==690== Releasing lock... [2025-03-28 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:20:06 [end_date_ymd] => 2025-03-28 07:20:06 [RateCDR] => 1 ) [2025-03-28 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:20:06' and `end` < '2025-03-28 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:20:19] Production.INFO: count ==125 [2025-03-28 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:20:06 - End Time 2025-03-28 07:20:06 [2025-03-28 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779937', 'tblTempUsageDetail_20' ) start [2025-03-28 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779937', 'tblTempUsageDetail_20' ) end [2025-03-28 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779937', 'tblTempVendorCDR_20' ) start [2025-03-28 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779937', 'tblTempVendorCDR_20' ) end [2025-03-28 07:20:19] Production.INFO: ProcessCDR(1,14779937,1,1,2) [2025-03-28 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779937', 'tblTempUsageDetail_20' ) start [2025-03-28 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779937', 'tblTempUsageDetail_20' ) end [2025-03-28 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:20:23] Production.INFO: ==775== Releasing lock... [2025-03-28 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:20:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:21:06 [end_date_ymd] => 2025-03-28 07:21:06 [RateCDR] => 1 ) [2025-03-28 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-28 04:21:06' and `end` < '2025-03-28 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-28 07:21:19] Production.INFO: count ==125 [2025-03-28 07:21:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:21:06 - End Time 2025-03-28 07:21:06 [2025-03-28 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779942', 'tblTempUsageDetail_20' ) start [2025-03-28 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779942', 'tblTempUsageDetail_20' ) end [2025-03-28 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779942', 'tblTempVendorCDR_20' ) start [2025-03-28 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779942', 'tblTempVendorCDR_20' ) end [2025-03-28 07:21:19] Production.INFO: ProcessCDR(1,14779942,1,1,2) [2025-03-28 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779942', 'tblTempUsageDetail_20' ) start [2025-03-28 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779942', 'tblTempUsageDetail_20' ) end [2025-03-28 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:21:23] Production.INFO: ==856== Releasing lock... [2025-03-28 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:21:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:22:06 [end_date_ymd] => 2025-03-28 07:22:06 [RateCDR] => 1 ) [2025-03-28 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-28 04:22:06' and `end` < '2025-03-28 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-28 07:22:18] Production.INFO: count ==125 [2025-03-28 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:22:06 - End Time 2025-03-28 07:22:06 [2025-03-28 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779947', 'tblTempUsageDetail_20' ) start [2025-03-28 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779947', 'tblTempUsageDetail_20' ) end [2025-03-28 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779947', 'tblTempVendorCDR_20' ) start [2025-03-28 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779947', 'tblTempVendorCDR_20' ) end [2025-03-28 07:22:18] Production.INFO: ProcessCDR(1,14779947,1,1,2) [2025-03-28 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779947', 'tblTempUsageDetail_20' ) start [2025-03-28 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779947', 'tblTempUsageDetail_20' ) end [2025-03-28 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:22:22] Production.INFO: ==935== Releasing lock... [2025-03-28 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:22:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:23:06 [end_date_ymd] => 2025-03-28 07:23:06 [RateCDR] => 1 ) [2025-03-28 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-28 04:23:06' and `end` < '2025-03-28 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-28 07:23:18] Production.INFO: count ==129 [2025-03-28 07:23:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:23:06 - End Time 2025-03-28 07:23:06 [2025-03-28 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779952', 'tblTempUsageDetail_20' ) start [2025-03-28 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779952', 'tblTempUsageDetail_20' ) end [2025-03-28 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779952', 'tblTempVendorCDR_20' ) start [2025-03-28 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779952', 'tblTempVendorCDR_20' ) end [2025-03-28 07:23:19] Production.INFO: ProcessCDR(1,14779952,1,1,2) [2025-03-28 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779952', 'tblTempUsageDetail_20' ) start [2025-03-28 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779952', 'tblTempUsageDetail_20' ) end [2025-03-28 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:23:22] Production.INFO: ==1008== Releasing lock... [2025-03-28 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:24:06 [end_date_ymd] => 2025-03-28 07:24:06 [RateCDR] => 1 ) [2025-03-28 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-28 04:24:06' and `end` < '2025-03-28 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-28 07:24:19] Production.INFO: count ==129 [2025-03-28 07:24:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:24:06 - End Time 2025-03-28 07:24:06 [2025-03-28 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779957', 'tblTempUsageDetail_20' ) start [2025-03-28 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779957', 'tblTempUsageDetail_20' ) end [2025-03-28 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779957', 'tblTempVendorCDR_20' ) start [2025-03-28 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779957', 'tblTempVendorCDR_20' ) end [2025-03-28 07:24:19] Production.INFO: ProcessCDR(1,14779957,1,1,2) [2025-03-28 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779957', 'tblTempUsageDetail_20' ) start [2025-03-28 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779957', 'tblTempUsageDetail_20' ) end [2025-03-28 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:24:22] Production.INFO: ==1120== Releasing lock... [2025-03-28 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:25:05 [end_date_ymd] => 2025-03-28 07:25:05 [RateCDR] => 1 ) [2025-03-28 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:25:05' and `end` < '2025-03-28 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:25:18] Production.INFO: count ==129 [2025-03-28 07:25:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:25:05 - End Time 2025-03-28 07:25:05 [2025-03-28 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779962', 'tblTempUsageDetail_20' ) start [2025-03-28 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779962', 'tblTempUsageDetail_20' ) end [2025-03-28 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779962', 'tblTempVendorCDR_20' ) start [2025-03-28 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779962', 'tblTempVendorCDR_20' ) end [2025-03-28 07:25:18] Production.INFO: ProcessCDR(1,14779962,1,1,2) [2025-03-28 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779962', 'tblTempUsageDetail_20' ) start [2025-03-28 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779962', 'tblTempUsageDetail_20' ) end [2025-03-28 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:25:22] Production.INFO: ==1201== Releasing lock... [2025-03-28 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:26:06 [end_date_ymd] => 2025-03-28 07:26:06 [RateCDR] => 1 ) [2025-03-28 07:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:26:06' and `end` < '2025-03-28 07:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:26:18] Production.INFO: count ==129 [2025-03-28 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:26:06 - End Time 2025-03-28 07:26:06 [2025-03-28 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779967', 'tblTempUsageDetail_20' ) start [2025-03-28 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779967', 'tblTempUsageDetail_20' ) end [2025-03-28 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779967', 'tblTempVendorCDR_20' ) start [2025-03-28 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779967', 'tblTempVendorCDR_20' ) end [2025-03-28 07:26:18] Production.INFO: ProcessCDR(1,14779967,1,1,2) [2025-03-28 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779967', 'tblTempUsageDetail_20' ) start [2025-03-28 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779967', 'tblTempUsageDetail_20' ) end [2025-03-28 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:26:22] Production.INFO: ==1291== Releasing lock... [2025-03-28 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:27:06 [end_date_ymd] => 2025-03-28 07:27:06 [RateCDR] => 1 ) [2025-03-28 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-28 04:27:06' and `end` < '2025-03-28 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-28 07:27:18] Production.INFO: count ==129 [2025-03-28 07:27:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:27:06 - End Time 2025-03-28 07:27:06 [2025-03-28 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779972', 'tblTempUsageDetail_20' ) start [2025-03-28 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779972', 'tblTempUsageDetail_20' ) end [2025-03-28 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779972', 'tblTempVendorCDR_20' ) start [2025-03-28 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779972', 'tblTempVendorCDR_20' ) end [2025-03-28 07:27:18] Production.INFO: ProcessCDR(1,14779972,1,1,2) [2025-03-28 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779972', 'tblTempUsageDetail_20' ) start [2025-03-28 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779972', 'tblTempUsageDetail_20' ) end [2025-03-28 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:27:22] Production.INFO: ==1363== Releasing lock... [2025-03-28 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:28:05 [end_date_ymd] => 2025-03-28 07:28:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:28:05' and `end` < '2025-03-28 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-28 07:28:18] Production.INFO: count ==125 [2025-03-28 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:28:05 - End Time 2025-03-28 07:28:05 [2025-03-28 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779977', 'tblTempUsageDetail_20' ) start [2025-03-28 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779977', 'tblTempUsageDetail_20' ) end [2025-03-28 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779977', 'tblTempVendorCDR_20' ) start [2025-03-28 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779977', 'tblTempVendorCDR_20' ) end [2025-03-28 07:28:18] Production.INFO: ProcessCDR(1,14779977,1,1,2) [2025-03-28 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779977', 'tblTempUsageDetail_20' ) start [2025-03-28 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779977', 'tblTempUsageDetail_20' ) end [2025-03-28 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:28:22] Production.INFO: ==1438== Releasing lock... [2025-03-28 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:29:06 [end_date_ymd] => 2025-03-28 07:29:06 [RateCDR] => 1 ) [2025-03-28 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-28 04:29:06' and `end` < '2025-03-28 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-28 07:29:18] Production.INFO: count ==127 [2025-03-28 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:29:06 - End Time 2025-03-28 07:29:06 [2025-03-28 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779982', 'tblTempUsageDetail_20' ) start [2025-03-28 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779982', 'tblTempUsageDetail_20' ) end [2025-03-28 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779982', 'tblTempVendorCDR_20' ) start [2025-03-28 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779982', 'tblTempVendorCDR_20' ) end [2025-03-28 07:29:18] Production.INFO: ProcessCDR(1,14779982,1,1,2) [2025-03-28 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779982', 'tblTempUsageDetail_20' ) start [2025-03-28 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779982', 'tblTempUsageDetail_20' ) end [2025-03-28 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:29:22] Production.INFO: ==1542== Releasing lock... [2025-03-28 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:29:22] Production.INFO: 29 MB #Memory Used# [2025-03-28 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:30:07 [end_date_ymd] => 2025-03-28 07:30:07 [RateCDR] => 1 ) [2025-03-28 07:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:30:07' and `end` < '2025-03-28 07:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:30:19] Production.INFO: count ==127 [2025-03-28 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:30:07 - End Time 2025-03-28 07:30:07 [2025-03-28 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779988', 'tblTempUsageDetail_20' ) start [2025-03-28 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779988', 'tblTempUsageDetail_20' ) end [2025-03-28 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779988', 'tblTempVendorCDR_20' ) start [2025-03-28 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779988', 'tblTempVendorCDR_20' ) end [2025-03-28 07:30:19] Production.INFO: ProcessCDR(1,14779988,1,1,2) [2025-03-28 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779988', 'tblTempUsageDetail_20' ) start [2025-03-28 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779988', 'tblTempUsageDetail_20' ) end [2025-03-28 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:30:23] Production.INFO: ==1625== Releasing lock... [2025-03-28 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:30:23] Production.INFO: 29 MB #Memory Used# [2025-03-28 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:31:06 [end_date_ymd] => 2025-03-28 07:31:06 [RateCDR] => 1 ) [2025-03-28 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:31:06' and `end` < '2025-03-28 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:31:18] Production.INFO: count ==127 [2025-03-28 07:31:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:31:06 - End Time 2025-03-28 07:31:06 [2025-03-28 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779993', 'tblTempUsageDetail_20' ) start [2025-03-28 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779993', 'tblTempUsageDetail_20' ) end [2025-03-28 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779993', 'tblTempVendorCDR_20' ) start [2025-03-28 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779993', 'tblTempVendorCDR_20' ) end [2025-03-28 07:31:18] Production.INFO: ProcessCDR(1,14779993,1,1,2) [2025-03-28 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779993', 'tblTempUsageDetail_20' ) start [2025-03-28 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779993', 'tblTempUsageDetail_20' ) end [2025-03-28 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:31:22] Production.INFO: ==1700== Releasing lock... [2025-03-28 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:31:22] Production.INFO: 29 MB #Memory Used# [2025-03-28 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:32:06 [end_date_ymd] => 2025-03-28 07:32:06 [RateCDR] => 1 ) [2025-03-28 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:32:06' and `end` < '2025-03-28 07:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:32:19] Production.INFO: count ==127 [2025-03-28 07:32:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:32:06 - End Time 2025-03-28 07:32:06 [2025-03-28 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779998', 'tblTempUsageDetail_20' ) start [2025-03-28 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14779998', 'tblTempUsageDetail_20' ) end [2025-03-28 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779998', 'tblTempVendorCDR_20' ) start [2025-03-28 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14779998', 'tblTempVendorCDR_20' ) end [2025-03-28 07:32:19] Production.INFO: ProcessCDR(1,14779998,1,1,2) [2025-03-28 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14779998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14779998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14779998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14779998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779998', 'tblTempUsageDetail_20' ) start [2025-03-28 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14779998', 'tblTempUsageDetail_20' ) end [2025-03-28 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:32:23] Production.INFO: ==1771== Releasing lock... [2025-03-28 07:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:32:23] Production.INFO: 29 MB #Memory Used# [2025-03-28 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:33:05 [end_date_ymd] => 2025-03-28 07:33:05 [RateCDR] => 1 ) [2025-03-28 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:33:05' and `end` < '2025-03-28 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-28 07:33:18] Production.INFO: count ==127 [2025-03-28 07:33:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:33:05 - End Time 2025-03-28 07:33:05 [2025-03-28 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780003', 'tblTempUsageDetail_20' ) start [2025-03-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780003', 'tblTempUsageDetail_20' ) end [2025-03-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780003', 'tblTempVendorCDR_20' ) start [2025-03-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780003', 'tblTempVendorCDR_20' ) end [2025-03-28 07:33:18] Production.INFO: ProcessCDR(1,14780003,1,1,2) [2025-03-28 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780003', 'tblTempUsageDetail_20' ) start [2025-03-28 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780003', 'tblTempUsageDetail_20' ) end [2025-03-28 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:33:22] Production.INFO: ==1848== Releasing lock... [2025-03-28 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:33:22] Production.INFO: 29 MB #Memory Used# [2025-03-28 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:34:05 [end_date_ymd] => 2025-03-28 07:34:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:34:05' and `end` < '2025-03-28 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-28 07:34:18] Production.INFO: count ==127 [2025-03-28 07:34:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:34:05 - End Time 2025-03-28 07:34:05 [2025-03-28 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780008', 'tblTempUsageDetail_20' ) start [2025-03-28 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780008', 'tblTempUsageDetail_20' ) end [2025-03-28 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780008', 'tblTempVendorCDR_20' ) start [2025-03-28 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780008', 'tblTempVendorCDR_20' ) end [2025-03-28 07:34:18] Production.INFO: ProcessCDR(1,14780008,1,1,2) [2025-03-28 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780008', 'tblTempUsageDetail_20' ) start [2025-03-28 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780008', 'tblTempUsageDetail_20' ) end [2025-03-28 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:34:22] Production.INFO: ==1924== Releasing lock... [2025-03-28 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:34:22] Production.INFO: 29 MB #Memory Used# [2025-03-28 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:35:05 [end_date_ymd] => 2025-03-28 07:35:05 [RateCDR] => 1 ) [2025-03-28 07:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:35:05' and `end` < '2025-03-28 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-28 07:35:18] Production.INFO: count ==127 [2025-03-28 07:35:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:35:05 - End Time 2025-03-28 07:35:05 [2025-03-28 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780013', 'tblTempUsageDetail_20' ) start [2025-03-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780013', 'tblTempUsageDetail_20' ) end [2025-03-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780013', 'tblTempVendorCDR_20' ) start [2025-03-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780013', 'tblTempVendorCDR_20' ) end [2025-03-28 07:35:18] Production.INFO: ProcessCDR(1,14780013,1,1,2) [2025-03-28 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780013', 'tblTempUsageDetail_20' ) start [2025-03-28 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780013', 'tblTempUsageDetail_20' ) end [2025-03-28 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:35:22] Production.INFO: ==2003== Releasing lock... [2025-03-28 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:35:22] Production.INFO: 29 MB #Memory Used# [2025-03-28 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:36:05 [end_date_ymd] => 2025-03-28 07:36:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:36:05' and `end` < '2025-03-28 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-28 07:36:17] Production.INFO: count ==127 [2025-03-28 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-28 04:36:05 - End Time 2025-03-28 07:36:05 [2025-03-28 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780018', 'tblTempUsageDetail_20' ) start [2025-03-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780018', 'tblTempUsageDetail_20' ) end [2025-03-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780018', 'tblTempVendorCDR_20' ) start [2025-03-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780018', 'tblTempVendorCDR_20' ) end [2025-03-28 07:36:17] Production.INFO: ProcessCDR(1,14780018,1,1,2) [2025-03-28 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780018', 'tblTempUsageDetail_20' ) start [2025-03-28 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780018', 'tblTempUsageDetail_20' ) end [2025-03-28 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:36:20] Production.INFO: ==2074== Releasing lock... [2025-03-28 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:36:20] Production.INFO: 29 MB #Memory Used# [2025-03-28 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:37:05 [end_date_ymd] => 2025-03-28 07:37:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:37:05' and `end` < '2025-03-28 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-28 07:37:18] Production.INFO: count ==128 [2025-03-28 07:37:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:37:05 - End Time 2025-03-28 07:37:05 [2025-03-28 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780023', 'tblTempUsageDetail_20' ) start [2025-03-28 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780023', 'tblTempUsageDetail_20' ) end [2025-03-28 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780023', 'tblTempVendorCDR_20' ) start [2025-03-28 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780023', 'tblTempVendorCDR_20' ) end [2025-03-28 07:37:18] Production.INFO: ProcessCDR(1,14780023,1,1,2) [2025-03-28 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780023', 'tblTempUsageDetail_20' ) start [2025-03-28 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780023', 'tblTempUsageDetail_20' ) end [2025-03-28 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:37:21] Production.INFO: ==2148== Releasing lock... [2025-03-28 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:38:05 [end_date_ymd] => 2025-03-28 07:38:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:38:05' and `end` < '2025-03-28 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-28 07:38:18] Production.INFO: count ==128 [2025-03-28 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:38:05 - End Time 2025-03-28 07:38:05 [2025-03-28 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780028', 'tblTempUsageDetail_20' ) start [2025-03-28 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780028', 'tblTempUsageDetail_20' ) end [2025-03-28 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780028', 'tblTempVendorCDR_20' ) start [2025-03-28 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780028', 'tblTempVendorCDR_20' ) end [2025-03-28 07:38:18] Production.INFO: ProcessCDR(1,14780028,1,1,2) [2025-03-28 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780028', 'tblTempUsageDetail_20' ) start [2025-03-28 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780028', 'tblTempUsageDetail_20' ) end [2025-03-28 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:38:21] Production.INFO: ==2223== Releasing lock... [2025-03-28 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:39:05 [end_date_ymd] => 2025-03-28 07:39:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:39:05' and `end` < '2025-03-28 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-28 07:39:18] Production.INFO: count ==128 [2025-03-28 07:39:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:39:05 - End Time 2025-03-28 07:39:05 [2025-03-28 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780033', 'tblTempUsageDetail_20' ) start [2025-03-28 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780033', 'tblTempUsageDetail_20' ) end [2025-03-28 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780033', 'tblTempVendorCDR_20' ) start [2025-03-28 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780033', 'tblTempVendorCDR_20' ) end [2025-03-28 07:39:18] Production.INFO: ProcessCDR(1,14780033,1,1,2) [2025-03-28 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780033', 'tblTempUsageDetail_20' ) start [2025-03-28 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780033', 'tblTempUsageDetail_20' ) end [2025-03-28 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:39:21] Production.INFO: ==2292== Releasing lock... [2025-03-28 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:40:05 [end_date_ymd] => 2025-03-28 07:40:05 [RateCDR] => 1 ) [2025-03-28 07:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:40:05' and `end` < '2025-03-28 07:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:40:18] Production.INFO: count ==131 [2025-03-28 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:40:05 - End Time 2025-03-28 07:40:05 [2025-03-28 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780038', 'tblTempUsageDetail_20' ) start [2025-03-28 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780038', 'tblTempUsageDetail_20' ) end [2025-03-28 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780038', 'tblTempVendorCDR_20' ) start [2025-03-28 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780038', 'tblTempVendorCDR_20' ) end [2025-03-28 07:40:18] Production.INFO: ProcessCDR(1,14780038,1,1,2) [2025-03-28 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780038', 'tblTempUsageDetail_20' ) start [2025-03-28 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780038', 'tblTempUsageDetail_20' ) end [2025-03-28 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:40:21] Production.INFO: ==2406== Releasing lock... [2025-03-28 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:41:05 [end_date_ymd] => 2025-03-28 07:41:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:41:05' and `end` < '2025-03-28 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-28 07:41:18] Production.INFO: count ==131 [2025-03-28 07:41:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:41:05 - End Time 2025-03-28 07:41:05 [2025-03-28 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780044', 'tblTempUsageDetail_20' ) start [2025-03-28 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780044', 'tblTempUsageDetail_20' ) end [2025-03-28 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780044', 'tblTempVendorCDR_20' ) start [2025-03-28 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780044', 'tblTempVendorCDR_20' ) end [2025-03-28 07:41:18] Production.INFO: ProcessCDR(1,14780044,1,1,2) [2025-03-28 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780044', 'tblTempUsageDetail_20' ) start [2025-03-28 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780044', 'tblTempUsageDetail_20' ) end [2025-03-28 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:41:21] Production.INFO: ==2482== Releasing lock... [2025-03-28 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:42:05 [end_date_ymd] => 2025-03-28 07:42:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:42:05' and `end` < '2025-03-28 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-28 07:42:17] Production.INFO: count ==128 [2025-03-28 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:42:05 - End Time 2025-03-28 07:42:05 [2025-03-28 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780049', 'tblTempUsageDetail_20' ) start [2025-03-28 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780049', 'tblTempUsageDetail_20' ) end [2025-03-28 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780049', 'tblTempVendorCDR_20' ) start [2025-03-28 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780049', 'tblTempVendorCDR_20' ) end [2025-03-28 07:42:18] Production.INFO: ProcessCDR(1,14780049,1,1,2) [2025-03-28 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780049', 'tblTempUsageDetail_20' ) start [2025-03-28 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780049', 'tblTempUsageDetail_20' ) end [2025-03-28 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:42:21] Production.INFO: ==2553== Releasing lock... [2025-03-28 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:43:05 [end_date_ymd] => 2025-03-28 07:43:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:43:05' and `end` < '2025-03-28 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-28 07:43:18] Production.INFO: count ==116 [2025-03-28 07:43:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:43:05 - End Time 2025-03-28 07:43:05 [2025-03-28 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780054', 'tblTempUsageDetail_20' ) start [2025-03-28 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780054', 'tblTempUsageDetail_20' ) end [2025-03-28 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780054', 'tblTempVendorCDR_20' ) start [2025-03-28 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780054', 'tblTempVendorCDR_20' ) end [2025-03-28 07:43:18] Production.INFO: ProcessCDR(1,14780054,1,1,2) [2025-03-28 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780054', 'tblTempUsageDetail_20' ) start [2025-03-28 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780054', 'tblTempUsageDetail_20' ) end [2025-03-28 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:43:21] Production.INFO: ==2628== Releasing lock... [2025-03-28 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:44:06 [end_date_ymd] => 2025-03-28 07:44:06 [RateCDR] => 1 ) [2025-03-28 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-28 04:44:06' and `end` < '2025-03-28 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-28 07:44:18] Production.INFO: count ==117 [2025-03-28 07:44:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:44:06 - End Time 2025-03-28 07:44:06 [2025-03-28 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780059', 'tblTempUsageDetail_20' ) start [2025-03-28 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780059', 'tblTempUsageDetail_20' ) end [2025-03-28 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780059', 'tblTempVendorCDR_20' ) start [2025-03-28 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780059', 'tblTempVendorCDR_20' ) end [2025-03-28 07:44:18] Production.INFO: ProcessCDR(1,14780059,1,1,2) [2025-03-28 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780059', 'tblTempUsageDetail_20' ) start [2025-03-28 07:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780059', 'tblTempUsageDetail_20' ) end [2025-03-28 07:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:44:24] Production.INFO: ==2699== Releasing lock... [2025-03-28 07:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:44:24] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:45:06 [end_date_ymd] => 2025-03-28 07:45:06 [RateCDR] => 1 ) [2025-03-28 07: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-28 04:45:06' and `end` < '2025-03-28 07: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-28 07:45:18] Production.INFO: count ==118 [2025-03-28 07:45:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:45:06 - End Time 2025-03-28 07:45:06 [2025-03-28 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780064', 'tblTempUsageDetail_20' ) start [2025-03-28 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780064', 'tblTempUsageDetail_20' ) end [2025-03-28 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780064', 'tblTempVendorCDR_20' ) start [2025-03-28 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780064', 'tblTempVendorCDR_20' ) end [2025-03-28 07:45:18] Production.INFO: ProcessCDR(1,14780064,1,1,2) [2025-03-28 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780064', 'tblTempUsageDetail_20' ) start [2025-03-28 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780064', 'tblTempUsageDetail_20' ) end [2025-03-28 07:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:45:23] Production.INFO: ==2774== Releasing lock... [2025-03-28 07:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:45:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:46:04 [end_date_ymd] => 2025-03-28 07:46:04 [RateCDR] => 1 ) [2025-03-28 07:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:46:04' and `end` < '2025-03-28 07:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:46:17] Production.INFO: count ==119 [2025-03-28 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-28 04:46:04 - End Time 2025-03-28 07:46:04 [2025-03-28 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780069', 'tblTempUsageDetail_20' ) start [2025-03-28 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780069', 'tblTempUsageDetail_20' ) end [2025-03-28 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780069', 'tblTempVendorCDR_20' ) start [2025-03-28 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780069', 'tblTempVendorCDR_20' ) end [2025-03-28 07:46:17] Production.INFO: ProcessCDR(1,14780069,1,1,2) [2025-03-28 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780069', 'tblTempUsageDetail_20' ) start [2025-03-28 07:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780069', 'tblTempUsageDetail_20' ) end [2025-03-28 07:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:46:23] Production.INFO: ==2849== Releasing lock... [2025-03-28 07:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:46:23] Production.INFO: 29 MB #Memory Used# [2025-03-28 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:47:05 [end_date_ymd] => 2025-03-28 07:47:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:47:05' and `end` < '2025-03-28 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-28 07:47:18] Production.INFO: count ==123 [2025-03-28 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:47:05 - End Time 2025-03-28 07:47:05 [2025-03-28 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780074', 'tblTempUsageDetail_20' ) start [2025-03-28 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780074', 'tblTempUsageDetail_20' ) end [2025-03-28 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780074', 'tblTempVendorCDR_20' ) start [2025-03-28 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780074', 'tblTempVendorCDR_20' ) end [2025-03-28 07:47:18] Production.INFO: ProcessCDR(1,14780074,1,1,2) [2025-03-28 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780074', 'tblTempUsageDetail_20' ) start [2025-03-28 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780074', 'tblTempUsageDetail_20' ) end [2025-03-28 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:47:21] Production.INFO: ==2926== Releasing lock... [2025-03-28 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:48:05 [end_date_ymd] => 2025-03-28 07:48:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:48:05' and `end` < '2025-03-28 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-28 07:48:18] Production.INFO: count ==129 [2025-03-28 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:48:05 - End Time 2025-03-28 07:48:05 [2025-03-28 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780075', 'tblTempUsageDetail_20' ) start [2025-03-28 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780075', 'tblTempUsageDetail_20' ) end [2025-03-28 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780075', 'tblTempVendorCDR_20' ) start [2025-03-28 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780075', 'tblTempVendorCDR_20' ) end [2025-03-28 07:48:18] Production.INFO: ProcessCDR(1,14780075,1,1,2) [2025-03-28 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780075', 'tblTempUsageDetail_20' ) start [2025-03-28 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780075', 'tblTempUsageDetail_20' ) end [2025-03-28 07:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:48:23] Production.INFO: ==3002== Releasing lock... [2025-03-28 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:48:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:49:05 [end_date_ymd] => 2025-03-28 07:49:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:49:05' and `end` < '2025-03-28 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-28 07:49:17] Production.INFO: count ==130 [2025-03-28 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-28 04:49:05 - End Time 2025-03-28 07:49:05 [2025-03-28 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780084', 'tblTempUsageDetail_20' ) start [2025-03-28 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780084', 'tblTempUsageDetail_20' ) end [2025-03-28 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780084', 'tblTempVendorCDR_20' ) start [2025-03-28 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780084', 'tblTempVendorCDR_20' ) end [2025-03-28 07:49:17] Production.INFO: ProcessCDR(1,14780084,1,1,2) [2025-03-28 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780084', 'tblTempUsageDetail_20' ) start [2025-03-28 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780084', 'tblTempUsageDetail_20' ) end [2025-03-28 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:49:21] Production.INFO: ==3076== Releasing lock... [2025-03-28 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-28 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:50:06 [end_date_ymd] => 2025-03-28 07:50:06 [RateCDR] => 1 ) [2025-03-28 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-28 04:50:06' and `end` < '2025-03-28 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-28 07:50:19] Production.INFO: count ==133 [2025-03-28 07:50:19] Production.ERROR: pbx CDR StartTime 2025-03-28 04:50:06 - End Time 2025-03-28 07:50:06 [2025-03-28 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780089', 'tblTempUsageDetail_20' ) start [2025-03-28 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780089', 'tblTempUsageDetail_20' ) end [2025-03-28 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780089', 'tblTempVendorCDR_20' ) start [2025-03-28 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780089', 'tblTempVendorCDR_20' ) end [2025-03-28 07:50:19] Production.INFO: ProcessCDR(1,14780089,1,1,2) [2025-03-28 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780089', 'tblTempUsageDetail_20' ) start [2025-03-28 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780089', 'tblTempUsageDetail_20' ) end [2025-03-28 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:50:22] Production.INFO: ==3153== Releasing lock... [2025-03-28 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:51:05 [end_date_ymd] => 2025-03-28 07:51:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:51:05' and `end` < '2025-03-28 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-28 07:51:18] Production.INFO: count ==133 [2025-03-28 07:51:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:51:05 - End Time 2025-03-28 07:51:05 [2025-03-28 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780095', 'tblTempUsageDetail_20' ) start [2025-03-28 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780095', 'tblTempUsageDetail_20' ) end [2025-03-28 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780095', 'tblTempVendorCDR_20' ) start [2025-03-28 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780095', 'tblTempVendorCDR_20' ) end [2025-03-28 07:51:18] Production.INFO: ProcessCDR(1,14780095,1,1,2) [2025-03-28 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780095', 'tblTempUsageDetail_20' ) start [2025-03-28 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780095', 'tblTempUsageDetail_20' ) end [2025-03-28 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:51:21] Production.INFO: ==3227== Releasing lock... [2025-03-28 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:52:05 [end_date_ymd] => 2025-03-28 07:52:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:52:05' and `end` < '2025-03-28 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-28 07:52:18] Production.INFO: count ==134 [2025-03-28 07:52:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:52:05 - End Time 2025-03-28 07:52:05 [2025-03-28 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780100', 'tblTempUsageDetail_20' ) start [2025-03-28 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780100', 'tblTempUsageDetail_20' ) end [2025-03-28 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780100', 'tblTempVendorCDR_20' ) start [2025-03-28 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780100', 'tblTempVendorCDR_20' ) end [2025-03-28 07:52:18] Production.INFO: ProcessCDR(1,14780100,1,1,2) [2025-03-28 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780100', 'tblTempUsageDetail_20' ) start [2025-03-28 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780100', 'tblTempUsageDetail_20' ) end [2025-03-28 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:52:22] Production.INFO: ==3298== Releasing lock... [2025-03-28 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:53:05 [end_date_ymd] => 2025-03-28 07:53:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:53:05' and `end` < '2025-03-28 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-28 07:53:17] Production.INFO: count ==135 [2025-03-28 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-28 04:53:05 - End Time 2025-03-28 07:53:05 [2025-03-28 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780105', 'tblTempUsageDetail_20' ) start [2025-03-28 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780105', 'tblTempUsageDetail_20' ) end [2025-03-28 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780105', 'tblTempVendorCDR_20' ) start [2025-03-28 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780105', 'tblTempVendorCDR_20' ) end [2025-03-28 07:53:17] Production.INFO: ProcessCDR(1,14780105,1,1,2) [2025-03-28 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780105', 'tblTempUsageDetail_20' ) start [2025-03-28 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780105', 'tblTempUsageDetail_20' ) end [2025-03-28 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:53:21] Production.INFO: ==3370== Releasing lock... [2025-03-28 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:54:05 [end_date_ymd] => 2025-03-28 07:54:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:54:05' and `end` < '2025-03-28 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-28 07:54:18] Production.INFO: count ==132 [2025-03-28 07:54:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:54:05 - End Time 2025-03-28 07:54:05 [2025-03-28 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780110', 'tblTempUsageDetail_20' ) start [2025-03-28 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780110', 'tblTempUsageDetail_20' ) end [2025-03-28 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780110', 'tblTempVendorCDR_20' ) start [2025-03-28 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780110', 'tblTempVendorCDR_20' ) end [2025-03-28 07:54:18] Production.INFO: ProcessCDR(1,14780110,1,1,2) [2025-03-28 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780110', 'tblTempUsageDetail_20' ) start [2025-03-28 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780110', 'tblTempUsageDetail_20' ) end [2025-03-28 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:54:21] Production.INFO: ==3447== Releasing lock... [2025-03-28 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:55:06 [end_date_ymd] => 2025-03-28 07:55:06 [RateCDR] => 1 ) [2025-03-28 07:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 04:55:06' and `end` < '2025-03-28 07:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 07:55:18] Production.INFO: count ==143 [2025-03-28 07:55:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:55:06 - End Time 2025-03-28 07:55:06 [2025-03-28 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780115', 'tblTempUsageDetail_20' ) start [2025-03-28 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780115', 'tblTempUsageDetail_20' ) end [2025-03-28 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780115', 'tblTempVendorCDR_20' ) start [2025-03-28 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780115', 'tblTempVendorCDR_20' ) end [2025-03-28 07:55:18] Production.INFO: ProcessCDR(1,14780115,1,1,2) [2025-03-28 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780115', 'tblTempUsageDetail_20' ) start [2025-03-28 07:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780115', 'tblTempUsageDetail_20' ) end [2025-03-28 07:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:55:24] Production.INFO: ==3557== Releasing lock... [2025-03-28 07:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:55:24] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:56:05 [end_date_ymd] => 2025-03-28 07:56:05 [RateCDR] => 1 ) [2025-03-28 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-28 04:56:05' and `end` < '2025-03-28 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-28 07:56:18] Production.INFO: count ==143 [2025-03-28 07:56:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:56:05 - End Time 2025-03-28 07:56:05 [2025-03-28 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780120', 'tblTempUsageDetail_20' ) start [2025-03-28 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780120', 'tblTempUsageDetail_20' ) end [2025-03-28 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780120', 'tblTempVendorCDR_20' ) start [2025-03-28 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780120', 'tblTempVendorCDR_20' ) end [2025-03-28 07:56:18] Production.INFO: ProcessCDR(1,14780120,1,1,2) [2025-03-28 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780120', 'tblTempUsageDetail_20' ) start [2025-03-28 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780120', 'tblTempUsageDetail_20' ) end [2025-03-28 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:56:21] Production.INFO: ==3631== Releasing lock... [2025-03-28 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:57:06 [end_date_ymd] => 2025-03-28 07:57:06 [RateCDR] => 1 ) [2025-03-28 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-28 04:57:06' and `end` < '2025-03-28 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-28 07:57:18] Production.INFO: count ==149 [2025-03-28 07:57:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:57:06 - End Time 2025-03-28 07:57:06 [2025-03-28 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780125', 'tblTempUsageDetail_20' ) start [2025-03-28 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780125', 'tblTempUsageDetail_20' ) end [2025-03-28 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780125', 'tblTempVendorCDR_20' ) start [2025-03-28 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780125', 'tblTempVendorCDR_20' ) end [2025-03-28 07:57:18] Production.INFO: ProcessCDR(1,14780125,1,1,2) [2025-03-28 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780125', 'tblTempUsageDetail_20' ) start [2025-03-28 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780125', 'tblTempUsageDetail_20' ) end [2025-03-28 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:57:22] Production.INFO: ==3704== Releasing lock... [2025-03-28 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:57:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 07:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:58:04 [end_date_ymd] => 2025-03-28 07:58:04 [RateCDR] => 1 ) [2025-03-28 07: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-28 04:58:04' and `end` < '2025-03-28 07: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-28 07:58:17] Production.INFO: count ==150 [2025-03-28 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-28 04:58:04 - End Time 2025-03-28 07:58:04 [2025-03-28 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780130', 'tblTempUsageDetail_20' ) start [2025-03-28 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780130', 'tblTempUsageDetail_20' ) end [2025-03-28 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780130', 'tblTempVendorCDR_20' ) start [2025-03-28 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780130', 'tblTempVendorCDR_20' ) end [2025-03-28 07:58:17] Production.INFO: ProcessCDR(1,14780130,1,1,2) [2025-03-28 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780130', 'tblTempUsageDetail_20' ) start [2025-03-28 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780130', 'tblTempUsageDetail_20' ) end [2025-03-28 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:58:22] Production.INFO: ==3778== Releasing lock... [2025-03-28 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 04:59:06 [end_date_ymd] => 2025-03-28 07:59:06 [RateCDR] => 1 ) [2025-03-28 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-28 04:59:06' and `end` < '2025-03-28 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-28 07:59:18] Production.INFO: count ==151 [2025-03-28 07:59:18] Production.ERROR: pbx CDR StartTime 2025-03-28 04:59:06 - End Time 2025-03-28 07:59:06 [2025-03-28 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780135', 'tblTempUsageDetail_20' ) start [2025-03-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780135', 'tblTempUsageDetail_20' ) end [2025-03-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780135', 'tblTempVendorCDR_20' ) start [2025-03-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780135', 'tblTempVendorCDR_20' ) end [2025-03-28 07:59:18] Production.INFO: ProcessCDR(1,14780135,1,1,2) [2025-03-28 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780135', 'tblTempUsageDetail_20' ) start [2025-03-28 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780135', 'tblTempUsageDetail_20' ) end [2025-03-28 07:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 07:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 07:59:23] Production.INFO: ==3855== Releasing lock... [2025-03-28 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 07:59:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:00:05 [end_date_ymd] => 2025-03-28 08:00:05 [RateCDR] => 1 ) [2025-03-28 08: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-28 05:00:05' and `end` < '2025-03-28 08: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-28 08:00:18] Production.INFO: count ==158 [2025-03-28 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:00:05 - End Time 2025-03-28 08:00:05 [2025-03-28 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780141', 'tblTempUsageDetail_20' ) start [2025-03-28 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780141', 'tblTempUsageDetail_20' ) end [2025-03-28 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780141', 'tblTempVendorCDR_20' ) start [2025-03-28 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780141', 'tblTempVendorCDR_20' ) end [2025-03-28 08:00:18] Production.INFO: ProcessCDR(1,14780141,1,1,2) [2025-03-28 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780141', 'tblTempUsageDetail_20' ) start [2025-03-28 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780141', 'tblTempUsageDetail_20' ) end [2025-03-28 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:00:22] Production.INFO: ==3932== Releasing lock... [2025-03-28 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-28 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:01:06 [end_date_ymd] => 2025-03-28 08:01:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:01:06' and `end` < '2025-03-28 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-28 08:01:18] Production.INFO: count ==173 [2025-03-28 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:01:06 - End Time 2025-03-28 08:01:06 [2025-03-28 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780146', 'tblTempUsageDetail_20' ) start [2025-03-28 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780146', 'tblTempUsageDetail_20' ) end [2025-03-28 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780146', 'tblTempVendorCDR_20' ) start [2025-03-28 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780146', 'tblTempVendorCDR_20' ) end [2025-03-28 08:01:18] Production.INFO: ProcessCDR(1,14780146,1,1,2) [2025-03-28 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780146', 'tblTempUsageDetail_20' ) start [2025-03-28 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780146', 'tblTempUsageDetail_20' ) end [2025-03-28 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:01:22] Production.INFO: ==4019== Releasing lock... [2025-03-28 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:01:22] Production.INFO: 30 MB #Memory Used# [2025-03-28 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:02:05 [end_date_ymd] => 2025-03-28 08:02:05 [RateCDR] => 1 ) [2025-03-28 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-28 05:02:05' and `end` < '2025-03-28 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-28 08:02:18] Production.INFO: count ==174 [2025-03-28 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:02:05 - End Time 2025-03-28 08:02:05 [2025-03-28 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780151', 'tblTempUsageDetail_20' ) start [2025-03-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780151', 'tblTempUsageDetail_20' ) end [2025-03-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780151', 'tblTempVendorCDR_20' ) start [2025-03-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780151', 'tblTempVendorCDR_20' ) end [2025-03-28 08:02:18] Production.INFO: ProcessCDR(1,14780151,1,1,2) [2025-03-28 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780151', 'tblTempUsageDetail_20' ) start [2025-03-28 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780151', 'tblTempUsageDetail_20' ) end [2025-03-28 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:02:23] Production.INFO: ==4092== Releasing lock... [2025-03-28 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:02:23] Production.INFO: 30 MB #Memory Used# [2025-03-28 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:03:05 [end_date_ymd] => 2025-03-28 08:03:05 [RateCDR] => 1 ) [2025-03-28 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:03:05' and `end` < '2025-03-28 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:03:18] Production.INFO: count ==186 [2025-03-28 08:03:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:03:05 - End Time 2025-03-28 08:03:05 [2025-03-28 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780156', 'tblTempUsageDetail_20' ) start [2025-03-28 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780156', 'tblTempUsageDetail_20' ) end [2025-03-28 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780156', 'tblTempVendorCDR_20' ) start [2025-03-28 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780156', 'tblTempVendorCDR_20' ) end [2025-03-28 08:03:18] Production.INFO: ProcessCDR(1,14780156,1,1,2) [2025-03-28 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780156', 'tblTempUsageDetail_20' ) start [2025-03-28 08:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780156', 'tblTempUsageDetail_20' ) end [2025-03-28 08:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:03:24] Production.INFO: ==4166== Releasing lock... [2025-03-28 08:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:03:24] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:04:06 [end_date_ymd] => 2025-03-28 08:04:06 [RateCDR] => 1 ) [2025-03-28 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:04:06' and `end` < '2025-03-28 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:04:18] Production.INFO: count ==192 [2025-03-28 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:04:06 - End Time 2025-03-28 08:04:06 [2025-03-28 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780161', 'tblTempUsageDetail_20' ) start [2025-03-28 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780161', 'tblTempUsageDetail_20' ) end [2025-03-28 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780161', 'tblTempVendorCDR_20' ) start [2025-03-28 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780161', 'tblTempVendorCDR_20' ) end [2025-03-28 08:04:19] Production.INFO: ProcessCDR(1,14780161,1,1,2) [2025-03-28 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780161', 'tblTempUsageDetail_20' ) start [2025-03-28 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780161', 'tblTempUsageDetail_20' ) end [2025-03-28 08:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:04:24] Production.INFO: ==4240== Releasing lock... [2025-03-28 08:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:04:24] Production.INFO: 30 MB #Memory Used# [2025-03-28 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:05:06 [end_date_ymd] => 2025-03-28 08:05:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:05:06' and `end` < '2025-03-28 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-28 08:05:18] Production.INFO: count ==193 [2025-03-28 08:05:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:05:06 - End Time 2025-03-28 08:05:06 [2025-03-28 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780166', 'tblTempUsageDetail_20' ) start [2025-03-28 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780166', 'tblTempUsageDetail_20' ) end [2025-03-28 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780166', 'tblTempVendorCDR_20' ) start [2025-03-28 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780166', 'tblTempVendorCDR_20' ) end [2025-03-28 08:05:18] Production.INFO: ProcessCDR(1,14780166,1,1,2) [2025-03-28 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780166', 'tblTempUsageDetail_20' ) start [2025-03-28 08:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780166', 'tblTempUsageDetail_20' ) end [2025-03-28 08:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:05:24] Production.INFO: ==4311== Releasing lock... [2025-03-28 08:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:05:24] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:06:06 [end_date_ymd] => 2025-03-28 08:06:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:06:06' and `end` < '2025-03-28 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-28 08:06:18] Production.INFO: count ==194 [2025-03-28 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:06:06 - End Time 2025-03-28 08:06:06 [2025-03-28 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780171', 'tblTempUsageDetail_20' ) start [2025-03-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780171', 'tblTempUsageDetail_20' ) end [2025-03-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780171', 'tblTempVendorCDR_20' ) start [2025-03-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780171', 'tblTempVendorCDR_20' ) end [2025-03-28 08:06:18] Production.INFO: ProcessCDR(1,14780171,1,1,2) [2025-03-28 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780171', 'tblTempUsageDetail_20' ) start [2025-03-28 08:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780171', 'tblTempUsageDetail_20' ) end [2025-03-28 08:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:06:24] Production.INFO: ==4386== Releasing lock... [2025-03-28 08:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:06:24] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:07:06 [end_date_ymd] => 2025-03-28 08:07:06 [RateCDR] => 1 ) [2025-03-28 08:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:07:06' and `end` < '2025-03-28 08:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:07:19] Production.INFO: count ==194 [2025-03-28 08:07:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:07:06 - End Time 2025-03-28 08:07:06 [2025-03-28 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780176', 'tblTempUsageDetail_20' ) start [2025-03-28 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780176', 'tblTempUsageDetail_20' ) end [2025-03-28 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780176', 'tblTempVendorCDR_20' ) start [2025-03-28 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780176', 'tblTempVendorCDR_20' ) end [2025-03-28 08:07:19] Production.INFO: ProcessCDR(1,14780176,1,1,2) [2025-03-28 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780176', 'tblTempUsageDetail_20' ) start [2025-03-28 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780176', 'tblTempUsageDetail_20' ) end [2025-03-28 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:07:22] Production.INFO: ==4459== Releasing lock... [2025-03-28 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:07:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-28 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:08:05 [end_date_ymd] => 2025-03-28 08:08:05 [RateCDR] => 1 ) [2025-03-28 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-28 05:08:05' and `end` < '2025-03-28 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-28 08:08:18] Production.INFO: count ==219 [2025-03-28 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:08:05 - End Time 2025-03-28 08:08:05 [2025-03-28 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780181', 'tblTempUsageDetail_20' ) start [2025-03-28 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780181', 'tblTempUsageDetail_20' ) end [2025-03-28 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780181', 'tblTempVendorCDR_20' ) start [2025-03-28 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780181', 'tblTempVendorCDR_20' ) end [2025-03-28 08:08:18] Production.INFO: ProcessCDR(1,14780181,1,1,2) [2025-03-28 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780181', 'tblTempUsageDetail_20' ) start [2025-03-28 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780181', 'tblTempUsageDetail_20' ) end [2025-03-28 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:08:23] Production.INFO: ==4528== Releasing lock... [2025-03-28 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:08:23] Production.INFO: 30 MB #Memory Used# [2025-03-28 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:09:06 [end_date_ymd] => 2025-03-28 08:09:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:09:06' and `end` < '2025-03-28 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-28 08:09:19] Production.INFO: count ==229 [2025-03-28 08:09:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:09:06 - End Time 2025-03-28 08:09:06 [2025-03-28 08:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780186', 'tblTempUsageDetail_20' ) start [2025-03-28 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780186', 'tblTempUsageDetail_20' ) end [2025-03-28 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780186', 'tblTempVendorCDR_20' ) start [2025-03-28 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780186', 'tblTempVendorCDR_20' ) end [2025-03-28 08:09:19] Production.INFO: ProcessCDR(1,14780186,1,1,2) [2025-03-28 08:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780186', 'tblTempUsageDetail_20' ) start [2025-03-28 08:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780186', 'tblTempUsageDetail_20' ) end [2025-03-28 08:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:09:24] Production.INFO: ==4609== Releasing lock... [2025-03-28 08:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:09:24] Production.INFO: 30.5 MB #Memory Used# [2025-03-28 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:10:06 [end_date_ymd] => 2025-03-28 08:10:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:10:06' and `end` < '2025-03-28 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-28 08:10:19] Production.INFO: count ==242 [2025-03-28 08:10:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:10:06 - End Time 2025-03-28 08:10:06 [2025-03-28 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780192', 'tblTempUsageDetail_20' ) start [2025-03-28 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780192', 'tblTempUsageDetail_20' ) end [2025-03-28 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780192', 'tblTempVendorCDR_20' ) start [2025-03-28 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780192', 'tblTempVendorCDR_20' ) end [2025-03-28 08:10:19] Production.INFO: ProcessCDR(1,14780192,1,1,2) [2025-03-28 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780192', 'tblTempUsageDetail_20' ) start [2025-03-28 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780192', 'tblTempUsageDetail_20' ) end [2025-03-28 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:10:23] Production.INFO: ==4683== Releasing lock... [2025-03-28 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:10:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-28 08:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:11:06 [end_date_ymd] => 2025-03-28 08:11:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:11:06' and `end` < '2025-03-28 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-28 08:11:18] Production.INFO: count ==264 [2025-03-28 08:11:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:11:06 - End Time 2025-03-28 08:11:06 [2025-03-28 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780197', 'tblTempUsageDetail_20' ) start [2025-03-28 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780197', 'tblTempUsageDetail_20' ) end [2025-03-28 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780197', 'tblTempVendorCDR_20' ) start [2025-03-28 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780197', 'tblTempVendorCDR_20' ) end [2025-03-28 08:11:18] Production.INFO: ProcessCDR(1,14780197,1,1,2) [2025-03-28 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780197', 'tblTempUsageDetail_20' ) start [2025-03-28 08:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780197', 'tblTempUsageDetail_20' ) end [2025-03-28 08:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:11:24] Production.INFO: ==4797== Releasing lock... [2025-03-28 08:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:11:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-28 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:12:05 [end_date_ymd] => 2025-03-28 08:12:05 [RateCDR] => 1 ) [2025-03-28 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-28 05:12:05' and `end` < '2025-03-28 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-28 08:12:18] Production.INFO: count ==266 [2025-03-28 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:12:05 - End Time 2025-03-28 08:12:05 [2025-03-28 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780202', 'tblTempUsageDetail_20' ) start [2025-03-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780202', 'tblTempUsageDetail_20' ) end [2025-03-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780202', 'tblTempVendorCDR_20' ) start [2025-03-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780202', 'tblTempVendorCDR_20' ) end [2025-03-28 08:12:18] Production.INFO: ProcessCDR(1,14780202,1,1,2) [2025-03-28 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780202', 'tblTempUsageDetail_20' ) start [2025-03-28 08:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780202', 'tblTempUsageDetail_20' ) end [2025-03-28 08:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:12:24] Production.INFO: ==4873== Releasing lock... [2025-03-28 08:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:12:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-28 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:13:06 [end_date_ymd] => 2025-03-28 08:13:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:13:06' and `end` < '2025-03-28 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-28 08:13:19] Production.INFO: count ==267 [2025-03-28 08:13:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:13:06 - End Time 2025-03-28 08:13:06 [2025-03-28 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780207', 'tblTempUsageDetail_20' ) start [2025-03-28 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780207', 'tblTempUsageDetail_20' ) end [2025-03-28 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780207', 'tblTempVendorCDR_20' ) start [2025-03-28 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780207', 'tblTempVendorCDR_20' ) end [2025-03-28 08:13:19] Production.INFO: ProcessCDR(1,14780207,1,1,2) [2025-03-28 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780207', 'tblTempUsageDetail_20' ) start [2025-03-28 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780207', 'tblTempUsageDetail_20' ) end [2025-03-28 08:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:13:24] Production.INFO: ==4954== Releasing lock... [2025-03-28 08:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:13:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-28 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:14:05 [end_date_ymd] => 2025-03-28 08:14:05 [RateCDR] => 1 ) [2025-03-28 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-28 05:14:05' and `end` < '2025-03-28 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-28 08:14:18] Production.INFO: count ==272 [2025-03-28 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:14:05 - End Time 2025-03-28 08:14:05 [2025-03-28 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780212', 'tblTempUsageDetail_20' ) start [2025-03-28 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780212', 'tblTempUsageDetail_20' ) end [2025-03-28 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780212', 'tblTempVendorCDR_20' ) start [2025-03-28 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780212', 'tblTempVendorCDR_20' ) end [2025-03-28 08:14:18] Production.INFO: ProcessCDR(1,14780212,1,1,2) [2025-03-28 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780212', 'tblTempUsageDetail_20' ) start [2025-03-28 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780212', 'tblTempUsageDetail_20' ) end [2025-03-28 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:14:22] Production.INFO: ==5029== Releasing lock... [2025-03-28 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:14:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-28 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:15:06 [end_date_ymd] => 2025-03-28 08:15:06 [RateCDR] => 1 ) [2025-03-28 08:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:15:06' and `end` < '2025-03-28 08:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:15:18] Production.INFO: count ==279 [2025-03-28 08:15:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:15:06 - End Time 2025-03-28 08:15:06 [2025-03-28 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780217', 'tblTempUsageDetail_20' ) start [2025-03-28 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780217', 'tblTempUsageDetail_20' ) end [2025-03-28 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780217', 'tblTempVendorCDR_20' ) start [2025-03-28 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780217', 'tblTempVendorCDR_20' ) end [2025-03-28 08:15:18] Production.INFO: ProcessCDR(1,14780217,1,1,2) [2025-03-28 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780217', 'tblTempUsageDetail_20' ) start [2025-03-28 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780217', 'tblTempUsageDetail_20' ) end [2025-03-28 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:15:22] Production.INFO: ==5110== Releasing lock... [2025-03-28 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-28 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:16:05 [end_date_ymd] => 2025-03-28 08:16:05 [RateCDR] => 1 ) [2025-03-28 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:16:05' and `end` < '2025-03-28 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:16:18] Production.INFO: count ==290 [2025-03-28 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:16:05 - End Time 2025-03-28 08:16:05 [2025-03-28 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780222', 'tblTempUsageDetail_20' ) start [2025-03-28 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780222', 'tblTempUsageDetail_20' ) end [2025-03-28 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780222', 'tblTempVendorCDR_20' ) start [2025-03-28 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780222', 'tblTempVendorCDR_20' ) end [2025-03-28 08:16:18] Production.INFO: ProcessCDR(1,14780222,1,1,2) [2025-03-28 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780222', 'tblTempUsageDetail_20' ) start [2025-03-28 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780222', 'tblTempUsageDetail_20' ) end [2025-03-28 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:16:23] Production.INFO: ==5189== Releasing lock... [2025-03-28 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:16:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-28 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:17:05 [end_date_ymd] => 2025-03-28 08:17:05 [RateCDR] => 1 ) [2025-03-28 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:17:05' and `end` < '2025-03-28 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:17:18] Production.INFO: count ==293 [2025-03-28 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:17:05 - End Time 2025-03-28 08:17:05 [2025-03-28 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780227', 'tblTempUsageDetail_20' ) start [2025-03-28 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780227', 'tblTempUsageDetail_20' ) end [2025-03-28 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780227', 'tblTempVendorCDR_20' ) start [2025-03-28 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780227', 'tblTempVendorCDR_20' ) end [2025-03-28 08:17:18] Production.INFO: ProcessCDR(1,14780227,1,1,2) [2025-03-28 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780227', 'tblTempUsageDetail_20' ) start [2025-03-28 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780227', 'tblTempUsageDetail_20' ) end [2025-03-28 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:17:22] Production.INFO: ==5261== Releasing lock... [2025-03-28 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-28 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:18:05 [end_date_ymd] => 2025-03-28 08:18:05 [RateCDR] => 1 ) [2025-03-28 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-28 05:18:05' and `end` < '2025-03-28 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-28 08:18:18] Production.INFO: count ==299 [2025-03-28 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:18:05 - End Time 2025-03-28 08:18:05 [2025-03-28 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780232', 'tblTempUsageDetail_20' ) start [2025-03-28 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780232', 'tblTempUsageDetail_20' ) end [2025-03-28 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780232', 'tblTempVendorCDR_20' ) start [2025-03-28 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780232', 'tblTempVendorCDR_20' ) end [2025-03-28 08:18:18] Production.INFO: ProcessCDR(1,14780232,1,1,2) [2025-03-28 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780232', 'tblTempUsageDetail_20' ) start [2025-03-28 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780232', 'tblTempUsageDetail_20' ) end [2025-03-28 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:18:21] Production.INFO: ==5336== Releasing lock... [2025-03-28 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:18:21] Production.INFO: 31 MB #Memory Used# [2025-03-28 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:19:05 [end_date_ymd] => 2025-03-28 08:19:05 [RateCDR] => 1 ) [2025-03-28 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:19:05' and `end` < '2025-03-28 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:19:18] Production.INFO: count ==307 [2025-03-28 08:19:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:19:05 - End Time 2025-03-28 08:19:05 [2025-03-28 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780237', 'tblTempUsageDetail_20' ) start [2025-03-28 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780237', 'tblTempUsageDetail_20' ) end [2025-03-28 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780237', 'tblTempVendorCDR_20' ) start [2025-03-28 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780237', 'tblTempVendorCDR_20' ) end [2025-03-28 08:19:18] Production.INFO: ProcessCDR(1,14780237,1,1,2) [2025-03-28 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780237', 'tblTempUsageDetail_20' ) start [2025-03-28 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780237', 'tblTempUsageDetail_20' ) end [2025-03-28 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:19:23] Production.INFO: ==5415== Releasing lock... [2025-03-28 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:19:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-28 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:20:05 [end_date_ymd] => 2025-03-28 08:20:05 [RateCDR] => 1 ) [2025-03-28 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:20:05' and `end` < '2025-03-28 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:20:18] Production.INFO: count ==316 [2025-03-28 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:20:05 - End Time 2025-03-28 08:20:05 [2025-03-28 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780243', 'tblTempUsageDetail_20' ) start [2025-03-28 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780243', 'tblTempUsageDetail_20' ) end [2025-03-28 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780243', 'tblTempVendorCDR_20' ) start [2025-03-28 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780243', 'tblTempVendorCDR_20' ) end [2025-03-28 08:20:18] Production.INFO: ProcessCDR(1,14780243,1,1,2) [2025-03-28 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780243', 'tblTempUsageDetail_20' ) start [2025-03-28 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780243', 'tblTempUsageDetail_20' ) end [2025-03-28 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:20:23] Production.INFO: ==5499== Releasing lock... [2025-03-28 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:20:23] Production.INFO: 31 MB #Memory Used# [2025-03-28 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:21:06 [end_date_ymd] => 2025-03-28 08:21:06 [RateCDR] => 1 ) [2025-03-28 08: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-28 05:21:06' and `end` < '2025-03-28 08: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-28 08:21:19] Production.INFO: count ==342 [2025-03-28 08:21:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:21:06 - End Time 2025-03-28 08:21:06 [2025-03-28 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780248', 'tblTempUsageDetail_20' ) start [2025-03-28 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780248', 'tblTempUsageDetail_20' ) end [2025-03-28 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780248', 'tblTempVendorCDR_20' ) start [2025-03-28 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780248', 'tblTempVendorCDR_20' ) end [2025-03-28 08:21:19] Production.INFO: ProcessCDR(1,14780248,1,1,2) [2025-03-28 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780248', 'tblTempUsageDetail_20' ) start [2025-03-28 08:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780248', 'tblTempUsageDetail_20' ) end [2025-03-28 08:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:21:24] Production.INFO: ==5578== Releasing lock... [2025-03-28 08:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:21:24] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:22:05 [end_date_ymd] => 2025-03-28 08:22:05 [RateCDR] => 1 ) [2025-03-28 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-28 05:22:05' and `end` < '2025-03-28 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-28 08:22:18] Production.INFO: count ==343 [2025-03-28 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:22:05 - End Time 2025-03-28 08:22:05 [2025-03-28 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780253', 'tblTempUsageDetail_20' ) start [2025-03-28 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780253', 'tblTempUsageDetail_20' ) end [2025-03-28 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780253', 'tblTempVendorCDR_20' ) start [2025-03-28 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780253', 'tblTempVendorCDR_20' ) end [2025-03-28 08:22:18] Production.INFO: ProcessCDR(1,14780253,1,1,2) [2025-03-28 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780253', 'tblTempUsageDetail_20' ) start [2025-03-28 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780253', 'tblTempUsageDetail_20' ) end [2025-03-28 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:22:23] Production.INFO: ==5661== Releasing lock... [2025-03-28 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:22:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:23:06 [end_date_ymd] => 2025-03-28 08:23:06 [RateCDR] => 1 ) [2025-03-28 08:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:23:06' and `end` < '2025-03-28 08:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:23:18] Production.INFO: count ==357 [2025-03-28 08:23:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:23:06 - End Time 2025-03-28 08:23:06 [2025-03-28 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780258', 'tblTempUsageDetail_20' ) start [2025-03-28 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780258', 'tblTempUsageDetail_20' ) end [2025-03-28 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780258', 'tblTempVendorCDR_20' ) start [2025-03-28 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780258', 'tblTempVendorCDR_20' ) end [2025-03-28 08:23:18] Production.INFO: ProcessCDR(1,14780258,1,1,2) [2025-03-28 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780258', 'tblTempUsageDetail_20' ) start [2025-03-28 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780258', 'tblTempUsageDetail_20' ) end [2025-03-28 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:23:23] Production.INFO: ==5743== Releasing lock... [2025-03-28 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:23:23] Production.INFO: 31 MB #Memory Used# [2025-03-28 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:24:05 [end_date_ymd] => 2025-03-28 08:24:05 [RateCDR] => 1 ) [2025-03-28 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-28 05:24:05' and `end` < '2025-03-28 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-28 08:24:18] Production.INFO: count ==358 [2025-03-28 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:24:05 - End Time 2025-03-28 08:24:05 [2025-03-28 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780263', 'tblTempUsageDetail_20' ) start [2025-03-28 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780263', 'tblTempUsageDetail_20' ) end [2025-03-28 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780263', 'tblTempVendorCDR_20' ) start [2025-03-28 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780263', 'tblTempVendorCDR_20' ) end [2025-03-28 08:24:18] Production.INFO: ProcessCDR(1,14780263,1,1,2) [2025-03-28 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780263', 'tblTempUsageDetail_20' ) start [2025-03-28 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780263', 'tblTempUsageDetail_20' ) end [2025-03-28 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:24:23] Production.INFO: ==5823== Releasing lock... [2025-03-28 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:24:23] Production.INFO: 31 MB #Memory Used# [2025-03-28 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:25:06 [end_date_ymd] => 2025-03-28 08:25:06 [RateCDR] => 1 ) [2025-03-28 08: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-28 05:25:06' and `end` < '2025-03-28 08: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-28 08:25:19] Production.INFO: count ==355 [2025-03-28 08:25:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:25:06 - End Time 2025-03-28 08:25:06 [2025-03-28 08:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780268', 'tblTempUsageDetail_20' ) start [2025-03-28 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780268', 'tblTempUsageDetail_20' ) end [2025-03-28 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780268', 'tblTempVendorCDR_20' ) start [2025-03-28 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780268', 'tblTempVendorCDR_20' ) end [2025-03-28 08:25:19] Production.INFO: ProcessCDR(1,14780268,1,1,2) [2025-03-28 08:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780268', 'tblTempUsageDetail_20' ) start [2025-03-28 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780268', 'tblTempUsageDetail_20' ) end [2025-03-28 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:25:25] Production.INFO: ==5906== Releasing lock... [2025-03-28 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:26:05 [end_date_ymd] => 2025-03-28 08:26:05 [RateCDR] => 1 ) [2025-03-28 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-28 05:26:05' and `end` < '2025-03-28 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-28 08:26:18] Production.INFO: count ==362 [2025-03-28 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:26:05 - End Time 2025-03-28 08:26:05 [2025-03-28 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780273', 'tblTempUsageDetail_20' ) start [2025-03-28 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780273', 'tblTempUsageDetail_20' ) end [2025-03-28 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780273', 'tblTempVendorCDR_20' ) start [2025-03-28 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780273', 'tblTempVendorCDR_20' ) end [2025-03-28 08:26:18] Production.INFO: ProcessCDR(1,14780273,1,1,2) [2025-03-28 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780273', 'tblTempUsageDetail_20' ) start [2025-03-28 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780273', 'tblTempUsageDetail_20' ) end [2025-03-28 08:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:26:24] Production.INFO: ==6030== Releasing lock... [2025-03-28 08:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:26:24] Production.INFO: 31 MB #Memory Used# [2025-03-28 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:27:06 [end_date_ymd] => 2025-03-28 08:27:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:27:06' and `end` < '2025-03-28 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-28 08:27:18] Production.INFO: count ==364 [2025-03-28 08:27:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:27:06 - End Time 2025-03-28 08:27:06 [2025-03-28 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780278', 'tblTempUsageDetail_20' ) start [2025-03-28 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780278', 'tblTempUsageDetail_20' ) end [2025-03-28 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780278', 'tblTempVendorCDR_20' ) start [2025-03-28 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780278', 'tblTempVendorCDR_20' ) end [2025-03-28 08:27:18] Production.INFO: ProcessCDR(1,14780278,1,1,2) [2025-03-28 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780278', 'tblTempUsageDetail_20' ) start [2025-03-28 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780278', 'tblTempUsageDetail_20' ) end [2025-03-28 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:27:23] Production.INFO: ==6110== Releasing lock... [2025-03-28 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:27:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:28:05 [end_date_ymd] => 2025-03-28 08:28:05 [RateCDR] => 1 ) [2025-03-28 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-28 05:28:05' and `end` < '2025-03-28 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-28 08:28:18] Production.INFO: count ==364 [2025-03-28 08:28:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:28:05 - End Time 2025-03-28 08:28:05 [2025-03-28 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780283', 'tblTempUsageDetail_20' ) start [2025-03-28 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780283', 'tblTempUsageDetail_20' ) end [2025-03-28 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780283', 'tblTempVendorCDR_20' ) start [2025-03-28 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780283', 'tblTempVendorCDR_20' ) end [2025-03-28 08:28:18] Production.INFO: ProcessCDR(1,14780283,1,1,2) [2025-03-28 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780283', 'tblTempUsageDetail_20' ) start [2025-03-28 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780283', 'tblTempUsageDetail_20' ) end [2025-03-28 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:28:21] Production.INFO: ==6188== Releasing lock... [2025-03-28 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-28 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:29:06 [end_date_ymd] => 2025-03-28 08:29:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:29:06' and `end` < '2025-03-28 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-28 08:29:19] Production.INFO: count ==382 [2025-03-28 08:29:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:29:06 - End Time 2025-03-28 08:29:06 [2025-03-28 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780288', 'tblTempUsageDetail_20' ) start [2025-03-28 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780288', 'tblTempUsageDetail_20' ) end [2025-03-28 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780288', 'tblTempVendorCDR_20' ) start [2025-03-28 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780288', 'tblTempVendorCDR_20' ) end [2025-03-28 08:29:19] Production.INFO: ProcessCDR(1,14780288,1,1,2) [2025-03-28 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780288', 'tblTempUsageDetail_20' ) start [2025-03-28 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780288', 'tblTempUsageDetail_20' ) end [2025-03-28 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:29:22] Production.INFO: ==6267== Releasing lock... [2025-03-28 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:29:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-28 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:30:06 [end_date_ymd] => 2025-03-28 08:30:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:30:06' and `end` < '2025-03-28 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-28 08:30:19] Production.INFO: count ==396 [2025-03-28 08:30:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:30:06 - End Time 2025-03-28 08:30:06 [2025-03-28 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780294', 'tblTempUsageDetail_20' ) start [2025-03-28 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780294', 'tblTempUsageDetail_20' ) end [2025-03-28 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780294', 'tblTempVendorCDR_20' ) start [2025-03-28 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780294', 'tblTempVendorCDR_20' ) end [2025-03-28 08:30:19] Production.INFO: ProcessCDR(1,14780294,1,1,2) [2025-03-28 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780294', 'tblTempUsageDetail_20' ) start [2025-03-28 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780294', 'tblTempUsageDetail_20' ) end [2025-03-28 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:30:24] Production.INFO: ==6353== Releasing lock... [2025-03-28 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:30:24] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:31:06 [end_date_ymd] => 2025-03-28 08:31:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:31:06' and `end` < '2025-03-28 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-28 08:31:18] Production.INFO: count ==430 [2025-03-28 08:31:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:31:06 - End Time 2025-03-28 08:31:06 [2025-03-28 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780299', 'tblTempUsageDetail_20' ) start [2025-03-28 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780299', 'tblTempUsageDetail_20' ) end [2025-03-28 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780299', 'tblTempVendorCDR_20' ) start [2025-03-28 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780299', 'tblTempVendorCDR_20' ) end [2025-03-28 08:31:18] Production.INFO: ProcessCDR(1,14780299,1,1,2) [2025-03-28 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780299', 'tblTempUsageDetail_20' ) start [2025-03-28 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780299', 'tblTempUsageDetail_20' ) end [2025-03-28 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:31:23] Production.INFO: ==6436== Releasing lock... [2025-03-28 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:31:23] Production.INFO: 32 MB #Memory Used# [2025-03-28 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:32:05 [end_date_ymd] => 2025-03-28 08:32:05 [RateCDR] => 1 ) [2025-03-28 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:32:05' and `end` < '2025-03-28 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:32:17] Production.INFO: count ==435 [2025-03-28 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:32:05 - End Time 2025-03-28 08:32:05 [2025-03-28 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780304', 'tblTempUsageDetail_20' ) start [2025-03-28 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780304', 'tblTempUsageDetail_20' ) end [2025-03-28 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780304', 'tblTempVendorCDR_20' ) start [2025-03-28 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780304', 'tblTempVendorCDR_20' ) end [2025-03-28 08:32:18] Production.INFO: ProcessCDR(1,14780304,1,1,2) [2025-03-28 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780304', 'tblTempUsageDetail_20' ) start [2025-03-28 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780304', 'tblTempUsageDetail_20' ) end [2025-03-28 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:32:23] Production.INFO: ==6517== Releasing lock... [2025-03-28 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:32:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:33:05 [end_date_ymd] => 2025-03-28 08:33:05 [RateCDR] => 1 ) [2025-03-28 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:33:05' and `end` < '2025-03-28 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:33:18] Production.INFO: count ==437 [2025-03-28 08:33:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:33:05 - End Time 2025-03-28 08:33:05 [2025-03-28 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780309', 'tblTempUsageDetail_20' ) start [2025-03-28 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780309', 'tblTempUsageDetail_20' ) end [2025-03-28 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780309', 'tblTempVendorCDR_20' ) start [2025-03-28 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780309', 'tblTempVendorCDR_20' ) end [2025-03-28 08:33:18] Production.INFO: ProcessCDR(1,14780309,1,1,2) [2025-03-28 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780309', 'tblTempUsageDetail_20' ) start [2025-03-28 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780309', 'tblTempUsageDetail_20' ) end [2025-03-28 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:33:22] Production.INFO: ==6600== Releasing lock... [2025-03-28 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:33:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-28 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:34:06 [end_date_ymd] => 2025-03-28 08:34:06 [RateCDR] => 1 ) [2025-03-28 08:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:34:06' and `end` < '2025-03-28 08:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:34:18] Production.INFO: count ==442 [2025-03-28 08:34:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:34:06 - End Time 2025-03-28 08:34:06 [2025-03-28 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780314', 'tblTempUsageDetail_20' ) start [2025-03-28 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780314', 'tblTempUsageDetail_20' ) end [2025-03-28 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780314', 'tblTempVendorCDR_20' ) start [2025-03-28 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780314', 'tblTempVendorCDR_20' ) end [2025-03-28 08:34:19] Production.INFO: ProcessCDR(1,14780314,1,1,2) [2025-03-28 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780314', 'tblTempUsageDetail_20' ) start [2025-03-28 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780314', 'tblTempUsageDetail_20' ) end [2025-03-28 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:34:22] Production.INFO: ==6683== Releasing lock... [2025-03-28 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-28 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:35:05 [end_date_ymd] => 2025-03-28 08:35:05 [RateCDR] => 1 ) [2025-03-28 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:35:05' and `end` < '2025-03-28 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:35:18] Production.INFO: count ==451 [2025-03-28 08:35:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:35:05 - End Time 2025-03-28 08:35:05 [2025-03-28 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780319', 'tblTempUsageDetail_20' ) start [2025-03-28 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780319', 'tblTempUsageDetail_20' ) end [2025-03-28 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780319', 'tblTempVendorCDR_20' ) start [2025-03-28 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780319', 'tblTempVendorCDR_20' ) end [2025-03-28 08:35:18] Production.INFO: ProcessCDR(1,14780319,1,1,2) [2025-03-28 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780319', 'tblTempUsageDetail_20' ) start [2025-03-28 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780319', 'tblTempUsageDetail_20' ) end [2025-03-28 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:35:23] Production.INFO: ==6763== Releasing lock... [2025-03-28 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:35:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:36:06 [end_date_ymd] => 2025-03-28 08:36:06 [RateCDR] => 1 ) [2025-03-28 08: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-28 05:36:06' and `end` < '2025-03-28 08: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-28 08:36:19] Production.INFO: count ==452 [2025-03-28 08:36:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:36:06 - End Time 2025-03-28 08:36:06 [2025-03-28 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780324', 'tblTempUsageDetail_20' ) start [2025-03-28 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780324', 'tblTempUsageDetail_20' ) end [2025-03-28 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780324', 'tblTempVendorCDR_20' ) start [2025-03-28 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780324', 'tblTempVendorCDR_20' ) end [2025-03-28 08:36:19] Production.INFO: ProcessCDR(1,14780324,1,1,2) [2025-03-28 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780324', 'tblTempUsageDetail_20' ) start [2025-03-28 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780324', 'tblTempUsageDetail_20' ) end [2025-03-28 08:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:36:24] Production.INFO: ==6843== Releasing lock... [2025-03-28 08:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:36:24] Production.INFO: 31.75 MB #Memory Used# [2025-03-28 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:37:05 [end_date_ymd] => 2025-03-28 08:37:05 [RateCDR] => 1 ) [2025-03-28 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:37:05' and `end` < '2025-03-28 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:37:18] Production.INFO: count ==464 [2025-03-28 08:37:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:37:05 - End Time 2025-03-28 08:37:05 [2025-03-28 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780329', 'tblTempUsageDetail_20' ) start [2025-03-28 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780329', 'tblTempUsageDetail_20' ) end [2025-03-28 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780329', 'tblTempVendorCDR_20' ) start [2025-03-28 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780329', 'tblTempVendorCDR_20' ) end [2025-03-28 08:37:18] Production.INFO: ProcessCDR(1,14780329,1,1,2) [2025-03-28 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780329', 'tblTempUsageDetail_20' ) start [2025-03-28 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780329', 'tblTempUsageDetail_20' ) end [2025-03-28 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:37:23] Production.INFO: ==6925== Releasing lock... [2025-03-28 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:37:23] Production.INFO: 32 MB #Memory Used# [2025-03-28 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:38:06 [end_date_ymd] => 2025-03-28 08:38:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:38:06' and `end` < '2025-03-28 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-28 08:38:18] Production.INFO: count ==464 [2025-03-28 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:38:06 - End Time 2025-03-28 08:38:06 [2025-03-28 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780334', 'tblTempUsageDetail_20' ) start [2025-03-28 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780334', 'tblTempUsageDetail_20' ) end [2025-03-28 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780334', 'tblTempVendorCDR_20' ) start [2025-03-28 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780334', 'tblTempVendorCDR_20' ) end [2025-03-28 08:38:18] Production.INFO: ProcessCDR(1,14780334,1,1,2) [2025-03-28 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780334', 'tblTempUsageDetail_20' ) start [2025-03-28 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780334', 'tblTempUsageDetail_20' ) end [2025-03-28 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:38:22] Production.INFO: ==7010== Releasing lock... [2025-03-28 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:38:22] Production.INFO: 32 MB #Memory Used# [2025-03-28 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:39:05 [end_date_ymd] => 2025-03-28 08:39:05 [RateCDR] => 1 ) [2025-03-28 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:39:05' and `end` < '2025-03-28 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:39:18] Production.INFO: count ==464 [2025-03-28 08:39:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:39:05 - End Time 2025-03-28 08:39:05 [2025-03-28 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780339', 'tblTempUsageDetail_20' ) start [2025-03-28 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780339', 'tblTempUsageDetail_20' ) end [2025-03-28 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780339', 'tblTempVendorCDR_20' ) start [2025-03-28 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780339', 'tblTempVendorCDR_20' ) end [2025-03-28 08:39:18] Production.INFO: ProcessCDR(1,14780339,1,1,2) [2025-03-28 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780339', 'tblTempUsageDetail_20' ) start [2025-03-28 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780339', 'tblTempUsageDetail_20' ) end [2025-03-28 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:39:21] Production.INFO: ==7095== Releasing lock... [2025-03-28 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:39:21] Production.INFO: 32 MB #Memory Used# [2025-03-28 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:40:06 [end_date_ymd] => 2025-03-28 08:40:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:40:06' and `end` < '2025-03-28 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-28 08:40:19] Production.INFO: count ==472 [2025-03-28 08:40:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:40:06 - End Time 2025-03-28 08:40:06 [2025-03-28 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780344', 'tblTempUsageDetail_20' ) start [2025-03-28 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780344', 'tblTempUsageDetail_20' ) end [2025-03-28 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780344', 'tblTempVendorCDR_20' ) start [2025-03-28 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780344', 'tblTempVendorCDR_20' ) end [2025-03-28 08:40:19] Production.INFO: ProcessCDR(1,14780344,1,1,2) [2025-03-28 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780344', 'tblTempUsageDetail_20' ) start [2025-03-28 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780344', 'tblTempUsageDetail_20' ) end [2025-03-28 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:40:22] Production.INFO: ==7179== Releasing lock... [2025-03-28 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:40:22] Production.INFO: 32 MB #Memory Used# [2025-03-28 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:41:05 [end_date_ymd] => 2025-03-28 08:41:05 [RateCDR] => 1 ) [2025-03-28 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:41:05' and `end` < '2025-03-28 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:41:18] Production.INFO: count ==498 [2025-03-28 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:41:05 - End Time 2025-03-28 08:41:05 [2025-03-28 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780350', 'tblTempUsageDetail_20' ) start [2025-03-28 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780350', 'tblTempUsageDetail_20' ) end [2025-03-28 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780350', 'tblTempVendorCDR_20' ) start [2025-03-28 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780350', 'tblTempVendorCDR_20' ) end [2025-03-28 08:41:18] Production.INFO: ProcessCDR(1,14780350,1,1,2) [2025-03-28 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780350', 'tblTempUsageDetail_20' ) start [2025-03-28 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780350', 'tblTempUsageDetail_20' ) end [2025-03-28 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:41:23] Production.INFO: ==7307== Releasing lock... [2025-03-28 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:41:23] Production.INFO: 32 MB #Memory Used# [2025-03-28 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:42:05 [end_date_ymd] => 2025-03-28 08:42:05 [RateCDR] => 1 ) [2025-03-28 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:42:05' and `end` < '2025-03-28 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:42:18] Production.INFO: count ==504 [2025-03-28 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:42:05 - End Time 2025-03-28 08:42:05 [2025-03-28 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780355', 'tblTempUsageDetail_20' ) start [2025-03-28 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780355', 'tblTempUsageDetail_20' ) end [2025-03-28 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780355', 'tblTempVendorCDR_20' ) start [2025-03-28 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780355', 'tblTempVendorCDR_20' ) end [2025-03-28 08:42:18] Production.INFO: ProcessCDR(1,14780355,1,1,2) [2025-03-28 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780355', 'tblTempUsageDetail_20' ) start [2025-03-28 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780355', 'tblTempUsageDetail_20' ) end [2025-03-28 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:42:23] Production.INFO: ==7395== Releasing lock... [2025-03-28 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:42:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-28 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:43:05 [end_date_ymd] => 2025-03-28 08:43:05 [RateCDR] => 1 ) [2025-03-28 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:43:05' and `end` < '2025-03-28 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:43:18] Production.INFO: count ==516 [2025-03-28 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:43:05 - End Time 2025-03-28 08:43:05 [2025-03-28 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780360', 'tblTempUsageDetail_20' ) start [2025-03-28 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780360', 'tblTempUsageDetail_20' ) end [2025-03-28 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780360', 'tblTempVendorCDR_20' ) start [2025-03-28 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780360', 'tblTempVendorCDR_20' ) end [2025-03-28 08:43:18] Production.INFO: ProcessCDR(1,14780360,1,1,2) [2025-03-28 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780360', 'tblTempUsageDetail_20' ) start [2025-03-28 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780360', 'tblTempUsageDetail_20' ) end [2025-03-28 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:43:21] Production.INFO: ==7469== Releasing lock... [2025-03-28 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:43:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-28 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:44:06 [end_date_ymd] => 2025-03-28 08:44:06 [RateCDR] => 1 ) [2025-03-28 08:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:44:06' and `end` < '2025-03-28 08:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:44:19] Production.INFO: count ==523 [2025-03-28 08:44:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:44:06 - End Time 2025-03-28 08:44:06 [2025-03-28 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780365', 'tblTempUsageDetail_20' ) start [2025-03-28 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780365', 'tblTempUsageDetail_20' ) end [2025-03-28 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780365', 'tblTempVendorCDR_20' ) start [2025-03-28 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780365', 'tblTempVendorCDR_20' ) end [2025-03-28 08:44:19] Production.INFO: ProcessCDR(1,14780365,1,1,2) [2025-03-28 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780365', 'tblTempUsageDetail_20' ) start [2025-03-28 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780365', 'tblTempUsageDetail_20' ) end [2025-03-28 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:44:22] Production.INFO: ==7555== Releasing lock... [2025-03-28 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:45:05 [end_date_ymd] => 2025-03-28 08:45:05 [RateCDR] => 1 ) [2025-03-28 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:45:05' and `end` < '2025-03-28 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:45:18] Production.INFO: count ==535 [2025-03-28 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:45:05 - End Time 2025-03-28 08:45:05 [2025-03-28 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780370', 'tblTempUsageDetail_20' ) start [2025-03-28 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780370', 'tblTempUsageDetail_20' ) end [2025-03-28 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780370', 'tblTempVendorCDR_20' ) start [2025-03-28 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780370', 'tblTempVendorCDR_20' ) end [2025-03-28 08:45:18] Production.INFO: ProcessCDR(1,14780370,1,1,2) [2025-03-28 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780370', 'tblTempUsageDetail_20' ) start [2025-03-28 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780370', 'tblTempUsageDetail_20' ) end [2025-03-28 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:45:21] Production.INFO: ==7641== Releasing lock... [2025-03-28 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-28 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:46:06 [end_date_ymd] => 2025-03-28 08:46:06 [RateCDR] => 1 ) [2025-03-28 08: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-28 05:46:06' and `end` < '2025-03-28 08: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-28 08:46:19] Production.INFO: count ==545 [2025-03-28 08:46:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:46:06 - End Time 2025-03-28 08:46:06 [2025-03-28 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780375', 'tblTempUsageDetail_20' ) start [2025-03-28 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780375', 'tblTempUsageDetail_20' ) end [2025-03-28 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780375', 'tblTempVendorCDR_20' ) start [2025-03-28 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780375', 'tblTempVendorCDR_20' ) end [2025-03-28 08:46:19] Production.INFO: ProcessCDR(1,14780375,1,1,2) [2025-03-28 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780375', 'tblTempUsageDetail_20' ) start [2025-03-28 08:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780375', 'tblTempUsageDetail_20' ) end [2025-03-28 08:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:46:24] Production.INFO: ==7724== Releasing lock... [2025-03-28 08:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:46:24] Production.INFO: 33 MB #Memory Used# [2025-03-28 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:47:05 [end_date_ymd] => 2025-03-28 08:47:05 [RateCDR] => 1 ) [2025-03-28 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:47:05' and `end` < '2025-03-28 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:47:17] Production.INFO: count ==557 [2025-03-28 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-28 05:47:05 - End Time 2025-03-28 08:47:05 [2025-03-28 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780380', 'tblTempUsageDetail_20' ) start [2025-03-28 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780380', 'tblTempUsageDetail_20' ) end [2025-03-28 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780380', 'tblTempVendorCDR_20' ) start [2025-03-28 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780380', 'tblTempVendorCDR_20' ) end [2025-03-28 08:47:17] Production.INFO: ProcessCDR(1,14780380,1,1,2) [2025-03-28 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780380', 'tblTempUsageDetail_20' ) start [2025-03-28 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780380', 'tblTempUsageDetail_20' ) end [2025-03-28 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:47:22] Production.INFO: ==7803== Releasing lock... [2025-03-28 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:47:22] Production.INFO: 33 MB #Memory Used# [2025-03-28 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:48:05 [end_date_ymd] => 2025-03-28 08:48:05 [RateCDR] => 1 ) [2025-03-28 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:48:05' and `end` < '2025-03-28 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:48:18] Production.INFO: count ==563 [2025-03-28 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:48:05 - End Time 2025-03-28 08:48:05 [2025-03-28 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780385', 'tblTempUsageDetail_20' ) start [2025-03-28 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780385', 'tblTempUsageDetail_20' ) end [2025-03-28 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780385', 'tblTempVendorCDR_20' ) start [2025-03-28 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780385', 'tblTempVendorCDR_20' ) end [2025-03-28 08:48:18] Production.INFO: ProcessCDR(1,14780385,1,1,2) [2025-03-28 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780385', 'tblTempUsageDetail_20' ) start [2025-03-28 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780385', 'tblTempUsageDetail_20' ) end [2025-03-28 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:48:23] Production.INFO: ==7880== Releasing lock... [2025-03-28 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:48:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:49:05 [end_date_ymd] => 2025-03-28 08:49:05 [RateCDR] => 1 ) [2025-03-28 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:49:05' and `end` < '2025-03-28 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:49:18] Production.INFO: count ==568 [2025-03-28 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:49:05 - End Time 2025-03-28 08:49:05 [2025-03-28 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780390', 'tblTempUsageDetail_20' ) start [2025-03-28 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780390', 'tblTempUsageDetail_20' ) end [2025-03-28 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780390', 'tblTempVendorCDR_20' ) start [2025-03-28 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780390', 'tblTempVendorCDR_20' ) end [2025-03-28 08:49:18] Production.INFO: ProcessCDR(1,14780390,1,1,2) [2025-03-28 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780390', 'tblTempUsageDetail_20' ) start [2025-03-28 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780390', 'tblTempUsageDetail_20' ) end [2025-03-28 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:49:21] Production.INFO: ==7986== Releasing lock... [2025-03-28 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-28 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:50:06 [end_date_ymd] => 2025-03-28 08:50:06 [RateCDR] => 1 ) [2025-03-28 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:50:06' and `end` < '2025-03-28 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:50:19] Production.INFO: count ==580 [2025-03-28 08:50:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:50:06 - End Time 2025-03-28 08:50:06 [2025-03-28 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780395', 'tblTempUsageDetail_20' ) start [2025-03-28 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780395', 'tblTempUsageDetail_20' ) end [2025-03-28 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780395', 'tblTempVendorCDR_20' ) start [2025-03-28 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780395', 'tblTempVendorCDR_20' ) end [2025-03-28 08:50:19] Production.INFO: ProcessCDR(1,14780395,1,1,2) [2025-03-28 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780395', 'tblTempUsageDetail_20' ) start [2025-03-28 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780395', 'tblTempUsageDetail_20' ) end [2025-03-28 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:50:22] Production.INFO: ==8073== Releasing lock... [2025-03-28 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:50:22] Production.INFO: 33 MB #Memory Used# [2025-03-28 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:51:06 [end_date_ymd] => 2025-03-28 08:51:06 [RateCDR] => 1 ) [2025-03-28 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-28 05:51:06' and `end` < '2025-03-28 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-28 08:51:19] Production.INFO: count ==631 [2025-03-28 08:51:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:51:06 - End Time 2025-03-28 08:51:06 [2025-03-28 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780401', 'tblTempUsageDetail_20' ) start [2025-03-28 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780401', 'tblTempUsageDetail_20' ) end [2025-03-28 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780401', 'tblTempVendorCDR_20' ) start [2025-03-28 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780401', 'tblTempVendorCDR_20' ) end [2025-03-28 08:51:19] Production.INFO: ProcessCDR(1,14780401,1,1,2) [2025-03-28 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780401', 'tblTempUsageDetail_20' ) start [2025-03-28 08:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780401', 'tblTempUsageDetail_20' ) end [2025-03-28 08:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:51:24] Production.INFO: ==8169== Releasing lock... [2025-03-28 08:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:51:24] Production.INFO: 32.75 MB #Memory Used# [2025-03-28 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:52:06 [end_date_ymd] => 2025-03-28 08:52:06 [RateCDR] => 1 ) [2025-03-28 08:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:52:06' and `end` < '2025-03-28 08:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:52:19] Production.INFO: count ==639 [2025-03-28 08:52:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:52:06 - End Time 2025-03-28 08:52:06 [2025-03-28 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780406', 'tblTempUsageDetail_20' ) start [2025-03-28 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780406', 'tblTempUsageDetail_20' ) end [2025-03-28 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780406', 'tblTempVendorCDR_20' ) start [2025-03-28 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780406', 'tblTempVendorCDR_20' ) end [2025-03-28 08:52:19] Production.INFO: ProcessCDR(1,14780406,1,1,2) [2025-03-28 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780406', 'tblTempUsageDetail_20' ) start [2025-03-28 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780406', 'tblTempUsageDetail_20' ) end [2025-03-28 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:52:23] Production.INFO: ==8261== Releasing lock... [2025-03-28 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:52:23] Production.INFO: 34 MB #Memory Used# [2025-03-28 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:53:06 [end_date_ymd] => 2025-03-28 08:53:06 [RateCDR] => 1 ) [2025-03-28 08:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:53:06' and `end` < '2025-03-28 08:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:53:19] Production.INFO: count ==643 [2025-03-28 08:53:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:53:06 - End Time 2025-03-28 08:53:06 [2025-03-28 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780411', 'tblTempUsageDetail_20' ) start [2025-03-28 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780411', 'tblTempUsageDetail_20' ) end [2025-03-28 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780411', 'tblTempVendorCDR_20' ) start [2025-03-28 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780411', 'tblTempVendorCDR_20' ) end [2025-03-28 08:53:19] Production.INFO: ProcessCDR(1,14780411,1,1,2) [2025-03-28 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780411', 'tblTempUsageDetail_20' ) start [2025-03-28 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780411', 'tblTempUsageDetail_20' ) end [2025-03-28 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:53:23] Production.INFO: ==8349== Releasing lock... [2025-03-28 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:53:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-28 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:54:06 [end_date_ymd] => 2025-03-28 08:54:06 [RateCDR] => 1 ) [2025-03-28 08:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:54:06' and `end` < '2025-03-28 08:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:54:18] Production.INFO: count ==657 [2025-03-28 08:54:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:54:06 - End Time 2025-03-28 08:54:06 [2025-03-28 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780416', 'tblTempUsageDetail_20' ) start [2025-03-28 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780416', 'tblTempUsageDetail_20' ) end [2025-03-28 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780416', 'tblTempVendorCDR_20' ) start [2025-03-28 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780416', 'tblTempVendorCDR_20' ) end [2025-03-28 08:54:19] Production.INFO: ProcessCDR(1,14780416,1,1,2) [2025-03-28 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780416', 'tblTempUsageDetail_20' ) start [2025-03-28 08:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780416', 'tblTempUsageDetail_20' ) end [2025-03-28 08:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:54:24] Production.INFO: ==8435== Releasing lock... [2025-03-28 08:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:54:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:55:06 [end_date_ymd] => 2025-03-28 08:55:06 [RateCDR] => 1 ) [2025-03-28 08:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:55:06' and `end` < '2025-03-28 08:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:55:18] Production.INFO: count ==664 [2025-03-28 08:55:19] Production.ERROR: pbx CDR StartTime 2025-03-28 05:55:06 - End Time 2025-03-28 08:55:06 [2025-03-28 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780421', 'tblTempUsageDetail_20' ) start [2025-03-28 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780421', 'tblTempUsageDetail_20' ) end [2025-03-28 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780421', 'tblTempVendorCDR_20' ) start [2025-03-28 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780421', 'tblTempVendorCDR_20' ) end [2025-03-28 08:55:19] Production.INFO: ProcessCDR(1,14780421,1,1,2) [2025-03-28 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780421', 'tblTempUsageDetail_20' ) start [2025-03-28 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780421', 'tblTempUsageDetail_20' ) end [2025-03-28 08:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:55:24] Production.INFO: ==8523== Releasing lock... [2025-03-28 08:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:55:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:56:06 [end_date_ymd] => 2025-03-28 08:56:06 [RateCDR] => 1 ) [2025-03-28 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:56:06' and `end` < '2025-03-28 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:56:18] Production.INFO: count ==669 [2025-03-28 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:56:06 - End Time 2025-03-28 08:56:06 [2025-03-28 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780426', 'tblTempUsageDetail_20' ) start [2025-03-28 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780426', 'tblTempUsageDetail_20' ) end [2025-03-28 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780426', 'tblTempVendorCDR_20' ) start [2025-03-28 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780426', 'tblTempVendorCDR_20' ) end [2025-03-28 08:56:18] Production.INFO: ProcessCDR(1,14780426,1,1,2) [2025-03-28 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780426', 'tblTempUsageDetail_20' ) start [2025-03-28 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780426', 'tblTempUsageDetail_20' ) end [2025-03-28 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:56:22] Production.INFO: ==8613== Releasing lock... [2025-03-28 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:56:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:57:05 [end_date_ymd] => 2025-03-28 08:57:05 [RateCDR] => 1 ) [2025-03-28 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 05:57:05' and `end` < '2025-03-28 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 08:57:18] Production.INFO: count ==677 [2025-03-28 08:57:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:57:05 - End Time 2025-03-28 08:57:05 [2025-03-28 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780431', 'tblTempUsageDetail_20' ) start [2025-03-28 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780431', 'tblTempUsageDetail_20' ) end [2025-03-28 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780431', 'tblTempVendorCDR_20' ) start [2025-03-28 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780431', 'tblTempVendorCDR_20' ) end [2025-03-28 08:57:18] Production.INFO: ProcessCDR(1,14780431,1,1,2) [2025-03-28 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780431', 'tblTempUsageDetail_20' ) start [2025-03-28 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780431', 'tblTempUsageDetail_20' ) end [2025-03-28 08:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:57:24] Production.INFO: ==8731== Releasing lock... [2025-03-28 08:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:57:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:58:05 [end_date_ymd] => 2025-03-28 08:58:05 [RateCDR] => 1 ) [2025-03-28 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-28 05:58:05' and `end` < '2025-03-28 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-28 08:58:18] Production.INFO: count ==679 [2025-03-28 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:58:05 - End Time 2025-03-28 08:58:05 [2025-03-28 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780436', 'tblTempUsageDetail_20' ) start [2025-03-28 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780436', 'tblTempUsageDetail_20' ) end [2025-03-28 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780436', 'tblTempVendorCDR_20' ) start [2025-03-28 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780436', 'tblTempVendorCDR_20' ) end [2025-03-28 08:58:18] Production.INFO: ProcessCDR(1,14780436,1,1,2) [2025-03-28 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780436', 'tblTempUsageDetail_20' ) start [2025-03-28 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780436', 'tblTempUsageDetail_20' ) end [2025-03-28 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:58:23] Production.INFO: ==8805== Releasing lock... [2025-03-28 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:58:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-28 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 05:59:05 [end_date_ymd] => 2025-03-28 08:59:05 [RateCDR] => 1 ) [2025-03-28 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-28 05:59:05' and `end` < '2025-03-28 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-28 08:59:18] Production.INFO: count ==686 [2025-03-28 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-28 05:59:05 - End Time 2025-03-28 08:59:05 [2025-03-28 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780441', 'tblTempUsageDetail_20' ) start [2025-03-28 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780441', 'tblTempUsageDetail_20' ) end [2025-03-28 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780441', 'tblTempVendorCDR_20' ) start [2025-03-28 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780441', 'tblTempVendorCDR_20' ) end [2025-03-28 08:59:18] Production.INFO: ProcessCDR(1,14780441,1,1,2) [2025-03-28 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780441', 'tblTempUsageDetail_20' ) start [2025-03-28 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780441', 'tblTempUsageDetail_20' ) end [2025-03-28 08:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 08:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 08:59:24] Production.INFO: ==8884== Releasing lock... [2025-03-28 08:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 08:59:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:00:06 [end_date_ymd] => 2025-03-28 09:00:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:00:06' and `end` < '2025-03-28 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-28 09:00:19] Production.INFO: count ==705 [2025-03-28 09:00:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:00:06 - End Time 2025-03-28 09:00:06 [2025-03-28 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780447', 'tblTempUsageDetail_20' ) start [2025-03-28 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780447', 'tblTempUsageDetail_20' ) end [2025-03-28 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780447', 'tblTempVendorCDR_20' ) start [2025-03-28 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780447', 'tblTempVendorCDR_20' ) end [2025-03-28 09:00:19] Production.INFO: ProcessCDR(1,14780447,1,1,2) [2025-03-28 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780447', 'tblTempUsageDetail_20' ) start [2025-03-28 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780447', 'tblTempUsageDetail_20' ) end [2025-03-28 09:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:00:25] Production.INFO: ==8968== Releasing lock... [2025-03-28 09:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:00:25] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:01:06 [end_date_ymd] => 2025-03-28 09:01:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:01:06' and `end` < '2025-03-28 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-28 09:01:19] Production.INFO: count ==737 [2025-03-28 09:01:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:01:06 - End Time 2025-03-28 09:01:06 [2025-03-28 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780452', 'tblTempUsageDetail_20' ) start [2025-03-28 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780452', 'tblTempUsageDetail_20' ) end [2025-03-28 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780452', 'tblTempVendorCDR_20' ) start [2025-03-28 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780452', 'tblTempVendorCDR_20' ) end [2025-03-28 09:01:19] Production.INFO: ProcessCDR(1,14780452,1,1,2) [2025-03-28 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780452', 'tblTempUsageDetail_20' ) start [2025-03-28 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780452', 'tblTempUsageDetail_20' ) end [2025-03-28 09:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:01:24] Production.INFO: ==9057== Releasing lock... [2025-03-28 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:01:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:02:05 [end_date_ymd] => 2025-03-28 09:02:05 [RateCDR] => 1 ) [2025-03-28 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-28 06:02:05' and `end` < '2025-03-28 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-28 09:02:18] Production.INFO: count ==752 [2025-03-28 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-28 06:02:05 - End Time 2025-03-28 09:02:05 [2025-03-28 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780457', 'tblTempUsageDetail_20' ) start [2025-03-28 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780457', 'tblTempUsageDetail_20' ) end [2025-03-28 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780457', 'tblTempVendorCDR_20' ) start [2025-03-28 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780457', 'tblTempVendorCDR_20' ) end [2025-03-28 09:02:18] Production.INFO: ProcessCDR(1,14780457,1,1,2) [2025-03-28 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780457', 'tblTempUsageDetail_20' ) start [2025-03-28 09:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780457', 'tblTempUsageDetail_20' ) end [2025-03-28 09:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:02:25] Production.INFO: ==9129== Releasing lock... [2025-03-28 09:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:02:25] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:03:06 [end_date_ymd] => 2025-03-28 09:03:06 [RateCDR] => 1 ) [2025-03-28 09: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-28 06:03:06' and `end` < '2025-03-28 09: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-28 09:03:18] Production.INFO: count ==754 [2025-03-28 09:03:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:03:06 - End Time 2025-03-28 09:03:06 [2025-03-28 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780462', 'tblTempUsageDetail_20' ) start [2025-03-28 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780462', 'tblTempUsageDetail_20' ) end [2025-03-28 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780462', 'tblTempVendorCDR_20' ) start [2025-03-28 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780462', 'tblTempVendorCDR_20' ) end [2025-03-28 09:03:19] Production.INFO: ProcessCDR(1,14780462,1,1,2) [2025-03-28 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780462', 'tblTempUsageDetail_20' ) start [2025-03-28 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780462', 'tblTempUsageDetail_20' ) end [2025-03-28 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:03:24] Production.INFO: ==9208== Releasing lock... [2025-03-28 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:03:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:04:05 [end_date_ymd] => 2025-03-28 09:04:05 [RateCDR] => 1 ) [2025-03-28 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-28 06:04:05' and `end` < '2025-03-28 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-28 09:04:18] Production.INFO: count ==766 [2025-03-28 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-28 06:04:05 - End Time 2025-03-28 09:04:05 [2025-03-28 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780467', 'tblTempUsageDetail_20' ) start [2025-03-28 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780467', 'tblTempUsageDetail_20' ) end [2025-03-28 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780467', 'tblTempVendorCDR_20' ) start [2025-03-28 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780467', 'tblTempVendorCDR_20' ) end [2025-03-28 09:04:18] Production.INFO: ProcessCDR(1,14780467,1,1,2) [2025-03-28 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780467', 'tblTempUsageDetail_20' ) start [2025-03-28 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780467', 'tblTempUsageDetail_20' ) end [2025-03-28 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:04:24] Production.INFO: ==9282== Releasing lock... [2025-03-28 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:04:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:05:06 [end_date_ymd] => 2025-03-28 09:05:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:05:06' and `end` < '2025-03-28 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-28 09:05:19] Production.INFO: count ==775 [2025-03-28 09:05:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:05:06 - End Time 2025-03-28 09:05:06 [2025-03-28 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780472', 'tblTempUsageDetail_20' ) start [2025-03-28 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780472', 'tblTempUsageDetail_20' ) end [2025-03-28 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780472', 'tblTempVendorCDR_20' ) start [2025-03-28 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780472', 'tblTempVendorCDR_20' ) end [2025-03-28 09:05:19] Production.INFO: ProcessCDR(1,14780472,1,1,2) [2025-03-28 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780472', 'tblTempUsageDetail_20' ) start [2025-03-28 09:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780472', 'tblTempUsageDetail_20' ) end [2025-03-28 09:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:05:25] Production.INFO: ==9357== Releasing lock... [2025-03-28 09:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:05:25] Production.INFO: 34 MB #Memory Used# [2025-03-28 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:06:06 [end_date_ymd] => 2025-03-28 09:06:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:06:06' and `end` < '2025-03-28 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-28 09:06:18] Production.INFO: count ==783 [2025-03-28 09:06:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:06:06 - End Time 2025-03-28 09:06:06 [2025-03-28 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780477', 'tblTempUsageDetail_20' ) start [2025-03-28 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780477', 'tblTempUsageDetail_20' ) end [2025-03-28 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780477', 'tblTempVendorCDR_20' ) start [2025-03-28 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780477', 'tblTempVendorCDR_20' ) end [2025-03-28 09:06:19] Production.INFO: ProcessCDR(1,14780477,1,1,2) [2025-03-28 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780477', 'tblTempUsageDetail_20' ) start [2025-03-28 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780477', 'tblTempUsageDetail_20' ) end [2025-03-28 09:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:06:25] Production.INFO: ==9434== Releasing lock... [2025-03-28 09:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:06:25] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:07:06 [end_date_ymd] => 2025-03-28 09:07:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:07:06' and `end` < '2025-03-28 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-28 09:07:19] Production.INFO: count ==794 [2025-03-28 09:07:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:07:06 - End Time 2025-03-28 09:07:06 [2025-03-28 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780482', 'tblTempUsageDetail_20' ) start [2025-03-28 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780482', 'tblTempUsageDetail_20' ) end [2025-03-28 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780482', 'tblTempVendorCDR_20' ) start [2025-03-28 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780482', 'tblTempVendorCDR_20' ) end [2025-03-28 09:07:19] Production.INFO: ProcessCDR(1,14780482,1,1,2) [2025-03-28 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780482', 'tblTempUsageDetail_20' ) start [2025-03-28 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780482', 'tblTempUsageDetail_20' ) end [2025-03-28 09:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:07:25] Production.INFO: ==9508== Releasing lock... [2025-03-28 09:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:07:25] Production.INFO: 33.75 MB #Memory Used# [2025-03-28 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:08:06 [end_date_ymd] => 2025-03-28 09:08:06 [RateCDR] => 1 ) [2025-03-28 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:08:06' and `end` < '2025-03-28 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:08:18] Production.INFO: count ==805 [2025-03-28 09:08:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:08:06 - End Time 2025-03-28 09:08:06 [2025-03-28 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780487', 'tblTempUsageDetail_20' ) start [2025-03-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780487', 'tblTempUsageDetail_20' ) end [2025-03-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780487', 'tblTempVendorCDR_20' ) start [2025-03-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780487', 'tblTempVendorCDR_20' ) end [2025-03-28 09:08:19] Production.INFO: ProcessCDR(1,14780487,1,1,2) [2025-03-28 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780487', 'tblTempUsageDetail_20' ) start [2025-03-28 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780487', 'tblTempUsageDetail_20' ) end [2025-03-28 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:08:24] Production.INFO: ==9580== Releasing lock... [2025-03-28 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:08:24] Production.INFO: 34.5 MB #Memory Used# [2025-03-28 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:09:06 [end_date_ymd] => 2025-03-28 09:09:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:09:06' and `end` < '2025-03-28 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-28 09:09:19] Production.INFO: count ==816 [2025-03-28 09:09:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:09:06 - End Time 2025-03-28 09:09:06 [2025-03-28 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780492', 'tblTempUsageDetail_20' ) start [2025-03-28 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780492', 'tblTempUsageDetail_20' ) end [2025-03-28 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780492', 'tblTempVendorCDR_20' ) start [2025-03-28 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780492', 'tblTempVendorCDR_20' ) end [2025-03-28 09:09:19] Production.INFO: ProcessCDR(1,14780492,1,1,2) [2025-03-28 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780492', 'tblTempUsageDetail_20' ) start [2025-03-28 09:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780492', 'tblTempUsageDetail_20' ) end [2025-03-28 09:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:09:25] Production.INFO: ==9654== Releasing lock... [2025-03-28 09:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:09:25] Production.INFO: 34.25 MB #Memory Used# [2025-03-28 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:10:06 [end_date_ymd] => 2025-03-28 09:10:06 [RateCDR] => 1 ) [2025-03-28 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:10:06' and `end` < '2025-03-28 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:10:19] Production.INFO: count ==830 [2025-03-28 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:10:06 - End Time 2025-03-28 09:10:06 [2025-03-28 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780496', 'tblTempUsageDetail_20' ) start [2025-03-28 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780496', 'tblTempUsageDetail_20' ) end [2025-03-28 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780496', 'tblTempVendorCDR_20' ) start [2025-03-28 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780496', 'tblTempVendorCDR_20' ) end [2025-03-28 09:10:20] Production.INFO: ProcessCDR(1,14780496,1,1,2) [2025-03-28 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780496', 'tblTempUsageDetail_20' ) start [2025-03-28 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780496', 'tblTempUsageDetail_20' ) end [2025-03-28 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:10:25] Production.INFO: ==9728== Releasing lock... [2025-03-28 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:10:25] Production.INFO: 34.5 MB #Memory Used# [2025-03-28 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:11:05 [end_date_ymd] => 2025-03-28 09:11:05 [RateCDR] => 1 ) [2025-03-28 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:11:05' and `end` < '2025-03-28 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:11:18] Production.INFO: count ==890 [2025-03-28 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-28 06:11:05 - End Time 2025-03-28 09:11:05 [2025-03-28 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780503', 'tblTempUsageDetail_20' ) start [2025-03-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780503', 'tblTempUsageDetail_20' ) end [2025-03-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780503', 'tblTempVendorCDR_20' ) start [2025-03-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780503', 'tblTempVendorCDR_20' ) end [2025-03-28 09:11:18] Production.INFO: ProcessCDR(1,14780503,1,1,2) [2025-03-28 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780503', 'tblTempUsageDetail_20' ) start [2025-03-28 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780503', 'tblTempUsageDetail_20' ) end [2025-03-28 09:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:11:24] Production.INFO: ==9805== Releasing lock... [2025-03-28 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:11:24] Production.INFO: 35 MB #Memory Used# [2025-03-28 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:12:06 [end_date_ymd] => 2025-03-28 09:12:06 [RateCDR] => 1 ) [2025-03-28 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:12:06' and `end` < '2025-03-28 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:12:19] Production.INFO: count ==916 [2025-03-28 09:12:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:12:06 - End Time 2025-03-28 09:12:06 [2025-03-28 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780508', 'tblTempUsageDetail_20' ) start [2025-03-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780508', 'tblTempUsageDetail_20' ) end [2025-03-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780508', 'tblTempVendorCDR_20' ) start [2025-03-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780508', 'tblTempVendorCDR_20' ) end [2025-03-28 09:12:19] Production.INFO: ProcessCDR(1,14780508,1,1,2) [2025-03-28 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780508', 'tblTempUsageDetail_20' ) start [2025-03-28 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780508', 'tblTempUsageDetail_20' ) end [2025-03-28 09:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:12:25] Production.INFO: ==9919== Releasing lock... [2025-03-28 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:12:25] Production.INFO: 34.75 MB #Memory Used# [2025-03-28 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:13:05 [end_date_ymd] => 2025-03-28 09:13:05 [RateCDR] => 1 ) [2025-03-28 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:13:05' and `end` < '2025-03-28 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:13:18] Production.INFO: count ==941 [2025-03-28 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-28 06:13:05 - End Time 2025-03-28 09:13:05 [2025-03-28 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780513', 'tblTempUsageDetail_20' ) start [2025-03-28 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780513', 'tblTempUsageDetail_20' ) end [2025-03-28 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780513', 'tblTempVendorCDR_20' ) start [2025-03-28 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780513', 'tblTempVendorCDR_20' ) end [2025-03-28 09:13:18] Production.INFO: ProcessCDR(1,14780513,1,1,2) [2025-03-28 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780513', 'tblTempUsageDetail_20' ) start [2025-03-28 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780513', 'tblTempUsageDetail_20' ) end [2025-03-28 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:13:25] Production.INFO: ==9995== Releasing lock... [2025-03-28 09:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:13:25] Production.INFO: 35.25 MB #Memory Used# [2025-03-28 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:14:06 [end_date_ymd] => 2025-03-28 09:14:06 [RateCDR] => 1 ) [2025-03-28 09:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:14:06' and `end` < '2025-03-28 09:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:14:18] Production.INFO: count ==970 [2025-03-28 09:14:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:14:06 - End Time 2025-03-28 09:14:06 [2025-03-28 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780518', 'tblTempUsageDetail_20' ) start [2025-03-28 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780518', 'tblTempUsageDetail_20' ) end [2025-03-28 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780518', 'tblTempVendorCDR_20' ) start [2025-03-28 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780518', 'tblTempVendorCDR_20' ) end [2025-03-28 09:14:19] Production.INFO: ProcessCDR(1,14780518,1,1,2) [2025-03-28 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780518', 'tblTempUsageDetail_20' ) start [2025-03-28 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780518', 'tblTempUsageDetail_20' ) end [2025-03-28 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:14:24] Production.INFO: ==10067== Releasing lock... [2025-03-28 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:14:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-28 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:15:05 [end_date_ymd] => 2025-03-28 09:15:05 [RateCDR] => 1 ) [2025-03-28 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:15:05' and `end` < '2025-03-28 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:15:18] Production.INFO: count ==973 [2025-03-28 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-28 06:15:05 - End Time 2025-03-28 09:15:05 [2025-03-28 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780523', 'tblTempUsageDetail_20' ) start [2025-03-28 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780523', 'tblTempUsageDetail_20' ) end [2025-03-28 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780523', 'tblTempVendorCDR_20' ) start [2025-03-28 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780523', 'tblTempVendorCDR_20' ) end [2025-03-28 09:15:18] Production.INFO: ProcessCDR(1,14780523,1,1,2) [2025-03-28 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780523', 'tblTempUsageDetail_20' ) start [2025-03-28 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780523', 'tblTempUsageDetail_20' ) end [2025-03-28 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:15:24] Production.INFO: ==10141== Releasing lock... [2025-03-28 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:15:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-28 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:16:06 [end_date_ymd] => 2025-03-28 09:16:06 [RateCDR] => 1 ) [2025-03-28 09:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:16:06' and `end` < '2025-03-28 09:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:16:19] Production.INFO: count ==977 [2025-03-28 09:16:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:16:06 - End Time 2025-03-28 09:16:06 [2025-03-28 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780528', 'tblTempUsageDetail_20' ) start [2025-03-28 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780528', 'tblTempUsageDetail_20' ) end [2025-03-28 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780528', 'tblTempVendorCDR_20' ) start [2025-03-28 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780528', 'tblTempVendorCDR_20' ) end [2025-03-28 09:16:19] Production.INFO: ProcessCDR(1,14780528,1,1,2) [2025-03-28 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780528', 'tblTempUsageDetail_20' ) start [2025-03-28 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780528', 'tblTempUsageDetail_20' ) end [2025-03-28 09:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:16:25] Production.INFO: ==10212== Releasing lock... [2025-03-28 09:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:16:25] Production.INFO: 35.5 MB #Memory Used# [2025-03-28 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:17:05 [end_date_ymd] => 2025-03-28 09:17:05 [RateCDR] => 1 ) [2025-03-28 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:17:05' and `end` < '2025-03-28 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:17:18] Production.INFO: count ==990 [2025-03-28 09:17:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:17:05 - End Time 2025-03-28 09:17:05 [2025-03-28 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780533', 'tblTempUsageDetail_20' ) start [2025-03-28 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780533', 'tblTempUsageDetail_20' ) end [2025-03-28 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780533', 'tblTempVendorCDR_20' ) start [2025-03-28 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780533', 'tblTempVendorCDR_20' ) end [2025-03-28 09:17:19] Production.INFO: ProcessCDR(1,14780533,1,1,2) [2025-03-28 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780533', 'tblTempUsageDetail_20' ) start [2025-03-28 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780533', 'tblTempUsageDetail_20' ) end [2025-03-28 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:17:24] Production.INFO: ==10283== Releasing lock... [2025-03-28 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:17:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-28 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:18:06 [end_date_ymd] => 2025-03-28 09:18:06 [RateCDR] => 1 ) [2025-03-28 09:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:18:06' and `end` < '2025-03-28 09:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:18:19] Production.INFO: count ==993 [2025-03-28 09:18:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:18:06 - End Time 2025-03-28 09:18:06 [2025-03-28 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780538', 'tblTempUsageDetail_20' ) start [2025-03-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780538', 'tblTempUsageDetail_20' ) end [2025-03-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780538', 'tblTempVendorCDR_20' ) start [2025-03-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780538', 'tblTempVendorCDR_20' ) end [2025-03-28 09:18:19] Production.INFO: ProcessCDR(1,14780538,1,1,2) [2025-03-28 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780538', 'tblTempUsageDetail_20' ) start [2025-03-28 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780538', 'tblTempUsageDetail_20' ) end [2025-03-28 09:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:18:25] Production.INFO: ==10373== Releasing lock... [2025-03-28 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:18:25] Production.INFO: 35.75 MB #Memory Used# [2025-03-28 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:19:05 [end_date_ymd] => 2025-03-28 09:19:05 [RateCDR] => 1 ) [2025-03-28 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:19:05' and `end` < '2025-03-28 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:19:18] Production.INFO: count ==1001 [2025-03-28 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-28 06:19:05 - End Time 2025-03-28 09:19:05 [2025-03-28 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780543', 'tblTempUsageDetail_20' ) start [2025-03-28 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780543', 'tblTempUsageDetail_20' ) end [2025-03-28 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780543', 'tblTempVendorCDR_20' ) start [2025-03-28 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780543', 'tblTempVendorCDR_20' ) end [2025-03-28 09:19:18] Production.INFO: ProcessCDR(1,14780543,1,1,2) [2025-03-28 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780543', 'tblTempUsageDetail_20' ) start [2025-03-28 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780543', 'tblTempUsageDetail_20' ) end [2025-03-28 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:19:24] Production.INFO: ==10451== Releasing lock... [2025-03-28 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:19:24] Production.INFO: 36 MB #Memory Used# [2025-03-28 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:20:07 [end_date_ymd] => 2025-03-28 09:20:07 [RateCDR] => 1 ) [2025-03-28 09:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:20:07' and `end` < '2025-03-28 09:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:20:20] Production.INFO: count ==1005 [2025-03-28 09:20:20] Production.ERROR: pbx CDR StartTime 2025-03-28 06:20:07 - End Time 2025-03-28 09:20:07 [2025-03-28 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780549', 'tblTempUsageDetail_20' ) start [2025-03-28 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780549', 'tblTempUsageDetail_20' ) end [2025-03-28 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780549', 'tblTempVendorCDR_20' ) start [2025-03-28 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780549', 'tblTempVendorCDR_20' ) end [2025-03-28 09:20:20] Production.INFO: ProcessCDR(1,14780549,1,1,2) [2025-03-28 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780549', 'tblTempUsageDetail_20' ) start [2025-03-28 09:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780549', 'tblTempUsageDetail_20' ) end [2025-03-28 09:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:20:26] Production.INFO: ==10526== Releasing lock... [2025-03-28 09:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:20:26] Production.INFO: 35.75 MB #Memory Used# [2025-03-28 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:21:05 [end_date_ymd] => 2025-03-28 09:21:05 [RateCDR] => 1 ) [2025-03-28 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:21:05' and `end` < '2025-03-28 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:21:18] Production.INFO: count ==1056 [2025-03-28 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-28 06:21:05 - End Time 2025-03-28 09:21:05 [2025-03-28 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780554', 'tblTempUsageDetail_20' ) start [2025-03-28 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780554', 'tblTempUsageDetail_20' ) end [2025-03-28 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780554', 'tblTempVendorCDR_20' ) start [2025-03-28 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780554', 'tblTempVendorCDR_20' ) end [2025-03-28 09:21:18] Production.INFO: ProcessCDR(1,14780554,1,1,2) [2025-03-28 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780554', 'tblTempUsageDetail_20' ) start [2025-03-28 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780554', 'tblTempUsageDetail_20' ) end [2025-03-28 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:21:24] Production.INFO: ==10599== Releasing lock... [2025-03-28 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:21:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-28 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:22:06 [end_date_ymd] => 2025-03-28 09:22:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:22:06' and `end` < '2025-03-28 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-28 09:22:19] Production.INFO: count ==1067 [2025-03-28 09:22:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:22:06 - End Time 2025-03-28 09:22:06 [2025-03-28 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780559', 'tblTempUsageDetail_20' ) start [2025-03-28 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780559', 'tblTempUsageDetail_20' ) end [2025-03-28 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780559', 'tblTempVendorCDR_20' ) start [2025-03-28 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780559', 'tblTempVendorCDR_20' ) end [2025-03-28 09:22:19] Production.INFO: ProcessCDR(1,14780559,1,1,2) [2025-03-28 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780559', 'tblTempUsageDetail_20' ) start [2025-03-28 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780559', 'tblTempUsageDetail_20' ) end [2025-03-28 09:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:22:25] Production.INFO: ==10672== Releasing lock... [2025-03-28 09:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:22:25] Production.INFO: 36.25 MB #Memory Used# [2025-03-28 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:23:05 [end_date_ymd] => 2025-03-28 09:23:05 [RateCDR] => 1 ) [2025-03-28 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-28 06:23:05' and `end` < '2025-03-28 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-28 09:23:18] Production.INFO: count ==1071 [2025-03-28 09:23:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:23:05 - End Time 2025-03-28 09:23:05 [2025-03-28 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780564', 'tblTempUsageDetail_20' ) start [2025-03-28 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780564', 'tblTempUsageDetail_20' ) end [2025-03-28 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780564', 'tblTempVendorCDR_20' ) start [2025-03-28 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780564', 'tblTempVendorCDR_20' ) end [2025-03-28 09:23:19] Production.INFO: ProcessCDR(1,14780564,1,1,2) [2025-03-28 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780564', 'tblTempUsageDetail_20' ) start [2025-03-28 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780564', 'tblTempUsageDetail_20' ) end [2025-03-28 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:23:24] Production.INFO: ==10744== Releasing lock... [2025-03-28 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:23:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-28 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:24:06 [end_date_ymd] => 2025-03-28 09:24:06 [RateCDR] => 1 ) [2025-03-28 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:24:06' and `end` < '2025-03-28 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:24:19] Production.INFO: count ==1084 [2025-03-28 09:24:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:24:06 - End Time 2025-03-28 09:24:06 [2025-03-28 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780569', 'tblTempUsageDetail_20' ) start [2025-03-28 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780569', 'tblTempUsageDetail_20' ) end [2025-03-28 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780569', 'tblTempVendorCDR_20' ) start [2025-03-28 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780569', 'tblTempVendorCDR_20' ) end [2025-03-28 09:24:19] Production.INFO: ProcessCDR(1,14780569,1,1,2) [2025-03-28 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780569', 'tblTempUsageDetail_20' ) start [2025-03-28 09:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780569', 'tblTempUsageDetail_20' ) end [2025-03-28 09:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:24:25] Production.INFO: ==10822== Releasing lock... [2025-03-28 09:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:24:25] Production.INFO: 36.25 MB #Memory Used# [2025-03-28 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:25:06 [end_date_ymd] => 2025-03-28 09:25:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:25:06' and `end` < '2025-03-28 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-28 09:25:19] Production.INFO: count ==1094 [2025-03-28 09:25:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:25:06 - End Time 2025-03-28 09:25:06 [2025-03-28 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780574', 'tblTempUsageDetail_20' ) start [2025-03-28 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780574', 'tblTempUsageDetail_20' ) end [2025-03-28 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780574', 'tblTempVendorCDR_20' ) start [2025-03-28 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780574', 'tblTempVendorCDR_20' ) end [2025-03-28 09:25:19] Production.INFO: ProcessCDR(1,14780574,1,1,2) [2025-03-28 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780574', 'tblTempUsageDetail_20' ) start [2025-03-28 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780574', 'tblTempUsageDetail_20' ) end [2025-03-28 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:25:25] Production.INFO: ==10894== Releasing lock... [2025-03-28 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:25:25] Production.INFO: 36.25 MB #Memory Used# [2025-03-28 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:26:06 [end_date_ymd] => 2025-03-28 09:26:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:26:06' and `end` < '2025-03-28 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-28 09:26:19] Production.INFO: count ==1112 [2025-03-28 09:26:20] Production.ERROR: pbx CDR StartTime 2025-03-28 06:26:06 - End Time 2025-03-28 09:26:06 [2025-03-28 09:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780579', 'tblTempUsageDetail_20' ) start [2025-03-28 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780579', 'tblTempUsageDetail_20' ) end [2025-03-28 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780579', 'tblTempVendorCDR_20' ) start [2025-03-28 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780579', 'tblTempVendorCDR_20' ) end [2025-03-28 09:26:20] Production.INFO: ProcessCDR(1,14780579,1,1,2) [2025-03-28 09:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780579', 'tblTempUsageDetail_20' ) start [2025-03-28 09:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780579', 'tblTempUsageDetail_20' ) end [2025-03-28 09:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:26:26] Production.INFO: ==10969== Releasing lock... [2025-03-28 09:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:26:26] Production.INFO: 36.75 MB #Memory Used# [2025-03-28 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:27:05 [end_date_ymd] => 2025-03-28 09:27:05 [RateCDR] => 1 ) [2025-03-28 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:27:05' and `end` < '2025-03-28 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:27:18] Production.INFO: count ==1132 [2025-03-28 09:27:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:27:05 - End Time 2025-03-28 09:27:05 [2025-03-28 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780584', 'tblTempUsageDetail_20' ) start [2025-03-28 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780584', 'tblTempUsageDetail_20' ) end [2025-03-28 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780584', 'tblTempVendorCDR_20' ) start [2025-03-28 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780584', 'tblTempVendorCDR_20' ) end [2025-03-28 09:27:19] Production.INFO: ProcessCDR(1,14780584,1,1,2) [2025-03-28 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780584', 'tblTempUsageDetail_20' ) start [2025-03-28 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780584', 'tblTempUsageDetail_20' ) end [2025-03-28 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:27:23] Production.INFO: ==11040== Releasing lock... [2025-03-28 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:27:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-28 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:28:06 [end_date_ymd] => 2025-03-28 09:28:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:28:06' and `end` < '2025-03-28 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-28 09:28:18] Production.INFO: count ==1162 [2025-03-28 09:28:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:28:06 - End Time 2025-03-28 09:28:06 [2025-03-28 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780589', 'tblTempUsageDetail_20' ) start [2025-03-28 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780589', 'tblTempUsageDetail_20' ) end [2025-03-28 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780589', 'tblTempVendorCDR_20' ) start [2025-03-28 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780589', 'tblTempVendorCDR_20' ) end [2025-03-28 09:28:19] Production.INFO: ProcessCDR(1,14780589,1,1,2) [2025-03-28 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780589', 'tblTempUsageDetail_20' ) start [2025-03-28 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780589', 'tblTempUsageDetail_20' ) end [2025-03-28 09:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:28:25] Production.INFO: ==11154== Releasing lock... [2025-03-28 09:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:28:25] Production.INFO: 37 MB #Memory Used# [2025-03-28 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:29:05 [end_date_ymd] => 2025-03-28 09:29:05 [RateCDR] => 1 ) [2025-03-28 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:29:05' and `end` < '2025-03-28 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:29:18] Production.INFO: count ==1175 [2025-03-28 09:29:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:29:05 - End Time 2025-03-28 09:29:05 [2025-03-28 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780594', 'tblTempUsageDetail_20' ) start [2025-03-28 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780594', 'tblTempUsageDetail_20' ) end [2025-03-28 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780594', 'tblTempVendorCDR_20' ) start [2025-03-28 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780594', 'tblTempVendorCDR_20' ) end [2025-03-28 09:29:19] Production.INFO: ProcessCDR(1,14780594,1,1,2) [2025-03-28 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780594', 'tblTempUsageDetail_20' ) start [2025-03-28 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780594', 'tblTempUsageDetail_20' ) end [2025-03-28 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:29:24] Production.INFO: ==11226== Releasing lock... [2025-03-28 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:29:24] Production.INFO: 37 MB #Memory Used# [2025-03-28 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:30:07 [end_date_ymd] => 2025-03-28 09:30:07 [RateCDR] => 1 ) [2025-03-28 09:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:30:07' and `end` < '2025-03-28 09:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:30:20] Production.INFO: count ==1196 [2025-03-28 09:30:21] Production.ERROR: pbx CDR StartTime 2025-03-28 06:30:07 - End Time 2025-03-28 09:30:07 [2025-03-28 09:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780600', 'tblTempUsageDetail_20' ) start [2025-03-28 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780600', 'tblTempUsageDetail_20' ) end [2025-03-28 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780600', 'tblTempVendorCDR_20' ) start [2025-03-28 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780600', 'tblTempVendorCDR_20' ) end [2025-03-28 09:30:21] Production.INFO: ProcessCDR(1,14780600,1,1,2) [2025-03-28 09:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780600', 'tblTempUsageDetail_20' ) start [2025-03-28 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780600', 'tblTempUsageDetail_20' ) end [2025-03-28 09:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:30:26] Production.INFO: ==11299== Releasing lock... [2025-03-28 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:30:26] Production.INFO: 36.75 MB #Memory Used# [2025-03-28 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:31:05 [end_date_ymd] => 2025-03-28 09:31:05 [RateCDR] => 1 ) [2025-03-28 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:31:05' and `end` < '2025-03-28 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:31:18] Production.INFO: count ==1275 [2025-03-28 09:31:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:31:05 - End Time 2025-03-28 09:31:05 [2025-03-28 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780605', 'tblTempUsageDetail_20' ) start [2025-03-28 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780605', 'tblTempUsageDetail_20' ) end [2025-03-28 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780605', 'tblTempVendorCDR_20' ) start [2025-03-28 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780605', 'tblTempVendorCDR_20' ) end [2025-03-28 09:31:19] Production.INFO: ProcessCDR(1,14780605,1,1,2) [2025-03-28 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780605', 'tblTempUsageDetail_20' ) start [2025-03-28 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780605', 'tblTempUsageDetail_20' ) end [2025-03-28 09:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:31:25] Production.INFO: ==11381== Releasing lock... [2025-03-28 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:31:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-28 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:32:05 [end_date_ymd] => 2025-03-28 09:32:05 [RateCDR] => 1 ) [2025-03-28 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:32:05' and `end` < '2025-03-28 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:32:18] Production.INFO: count ==1277 [2025-03-28 09:32:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:32:05 - End Time 2025-03-28 09:32:05 [2025-03-28 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780610', 'tblTempUsageDetail_20' ) start [2025-03-28 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780610', 'tblTempUsageDetail_20' ) end [2025-03-28 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780610', 'tblTempVendorCDR_20' ) start [2025-03-28 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780610', 'tblTempVendorCDR_20' ) end [2025-03-28 09:32:19] Production.INFO: ProcessCDR(1,14780610,1,1,2) [2025-03-28 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780610', 'tblTempUsageDetail_20' ) start [2025-03-28 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780610', 'tblTempUsageDetail_20' ) end [2025-03-28 09:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:32:22] Production.INFO: ==11455== Releasing lock... [2025-03-28 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:32:22] Production.INFO: 38 MB #Memory Used# [2025-03-28 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:33:05 [end_date_ymd] => 2025-03-28 09:33:05 [RateCDR] => 1 ) [2025-03-28 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-28 06:33:05' and `end` < '2025-03-28 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-28 09:33:18] Production.INFO: count ==1283 [2025-03-28 09:33:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:33:05 - End Time 2025-03-28 09:33:05 [2025-03-28 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780615', 'tblTempUsageDetail_20' ) start [2025-03-28 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780615', 'tblTempUsageDetail_20' ) end [2025-03-28 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780615', 'tblTempVendorCDR_20' ) start [2025-03-28 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780615', 'tblTempVendorCDR_20' ) end [2025-03-28 09:33:19] Production.INFO: ProcessCDR(1,14780615,1,1,2) [2025-03-28 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780615', 'tblTempUsageDetail_20' ) start [2025-03-28 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780615', 'tblTempUsageDetail_20' ) end [2025-03-28 09:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:33:25] Production.INFO: ==11528== Releasing lock... [2025-03-28 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:33:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-28 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:34:05 [end_date_ymd] => 2025-03-28 09:34:05 [RateCDR] => 1 ) [2025-03-28 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:34:05' and `end` < '2025-03-28 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:34:18] Production.INFO: count ==1296 [2025-03-28 09:34:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:34:05 - End Time 2025-03-28 09:34:05 [2025-03-28 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780620', 'tblTempUsageDetail_20' ) start [2025-03-28 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780620', 'tblTempUsageDetail_20' ) end [2025-03-28 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780620', 'tblTempVendorCDR_20' ) start [2025-03-28 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780620', 'tblTempVendorCDR_20' ) end [2025-03-28 09:34:19] Production.INFO: ProcessCDR(1,14780620,1,1,2) [2025-03-28 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780620', 'tblTempUsageDetail_20' ) start [2025-03-28 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780620', 'tblTempUsageDetail_20' ) end [2025-03-28 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:34:24] Production.INFO: ==11603== Releasing lock... [2025-03-28 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:34:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-28 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:35:06 [end_date_ymd] => 2025-03-28 09:35:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:35:06' and `end` < '2025-03-28 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-28 09:35:18] Production.INFO: count ==1316 [2025-03-28 09:35:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:35:06 - End Time 2025-03-28 09:35:06 [2025-03-28 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780625', 'tblTempUsageDetail_20' ) start [2025-03-28 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780625', 'tblTempUsageDetail_20' ) end [2025-03-28 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780625', 'tblTempVendorCDR_20' ) start [2025-03-28 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780625', 'tblTempVendorCDR_20' ) end [2025-03-28 09:35:19] Production.INFO: ProcessCDR(1,14780625,1,1,2) [2025-03-28 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780625', 'tblTempUsageDetail_20' ) start [2025-03-28 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780625', 'tblTempUsageDetail_20' ) end [2025-03-28 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:35:25] Production.INFO: ==11678== Releasing lock... [2025-03-28 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:35:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-28 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:36:06 [end_date_ymd] => 2025-03-28 09:36:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:36:06' and `end` < '2025-03-28 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-28 09:36:19] Production.INFO: count ==1333 [2025-03-28 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:36:06 - End Time 2025-03-28 09:36:06 [2025-03-28 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780630', 'tblTempUsageDetail_20' ) start [2025-03-28 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780630', 'tblTempUsageDetail_20' ) end [2025-03-28 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780630', 'tblTempVendorCDR_20' ) start [2025-03-28 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780630', 'tblTempVendorCDR_20' ) end [2025-03-28 09:36:19] Production.INFO: ProcessCDR(1,14780630,1,1,2) [2025-03-28 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780630', 'tblTempUsageDetail_20' ) start [2025-03-28 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780630', 'tblTempUsageDetail_20' ) end [2025-03-28 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:36:25] Production.INFO: ==11747== Releasing lock... [2025-03-28 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:36:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-28 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:37:05 [end_date_ymd] => 2025-03-28 09:37:05 [RateCDR] => 1 ) [2025-03-28 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-28 06:37:05' and `end` < '2025-03-28 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-28 09:37:18] Production.INFO: count ==1338 [2025-03-28 09:37:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:37:05 - End Time 2025-03-28 09:37:05 [2025-03-28 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780635', 'tblTempUsageDetail_20' ) start [2025-03-28 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780635', 'tblTempUsageDetail_20' ) end [2025-03-28 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780635', 'tblTempVendorCDR_20' ) start [2025-03-28 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780635', 'tblTempVendorCDR_20' ) end [2025-03-28 09:37:19] Production.INFO: ProcessCDR(1,14780635,1,1,2) [2025-03-28 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780635', 'tblTempUsageDetail_20' ) start [2025-03-28 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780635', 'tblTempUsageDetail_20' ) end [2025-03-28 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:37:25] Production.INFO: ==11823== Releasing lock... [2025-03-28 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:37:25] Production.INFO: 38 MB #Memory Used# [2025-03-28 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:38:05 [end_date_ymd] => 2025-03-28 09:38:05 [RateCDR] => 1 ) [2025-03-28 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:38:05' and `end` < '2025-03-28 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:38:18] Production.INFO: count ==1340 [2025-03-28 09:38:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:38:05 - End Time 2025-03-28 09:38:05 [2025-03-28 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780640', 'tblTempUsageDetail_20' ) start [2025-03-28 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780640', 'tblTempUsageDetail_20' ) end [2025-03-28 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780640', 'tblTempVendorCDR_20' ) start [2025-03-28 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780640', 'tblTempVendorCDR_20' ) end [2025-03-28 09:38:19] Production.INFO: ProcessCDR(1,14780640,1,1,2) [2025-03-28 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780640', 'tblTempUsageDetail_20' ) start [2025-03-28 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780640', 'tblTempUsageDetail_20' ) end [2025-03-28 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:38:24] Production.INFO: ==11897== Releasing lock... [2025-03-28 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:38:24] Production.INFO: 38 MB #Memory Used# [2025-03-28 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:39:06 [end_date_ymd] => 2025-03-28 09:39:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:39:06' and `end` < '2025-03-28 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-28 09:39:19] Production.INFO: count ==1349 [2025-03-28 09:39:20] Production.ERROR: pbx CDR StartTime 2025-03-28 06:39:06 - End Time 2025-03-28 09:39:06 [2025-03-28 09:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780645', 'tblTempUsageDetail_20' ) start [2025-03-28 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780645', 'tblTempUsageDetail_20' ) end [2025-03-28 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780645', 'tblTempVendorCDR_20' ) start [2025-03-28 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780645', 'tblTempVendorCDR_20' ) end [2025-03-28 09:39:20] Production.INFO: ProcessCDR(1,14780645,1,1,2) [2025-03-28 09:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780645', 'tblTempUsageDetail_20' ) start [2025-03-28 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780645', 'tblTempUsageDetail_20' ) end [2025-03-28 09:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:39:25] Production.INFO: ==11970== Releasing lock... [2025-03-28 09:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:39:25] Production.INFO: 38 MB #Memory Used# [2025-03-28 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:40:07 [end_date_ymd] => 2025-03-28 09:40:07 [RateCDR] => 1 ) [2025-03-28 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-28 06:40:07' and `end` < '2025-03-28 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-28 09:40:20] Production.INFO: count ==1385 [2025-03-28 09:40:20] Production.ERROR: pbx CDR StartTime 2025-03-28 06:40:07 - End Time 2025-03-28 09:40:07 [2025-03-28 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780651', 'tblTempUsageDetail_20' ) start [2025-03-28 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780651', 'tblTempUsageDetail_20' ) end [2025-03-28 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780651', 'tblTempVendorCDR_20' ) start [2025-03-28 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780651', 'tblTempVendorCDR_20' ) end [2025-03-28 09:40:20] Production.INFO: ProcessCDR(1,14780651,1,1,2) [2025-03-28 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780651', 'tblTempUsageDetail_20' ) start [2025-03-28 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780651', 'tblTempUsageDetail_20' ) end [2025-03-28 09:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:40:26] Production.INFO: ==12045== Releasing lock... [2025-03-28 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:40:26] Production.INFO: 38.25 MB #Memory Used# [2025-03-28 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:41:06 [end_date_ymd] => 2025-03-28 09:41:06 [RateCDR] => 1 ) [2025-03-28 09:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:41:06' and `end` < '2025-03-28 09:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:41:19] Production.INFO: count ==1449 [2025-03-28 09:41:20] Production.ERROR: pbx CDR StartTime 2025-03-28 06:41:06 - End Time 2025-03-28 09:41:06 [2025-03-28 09:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780656', 'tblTempUsageDetail_20' ) start [2025-03-28 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780656', 'tblTempUsageDetail_20' ) end [2025-03-28 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780656', 'tblTempVendorCDR_20' ) start [2025-03-28 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780656', 'tblTempVendorCDR_20' ) end [2025-03-28 09:41:20] Production.INFO: ProcessCDR(1,14780656,1,1,2) [2025-03-28 09:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780656', 'tblTempUsageDetail_20' ) start [2025-03-28 09:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780656', 'tblTempUsageDetail_20' ) end [2025-03-28 09:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:41:26] Production.INFO: ==12123== Releasing lock... [2025-03-28 09:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:41:26] Production.INFO: 38.75 MB #Memory Used# [2025-03-28 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:42:05 [end_date_ymd] => 2025-03-28 09:42:05 [RateCDR] => 1 ) [2025-03-28 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:42:05' and `end` < '2025-03-28 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:42:19] Production.INFO: count ==1474 [2025-03-28 09:42:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:42:05 - End Time 2025-03-28 09:42:05 [2025-03-28 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780661', 'tblTempUsageDetail_20' ) start [2025-03-28 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780661', 'tblTempUsageDetail_20' ) end [2025-03-28 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780661', 'tblTempVendorCDR_20' ) start [2025-03-28 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780661', 'tblTempVendorCDR_20' ) end [2025-03-28 09:42:19] Production.INFO: ProcessCDR(1,14780661,1,1,2) [2025-03-28 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780661', 'tblTempUsageDetail_20' ) start [2025-03-28 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780661', 'tblTempUsageDetail_20' ) end [2025-03-28 09:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:42:25] Production.INFO: ==12196== Releasing lock... [2025-03-28 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:42:25] Production.INFO: 39 MB #Memory Used# [2025-03-28 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:43:06 [end_date_ymd] => 2025-03-28 09:43:06 [RateCDR] => 1 ) [2025-03-28 09:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:43:06' and `end` < '2025-03-28 09:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:43:19] Production.INFO: count ==1491 [2025-03-28 09:43:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:43:06 - End Time 2025-03-28 09:43:06 [2025-03-28 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780666', 'tblTempUsageDetail_20' ) start [2025-03-28 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780666', 'tblTempUsageDetail_20' ) end [2025-03-28 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780666', 'tblTempVendorCDR_20' ) start [2025-03-28 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780666', 'tblTempVendorCDR_20' ) end [2025-03-28 09:43:20] Production.INFO: ProcessCDR(1,14780666,1,1,2) [2025-03-28 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780666', 'tblTempUsageDetail_20' ) start [2025-03-28 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780666', 'tblTempUsageDetail_20' ) end [2025-03-28 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:43:25] Production.INFO: ==12310== Releasing lock... [2025-03-28 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:43:25] Production.INFO: 39.25 MB #Memory Used# [2025-03-28 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:44:06 [end_date_ymd] => 2025-03-28 09:44:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:44:06' and `end` < '2025-03-28 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-28 09:44:19] Production.INFO: count ==1512 [2025-03-28 09:44:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:44:06 - End Time 2025-03-28 09:44:06 [2025-03-28 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780671', 'tblTempUsageDetail_20' ) start [2025-03-28 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780671', 'tblTempUsageDetail_20' ) end [2025-03-28 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780671', 'tblTempVendorCDR_20' ) start [2025-03-28 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780671', 'tblTempVendorCDR_20' ) end [2025-03-28 09:44:20] Production.INFO: ProcessCDR(1,14780671,1,1,2) [2025-03-28 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780671', 'tblTempUsageDetail_20' ) start [2025-03-28 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780671', 'tblTempUsageDetail_20' ) end [2025-03-28 09:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:44:26] Production.INFO: ==12387== Releasing lock... [2025-03-28 09:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:44:26] Production.INFO: 39.5 MB #Memory Used# [2025-03-28 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:45:06 [end_date_ymd] => 2025-03-28 09:45:06 [RateCDR] => 1 ) [2025-03-28 09:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:45:06' and `end` < '2025-03-28 09:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:45:19] Production.INFO: count ==1527 [2025-03-28 09:45:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:45:06 - End Time 2025-03-28 09:45:06 [2025-03-28 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780676', 'tblTempUsageDetail_20' ) start [2025-03-28 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780676', 'tblTempUsageDetail_20' ) end [2025-03-28 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780676', 'tblTempVendorCDR_20' ) start [2025-03-28 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780676', 'tblTempVendorCDR_20' ) end [2025-03-28 09:45:19] Production.INFO: ProcessCDR(1,14780676,1,1,2) [2025-03-28 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780676', 'tblTempUsageDetail_20' ) start [2025-03-28 09:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780676', 'tblTempUsageDetail_20' ) end [2025-03-28 09:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:45:26] Production.INFO: ==12471== Releasing lock... [2025-03-28 09:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:45:26] Production.INFO: 39.5 MB #Memory Used# [2025-03-28 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:46:05 [end_date_ymd] => 2025-03-28 09:46:05 [RateCDR] => 1 ) [2025-03-28 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-28 06:46:05' and `end` < '2025-03-28 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-28 09:46:18] Production.INFO: count ==1540 [2025-03-28 09:46:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:46:05 - End Time 2025-03-28 09:46:05 [2025-03-28 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780681', 'tblTempUsageDetail_20' ) start [2025-03-28 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780681', 'tblTempUsageDetail_20' ) end [2025-03-28 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780681', 'tblTempVendorCDR_20' ) start [2025-03-28 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780681', 'tblTempVendorCDR_20' ) end [2025-03-28 09:46:19] Production.INFO: ProcessCDR(1,14780681,1,1,2) [2025-03-28 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780681', 'tblTempUsageDetail_20' ) start [2025-03-28 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780681', 'tblTempUsageDetail_20' ) end [2025-03-28 09:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:46:25] Production.INFO: ==12543== Releasing lock... [2025-03-28 09:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:46:25] Production.INFO: 39.5 MB #Memory Used# [2025-03-28 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:47:06 [end_date_ymd] => 2025-03-28 09:47:06 [RateCDR] => 1 ) [2025-03-28 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:47:06' and `end` < '2025-03-28 09:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:47:19] Production.INFO: count ==1551 [2025-03-28 09:47:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:47:06 - End Time 2025-03-28 09:47:06 [2025-03-28 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780686', 'tblTempUsageDetail_20' ) start [2025-03-28 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780686', 'tblTempUsageDetail_20' ) end [2025-03-28 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780686', 'tblTempVendorCDR_20' ) start [2025-03-28 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780686', 'tblTempVendorCDR_20' ) end [2025-03-28 09:47:19] Production.INFO: ProcessCDR(1,14780686,1,1,2) [2025-03-28 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780686', 'tblTempUsageDetail_20' ) start [2025-03-28 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780686', 'tblTempUsageDetail_20' ) end [2025-03-28 09:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:47:25] Production.INFO: ==12626== Releasing lock... [2025-03-28 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:47:25] Production.INFO: 40 MB #Memory Used# [2025-03-28 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:48:06 [end_date_ymd] => 2025-03-28 09:48:06 [RateCDR] => 1 ) [2025-03-28 09:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:48:06' and `end` < '2025-03-28 09:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:48:19] Production.INFO: count ==1557 [2025-03-28 09:48:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:48:06 - End Time 2025-03-28 09:48:06 [2025-03-28 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780691', 'tblTempUsageDetail_20' ) start [2025-03-28 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780691', 'tblTempUsageDetail_20' ) end [2025-03-28 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780691', 'tblTempVendorCDR_20' ) start [2025-03-28 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780691', 'tblTempVendorCDR_20' ) end [2025-03-28 09:48:19] Production.INFO: ProcessCDR(1,14780691,1,1,2) [2025-03-28 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780691', 'tblTempUsageDetail_20' ) start [2025-03-28 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780691', 'tblTempUsageDetail_20' ) end [2025-03-28 09:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:48:25] Production.INFO: ==12712== Releasing lock... [2025-03-28 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:48:25] Production.INFO: 39.75 MB #Memory Used# [2025-03-28 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:49:05 [end_date_ymd] => 2025-03-28 09:49:05 [RateCDR] => 1 ) [2025-03-28 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-28 06:49:05' and `end` < '2025-03-28 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-28 09:49:18] Production.INFO: count ==1586 [2025-03-28 09:49:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:49:05 - End Time 2025-03-28 09:49:05 [2025-03-28 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780696', 'tblTempUsageDetail_20' ) start [2025-03-28 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780696', 'tblTempUsageDetail_20' ) end [2025-03-28 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780696', 'tblTempVendorCDR_20' ) start [2025-03-28 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780696', 'tblTempVendorCDR_20' ) end [2025-03-28 09:49:19] Production.INFO: ProcessCDR(1,14780696,1,1,2) [2025-03-28 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780696', 'tblTempUsageDetail_20' ) start [2025-03-28 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780696', 'tblTempUsageDetail_20' ) end [2025-03-28 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:49:24] Production.INFO: ==12794== Releasing lock... [2025-03-28 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:49:24] Production.INFO: 40 MB #Memory Used# [2025-03-28 09:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:50:07 [end_date_ymd] => 2025-03-28 09:50:07 [RateCDR] => 1 ) [2025-03-28 09:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:50:07' and `end` < '2025-03-28 09:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:50:20] Production.INFO: count ==1600 [2025-03-28 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-28 06:50:07 - End Time 2025-03-28 09:50:07 [2025-03-28 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780702', 'tblTempUsageDetail_20' ) start [2025-03-28 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780702', 'tblTempUsageDetail_20' ) end [2025-03-28 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780702', 'tblTempVendorCDR_20' ) start [2025-03-28 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780702', 'tblTempVendorCDR_20' ) end [2025-03-28 09:50:20] Production.INFO: ProcessCDR(1,14780702,1,1,2) [2025-03-28 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780702', 'tblTempUsageDetail_20' ) start [2025-03-28 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780702', 'tblTempUsageDetail_20' ) end [2025-03-28 09:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:50:26] Production.INFO: ==12881== Releasing lock... [2025-03-28 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:50:26] Production.INFO: 40 MB #Memory Used# [2025-03-28 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:51:06 [end_date_ymd] => 2025-03-28 09:51:06 [RateCDR] => 1 ) [2025-03-28 09:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:51:06' and `end` < '2025-03-28 09:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:51:19] Production.INFO: count ==1707 [2025-03-28 09:51:20] Production.ERROR: pbx CDR StartTime 2025-03-28 06:51:06 - End Time 2025-03-28 09:51:06 [2025-03-28 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780707', 'tblTempUsageDetail_20' ) start [2025-03-28 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780707', 'tblTempUsageDetail_20' ) end [2025-03-28 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780707', 'tblTempVendorCDR_20' ) start [2025-03-28 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780707', 'tblTempVendorCDR_20' ) end [2025-03-28 09:51:20] Production.INFO: ProcessCDR(1,14780707,1,1,2) [2025-03-28 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780707', 'tblTempUsageDetail_20' ) start [2025-03-28 09:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780707', 'tblTempUsageDetail_20' ) end [2025-03-28 09:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:51:26] Production.INFO: ==12964== Releasing lock... [2025-03-28 09:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:51:26] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:52:06 [end_date_ymd] => 2025-03-28 09:52:06 [RateCDR] => 1 ) [2025-03-28 09:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:52:06' and `end` < '2025-03-28 09:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:52:19] Production.INFO: count ==1732 [2025-03-28 09:52:20] Production.ERROR: pbx CDR StartTime 2025-03-28 06:52:06 - End Time 2025-03-28 09:52:06 [2025-03-28 09:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780712', 'tblTempUsageDetail_20' ) start [2025-03-28 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780712', 'tblTempUsageDetail_20' ) end [2025-03-28 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780712', 'tblTempVendorCDR_20' ) start [2025-03-28 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780712', 'tblTempVendorCDR_20' ) end [2025-03-28 09:52:20] Production.INFO: ProcessCDR(1,14780712,1,1,2) [2025-03-28 09:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780712', 'tblTempUsageDetail_20' ) start [2025-03-28 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780712', 'tblTempUsageDetail_20' ) end [2025-03-28 09:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:52:26] Production.INFO: ==13047== Releasing lock... [2025-03-28 09:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:52:26] Production.INFO: 41 MB #Memory Used# [2025-03-28 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:53:06 [end_date_ymd] => 2025-03-28 09:53:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:53:06' and `end` < '2025-03-28 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-28 09:53:19] Production.INFO: count ==1780 [2025-03-28 09:53:20] Production.ERROR: pbx CDR StartTime 2025-03-28 06:53:06 - End Time 2025-03-28 09:53:06 [2025-03-28 09:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780717', 'tblTempUsageDetail_20' ) start [2025-03-28 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780717', 'tblTempUsageDetail_20' ) end [2025-03-28 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780717', 'tblTempVendorCDR_20' ) start [2025-03-28 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780717', 'tblTempVendorCDR_20' ) end [2025-03-28 09:53:20] Production.INFO: ProcessCDR(1,14780717,1,1,2) [2025-03-28 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780717', 'tblTempUsageDetail_20' ) start [2025-03-28 09:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780717', 'tblTempUsageDetail_20' ) end [2025-03-28 09:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:53:26] Production.INFO: ==13131== Releasing lock... [2025-03-28 09:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:53:26] Production.INFO: 41.75 MB #Memory Used# [2025-03-28 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:54:06 [end_date_ymd] => 2025-03-28 09:54:06 [RateCDR] => 1 ) [2025-03-28 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-28 06:54:06' and `end` < '2025-03-28 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-28 09:54:19] Production.INFO: count ==1799 [2025-03-28 09:54:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:54:06 - End Time 2025-03-28 09:54:06 [2025-03-28 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780722', 'tblTempUsageDetail_20' ) start [2025-03-28 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780722', 'tblTempUsageDetail_20' ) end [2025-03-28 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780722', 'tblTempVendorCDR_20' ) start [2025-03-28 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780722', 'tblTempVendorCDR_20' ) end [2025-03-28 09:54:19] Production.INFO: ProcessCDR(1,14780722,1,1,2) [2025-03-28 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780722', 'tblTempUsageDetail_20' ) start [2025-03-28 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780722', 'tblTempUsageDetail_20' ) end [2025-03-28 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:54:25] Production.INFO: ==13215== Releasing lock... [2025-03-28 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:54:25] Production.INFO: 42 MB #Memory Used# [2025-03-28 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:55:05 [end_date_ymd] => 2025-03-28 09:55:05 [RateCDR] => 1 ) [2025-03-28 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:55:05' and `end` < '2025-03-28 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:55:19] Production.INFO: count ==1824 [2025-03-28 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:55:05 - End Time 2025-03-28 09:55:05 [2025-03-28 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780727', 'tblTempUsageDetail_20' ) start [2025-03-28 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780727', 'tblTempUsageDetail_20' ) end [2025-03-28 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780727', 'tblTempVendorCDR_20' ) start [2025-03-28 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780727', 'tblTempVendorCDR_20' ) end [2025-03-28 09:55:19] Production.INFO: ProcessCDR(1,14780727,1,1,2) [2025-03-28 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780727', 'tblTempUsageDetail_20' ) start [2025-03-28 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780727', 'tblTempUsageDetail_20' ) end [2025-03-28 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:55:25] Production.INFO: ==13301== Releasing lock... [2025-03-28 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:55:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-28 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:56:06 [end_date_ymd] => 2025-03-28 09:56:06 [RateCDR] => 1 ) [2025-03-28 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:56:06' and `end` < '2025-03-28 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:56:19] Production.INFO: count ==1830 [2025-03-28 09:56:20] Production.ERROR: pbx CDR StartTime 2025-03-28 06:56:06 - End Time 2025-03-28 09:56:06 [2025-03-28 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780732', 'tblTempUsageDetail_20' ) start [2025-03-28 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780732', 'tblTempUsageDetail_20' ) end [2025-03-28 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780732', 'tblTempVendorCDR_20' ) start [2025-03-28 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780732', 'tblTempVendorCDR_20' ) end [2025-03-28 09:56:20] Production.INFO: ProcessCDR(1,14780732,1,1,2) [2025-03-28 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780732', 'tblTempUsageDetail_20' ) start [2025-03-28 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780732', 'tblTempUsageDetail_20' ) end [2025-03-28 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:56:25] Production.INFO: ==13388== Releasing lock... [2025-03-28 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:56:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-28 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:57:05 [end_date_ymd] => 2025-03-28 09:57:05 [RateCDR] => 1 ) [2025-03-28 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:57:05' and `end` < '2025-03-28 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:57:19] Production.INFO: count ==1858 [2025-03-28 09:57:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:57:05 - End Time 2025-03-28 09:57:05 [2025-03-28 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780737', 'tblTempUsageDetail_20' ) start [2025-03-28 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780737', 'tblTempUsageDetail_20' ) end [2025-03-28 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780737', 'tblTempVendorCDR_20' ) start [2025-03-28 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780737', 'tblTempVendorCDR_20' ) end [2025-03-28 09:57:19] Production.INFO: ProcessCDR(1,14780737,1,1,2) [2025-03-28 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780737', 'tblTempUsageDetail_20' ) start [2025-03-28 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780737', 'tblTempUsageDetail_20' ) end [2025-03-28 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:57:24] Production.INFO: ==13474== Releasing lock... [2025-03-28 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:57:24] Production.INFO: 42 MB #Memory Used# [2025-03-28 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:58:05 [end_date_ymd] => 2025-03-28 09:58:05 [RateCDR] => 1 ) [2025-03-28 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-28 06:58:05' and `end` < '2025-03-28 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-28 09:58:19] Production.INFO: count ==1868 [2025-03-28 09:58:20] Production.ERROR: pbx CDR StartTime 2025-03-28 06:58:05 - End Time 2025-03-28 09:58:05 [2025-03-28 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780742', 'tblTempUsageDetail_20' ) start [2025-03-28 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780742', 'tblTempUsageDetail_20' ) end [2025-03-28 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780742', 'tblTempVendorCDR_20' ) start [2025-03-28 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780742', 'tblTempVendorCDR_20' ) end [2025-03-28 09:58:20] Production.INFO: ProcessCDR(1,14780742,1,1,2) [2025-03-28 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780742', 'tblTempUsageDetail_20' ) start [2025-03-28 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780742', 'tblTempUsageDetail_20' ) end [2025-03-28 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:58:24] Production.INFO: ==13556== Releasing lock... [2025-03-28 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:58:24] Production.INFO: 42 MB #Memory Used# [2025-03-28 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 06:59:05 [end_date_ymd] => 2025-03-28 09:59:05 [RateCDR] => 1 ) [2025-03-28 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 06:59:05' and `end` < '2025-03-28 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 09:59:19] Production.INFO: count ==1880 [2025-03-28 09:59:19] Production.ERROR: pbx CDR StartTime 2025-03-28 06:59:05 - End Time 2025-03-28 09:59:05 [2025-03-28 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780747', 'tblTempUsageDetail_20' ) start [2025-03-28 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780747', 'tblTempUsageDetail_20' ) end [2025-03-28 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780747', 'tblTempVendorCDR_20' ) start [2025-03-28 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780747', 'tblTempVendorCDR_20' ) end [2025-03-28 09:59:19] Production.INFO: ProcessCDR(1,14780747,1,1,2) [2025-03-28 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780747', 'tblTempUsageDetail_20' ) start [2025-03-28 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780747', 'tblTempUsageDetail_20' ) end [2025-03-28 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 09:59:25] Production.INFO: ==13681== Releasing lock... [2025-03-28 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 09:59:25] Production.INFO: 42.5 MB #Memory Used# [2025-03-28 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:00:06 [end_date_ymd] => 2025-03-28 10:00:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:00:06' and `end` < '2025-03-28 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-28 10:00:20] Production.INFO: count ==1900 [2025-03-28 10:00:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:00:06 - End Time 2025-03-28 10:00:06 [2025-03-28 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780753', 'tblTempUsageDetail_20' ) start [2025-03-28 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780753', 'tblTempUsageDetail_20' ) end [2025-03-28 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780753', 'tblTempVendorCDR_20' ) start [2025-03-28 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780753', 'tblTempVendorCDR_20' ) end [2025-03-28 10:00:21] Production.INFO: ProcessCDR(1,14780753,1,1,2) [2025-03-28 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780753', 'tblTempUsageDetail_20' ) start [2025-03-28 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780753', 'tblTempUsageDetail_20' ) end [2025-03-28 10:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:00:26] Production.INFO: ==13771== Releasing lock... [2025-03-28 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:00:26] Production.INFO: 42.5 MB #Memory Used# [2025-03-28 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:01:06 [end_date_ymd] => 2025-03-28 10:01:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:01:06' and `end` < '2025-03-28 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-28 10:01:19] Production.INFO: count ==1992 [2025-03-28 10:01:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:01:06 - End Time 2025-03-28 10:01:06 [2025-03-28 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780758', 'tblTempUsageDetail_20' ) start [2025-03-28 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780758', 'tblTempUsageDetail_20' ) end [2025-03-28 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780758', 'tblTempVendorCDR_20' ) start [2025-03-28 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780758', 'tblTempVendorCDR_20' ) end [2025-03-28 10:01:20] Production.INFO: ProcessCDR(1,14780758,1,1,2) [2025-03-28 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780758', 'tblTempUsageDetail_20' ) start [2025-03-28 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780758', 'tblTempUsageDetail_20' ) end [2025-03-28 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:01:26] Production.INFO: ==13873== Releasing lock... [2025-03-28 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:01:26] Production.INFO: 43 MB #Memory Used# [2025-03-28 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:02:06 [end_date_ymd] => 2025-03-28 10:02:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:02:06' and `end` < '2025-03-28 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-28 10:02:19] Production.INFO: count ==2014 [2025-03-28 10:02:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:02:06 - End Time 2025-03-28 10:02:06 [2025-03-28 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780763', 'tblTempUsageDetail_20' ) start [2025-03-28 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780763', 'tblTempUsageDetail_20' ) end [2025-03-28 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780763', 'tblTempVendorCDR_20' ) start [2025-03-28 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780763', 'tblTempVendorCDR_20' ) end [2025-03-28 10:02:20] Production.INFO: ProcessCDR(1,14780763,1,1,2) [2025-03-28 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780763', 'tblTempUsageDetail_20' ) start [2025-03-28 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780763', 'tblTempUsageDetail_20' ) end [2025-03-28 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:02:26] Production.INFO: ==13959== Releasing lock... [2025-03-28 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:02:26] Production.INFO: 43.5 MB #Memory Used# [2025-03-28 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:03:05 [end_date_ymd] => 2025-03-28 10:03:05 [RateCDR] => 1 ) [2025-03-28 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:03:05' and `end` < '2025-03-28 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:03:19] Production.INFO: count ==2038 [2025-03-28 10:03:19] Production.ERROR: pbx CDR StartTime 2025-03-28 07:03:05 - End Time 2025-03-28 10:03:05 [2025-03-28 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780768', 'tblTempUsageDetail_20' ) start [2025-03-28 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780768', 'tblTempUsageDetail_20' ) end [2025-03-28 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780768', 'tblTempVendorCDR_20' ) start [2025-03-28 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780768', 'tblTempVendorCDR_20' ) end [2025-03-28 10:03:19] Production.INFO: ProcessCDR(1,14780768,1,1,2) [2025-03-28 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780768', 'tblTempUsageDetail_20' ) start [2025-03-28 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780768', 'tblTempUsageDetail_20' ) end [2025-03-28 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:03:26] Production.INFO: ==14043== Releasing lock... [2025-03-28 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:03:26] Production.INFO: 43.25 MB #Memory Used# [2025-03-28 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:04:06 [end_date_ymd] => 2025-03-28 10:04:06 [RateCDR] => 1 ) [2025-03-28 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:04:06' and `end` < '2025-03-28 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:04:19] Production.INFO: count ==2087 [2025-03-28 10:04:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:04:06 - End Time 2025-03-28 10:04:06 [2025-03-28 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780773', 'tblTempUsageDetail_20' ) start [2025-03-28 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780773', 'tblTempUsageDetail_20' ) end [2025-03-28 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780773', 'tblTempVendorCDR_20' ) start [2025-03-28 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780773', 'tblTempVendorCDR_20' ) end [2025-03-28 10:04:20] Production.INFO: ProcessCDR(1,14780773,1,1,2) [2025-03-28 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780773', 'tblTempUsageDetail_20' ) start [2025-03-28 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780773', 'tblTempUsageDetail_20' ) end [2025-03-28 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:04:26] Production.INFO: ==14130== Releasing lock... [2025-03-28 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:04:26] Production.INFO: 43.75 MB #Memory Used# [2025-03-28 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:05:06 [end_date_ymd] => 2025-03-28 10:05:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:05:06' and `end` < '2025-03-28 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-28 10:05:19] Production.INFO: count ==2093 [2025-03-28 10:05:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:05:06 - End Time 2025-03-28 10:05:06 [2025-03-28 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780778', 'tblTempUsageDetail_20' ) start [2025-03-28 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780778', 'tblTempUsageDetail_20' ) end [2025-03-28 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780778', 'tblTempVendorCDR_20' ) start [2025-03-28 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780778', 'tblTempVendorCDR_20' ) end [2025-03-28 10:05:20] Production.INFO: ProcessCDR(1,14780778,1,1,2) [2025-03-28 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780778', 'tblTempUsageDetail_20' ) start [2025-03-28 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780778', 'tblTempUsageDetail_20' ) end [2025-03-28 10:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:05:26] Production.INFO: ==14213== Releasing lock... [2025-03-28 10:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:05:26] Production.INFO: 43.75 MB #Memory Used# [2025-03-28 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:06:06 [end_date_ymd] => 2025-03-28 10:06:06 [RateCDR] => 1 ) [2025-03-28 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:06:06' and `end` < '2025-03-28 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:06:19] Production.INFO: count ==2097 [2025-03-28 10:06:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:06:06 - End Time 2025-03-28 10:06:06 [2025-03-28 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780783', 'tblTempUsageDetail_20' ) start [2025-03-28 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780783', 'tblTempUsageDetail_20' ) end [2025-03-28 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780783', 'tblTempVendorCDR_20' ) start [2025-03-28 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780783', 'tblTempVendorCDR_20' ) end [2025-03-28 10:06:20] Production.INFO: ProcessCDR(1,14780783,1,1,2) [2025-03-28 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780783', 'tblTempUsageDetail_20' ) start [2025-03-28 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780783', 'tblTempUsageDetail_20' ) end [2025-03-28 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:06:26] Production.INFO: ==14298== Releasing lock... [2025-03-28 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:06:26] Production.INFO: 43.75 MB #Memory Used# [2025-03-28 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:07:06 [end_date_ymd] => 2025-03-28 10:07:06 [RateCDR] => 1 ) [2025-03-28 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:07:06' and `end` < '2025-03-28 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:07:19] Production.INFO: count ==2113 [2025-03-28 10:07:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:07:06 - End Time 2025-03-28 10:07:06 [2025-03-28 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780788', 'tblTempUsageDetail_20' ) start [2025-03-28 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780788', 'tblTempUsageDetail_20' ) end [2025-03-28 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780788', 'tblTempVendorCDR_20' ) start [2025-03-28 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780788', 'tblTempVendorCDR_20' ) end [2025-03-28 10:07:20] Production.INFO: ProcessCDR(1,14780788,1,1,2) [2025-03-28 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780788', 'tblTempUsageDetail_20' ) start [2025-03-28 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780788', 'tblTempUsageDetail_20' ) end [2025-03-28 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:07:26] Production.INFO: ==14382== Releasing lock... [2025-03-28 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:07:26] Production.INFO: 44 MB #Memory Used# [2025-03-28 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:08:06 [end_date_ymd] => 2025-03-28 10:08:06 [RateCDR] => 1 ) [2025-03-28 10:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:08:06' and `end` < '2025-03-28 10:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:08:19] Production.INFO: count ==2119 [2025-03-28 10:08:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:08:06 - End Time 2025-03-28 10:08:06 [2025-03-28 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780793', 'tblTempUsageDetail_20' ) start [2025-03-28 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780793', 'tblTempUsageDetail_20' ) end [2025-03-28 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780793', 'tblTempVendorCDR_20' ) start [2025-03-28 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780793', 'tblTempVendorCDR_20' ) end [2025-03-28 10:08:20] Production.INFO: ProcessCDR(1,14780793,1,1,2) [2025-03-28 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780793', 'tblTempUsageDetail_20' ) start [2025-03-28 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780793', 'tblTempUsageDetail_20' ) end [2025-03-28 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:08:25] Production.INFO: ==14469== Releasing lock... [2025-03-28 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:08:25] Production.INFO: 44 MB #Memory Used# [2025-03-28 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:09:05 [end_date_ymd] => 2025-03-28 10:09:05 [RateCDR] => 1 ) [2025-03-28 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-28 07:09:05' and `end` < '2025-03-28 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-28 10:09:18] Production.INFO: count ==2127 [2025-03-28 10:09:19] Production.ERROR: pbx CDR StartTime 2025-03-28 07:09:05 - End Time 2025-03-28 10:09:05 [2025-03-28 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780798', 'tblTempUsageDetail_20' ) start [2025-03-28 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780798', 'tblTempUsageDetail_20' ) end [2025-03-28 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780798', 'tblTempVendorCDR_20' ) start [2025-03-28 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780798', 'tblTempVendorCDR_20' ) end [2025-03-28 10:09:20] Production.INFO: ProcessCDR(1,14780798,1,1,2) [2025-03-28 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780798', 'tblTempUsageDetail_20' ) start [2025-03-28 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780798', 'tblTempUsageDetail_20' ) end [2025-03-28 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:09:25] Production.INFO: ==14557== Releasing lock... [2025-03-28 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:09:25] Production.INFO: 44.25 MB #Memory Used# [2025-03-28 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:10:07 [end_date_ymd] => 2025-03-28 10:10:07 [RateCDR] => 1 ) [2025-03-28 10:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:10:07' and `end` < '2025-03-28 10:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:10:20] Production.INFO: count ==2150 [2025-03-28 10:10:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:10:07 - End Time 2025-03-28 10:10:07 [2025-03-28 10:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780804', 'tblTempUsageDetail_20' ) start [2025-03-28 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780804', 'tblTempUsageDetail_20' ) end [2025-03-28 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780804', 'tblTempVendorCDR_20' ) start [2025-03-28 10:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780804', 'tblTempVendorCDR_20' ) end [2025-03-28 10:10:21] Production.INFO: ProcessCDR(1,14780804,1,1,2) [2025-03-28 10:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780804', 'tblTempUsageDetail_20' ) start [2025-03-28 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780804', 'tblTempUsageDetail_20' ) end [2025-03-28 10:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:10:27] Production.INFO: ==14650== Releasing lock... [2025-03-28 10:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:10:27] Production.INFO: 44.25 MB #Memory Used# [2025-03-28 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:11:05 [end_date_ymd] => 2025-03-28 10:11:05 [RateCDR] => 1 ) [2025-03-28 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:11:05' and `end` < '2025-03-28 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:11:19] Production.INFO: count ==2223 [2025-03-28 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-28 07:11:05 - End Time 2025-03-28 10:11:05 [2025-03-28 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780809', 'tblTempUsageDetail_20' ) start [2025-03-28 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780809', 'tblTempUsageDetail_20' ) end [2025-03-28 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780809', 'tblTempVendorCDR_20' ) start [2025-03-28 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780809', 'tblTempVendorCDR_20' ) end [2025-03-28 10:11:19] Production.INFO: ProcessCDR(1,14780809,1,1,2) [2025-03-28 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780809', 'tblTempUsageDetail_20' ) start [2025-03-28 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780809', 'tblTempUsageDetail_20' ) end [2025-03-28 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:11:23] Production.INFO: ==14735== Releasing lock... [2025-03-28 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:11:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-28 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:12:06 [end_date_ymd] => 2025-03-28 10:12:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:12:06' and `end` < '2025-03-28 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-28 10:12:19] Production.INFO: count ==2250 [2025-03-28 10:12:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:12:06 - End Time 2025-03-28 10:12:06 [2025-03-28 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780814', 'tblTempUsageDetail_20' ) start [2025-03-28 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780814', 'tblTempUsageDetail_20' ) end [2025-03-28 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780814', 'tblTempVendorCDR_20' ) start [2025-03-28 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780814', 'tblTempVendorCDR_20' ) end [2025-03-28 10:12:20] Production.INFO: ProcessCDR(1,14780814,1,1,2) [2025-03-28 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780814', 'tblTempUsageDetail_20' ) start [2025-03-28 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780814', 'tblTempUsageDetail_20' ) end [2025-03-28 10:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:12:26] Production.INFO: ==14824== Releasing lock... [2025-03-28 10:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:12:26] Production.INFO: 45 MB #Memory Used# [2025-03-28 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:13:06 [end_date_ymd] => 2025-03-28 10:13:06 [RateCDR] => 1 ) [2025-03-28 10: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-28 07:13:06' and `end` < '2025-03-28 10: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-28 10:13:19] Production.INFO: count ==2273 [2025-03-28 10:13:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:13:06 - End Time 2025-03-28 10:13:06 [2025-03-28 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780819', 'tblTempUsageDetail_20' ) start [2025-03-28 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780819', 'tblTempUsageDetail_20' ) end [2025-03-28 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780819', 'tblTempVendorCDR_20' ) start [2025-03-28 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780819', 'tblTempVendorCDR_20' ) end [2025-03-28 10:13:20] Production.INFO: ProcessCDR(1,14780819,1,1,2) [2025-03-28 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780819', 'tblTempUsageDetail_20' ) start [2025-03-28 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780819', 'tblTempUsageDetail_20' ) end [2025-03-28 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:13:26] Production.INFO: ==14907== Releasing lock... [2025-03-28 10:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:13:26] Production.INFO: 45.25 MB #Memory Used# [2025-03-28 10:14:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:14:07 [end_date_ymd] => 2025-03-28 10:14:07 [RateCDR] => 1 ) [2025-03-28 10:14: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-28 07:14:07' and `end` < '2025-03-28 10:14: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-28 10:14:20] Production.INFO: count ==2288 [2025-03-28 10:14:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:14:07 - End Time 2025-03-28 10:14:07 [2025-03-28 10:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780824', 'tblTempUsageDetail_20' ) start [2025-03-28 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780824', 'tblTempUsageDetail_20' ) end [2025-03-28 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780824', 'tblTempVendorCDR_20' ) start [2025-03-28 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780824', 'tblTempVendorCDR_20' ) end [2025-03-28 10:14:21] Production.INFO: ProcessCDR(1,14780824,1,1,2) [2025-03-28 10:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780824', 'tblTempUsageDetail_20' ) start [2025-03-28 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780824', 'tblTempUsageDetail_20' ) end [2025-03-28 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:14:26] Production.INFO: ==15034== Releasing lock... [2025-03-28 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:14:26] Production.INFO: 45.25 MB #Memory Used# [2025-03-28 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:15:06 [end_date_ymd] => 2025-03-28 10:15:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:15:06' and `end` < '2025-03-28 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-28 10:15:19] Production.INFO: count ==2295 [2025-03-28 10:15:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:15:06 - End Time 2025-03-28 10:15:06 [2025-03-28 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780829', 'tblTempUsageDetail_20' ) start [2025-03-28 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780829', 'tblTempUsageDetail_20' ) end [2025-03-28 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780829', 'tblTempVendorCDR_20' ) start [2025-03-28 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780829', 'tblTempVendorCDR_20' ) end [2025-03-28 10:15:20] Production.INFO: ProcessCDR(1,14780829,1,1,2) [2025-03-28 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780829', 'tblTempUsageDetail_20' ) start [2025-03-28 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780829', 'tblTempUsageDetail_20' ) end [2025-03-28 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:15:25] Production.INFO: ==15118== Releasing lock... [2025-03-28 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:15:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-28 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:16:06 [end_date_ymd] => 2025-03-28 10:16:06 [RateCDR] => 1 ) [2025-03-28 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:16:06' and `end` < '2025-03-28 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:16:19] Production.INFO: count ==2315 [2025-03-28 10:16:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:16:06 - End Time 2025-03-28 10:16:06 [2025-03-28 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780834', 'tblTempUsageDetail_20' ) start [2025-03-28 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780834', 'tblTempUsageDetail_20' ) end [2025-03-28 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780834', 'tblTempVendorCDR_20' ) start [2025-03-28 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780834', 'tblTempVendorCDR_20' ) end [2025-03-28 10:16:20] Production.INFO: ProcessCDR(1,14780834,1,1,2) [2025-03-28 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780834', 'tblTempUsageDetail_20' ) start [2025-03-28 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780834', 'tblTempUsageDetail_20' ) end [2025-03-28 10:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:16:26] Production.INFO: ==15208== Releasing lock... [2025-03-28 10:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:16:26] Production.INFO: 45.5 MB #Memory Used# [2025-03-28 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:17:06 [end_date_ymd] => 2025-03-28 10:17:06 [RateCDR] => 1 ) [2025-03-28 10: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-28 07:17:06' and `end` < '2025-03-28 10: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-28 10:17:19] Production.INFO: count ==2317 [2025-03-28 10:17:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:17:06 - End Time 2025-03-28 10:17:06 [2025-03-28 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780839', 'tblTempUsageDetail_20' ) start [2025-03-28 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780839', 'tblTempUsageDetail_20' ) end [2025-03-28 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780839', 'tblTempVendorCDR_20' ) start [2025-03-28 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780839', 'tblTempVendorCDR_20' ) end [2025-03-28 10:17:20] Production.INFO: ProcessCDR(1,14780839,1,1,2) [2025-03-28 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780839', 'tblTempUsageDetail_20' ) start [2025-03-28 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780839', 'tblTempUsageDetail_20' ) end [2025-03-28 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:17:25] Production.INFO: ==15293== Releasing lock... [2025-03-28 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:17:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-28 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:18:06 [end_date_ymd] => 2025-03-28 10:18:06 [RateCDR] => 1 ) [2025-03-28 10:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:18:06' and `end` < '2025-03-28 10:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:18:19] Production.INFO: count ==2338 [2025-03-28 10:18:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:18:06 - End Time 2025-03-28 10:18:06 [2025-03-28 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780844', 'tblTempUsageDetail_20' ) start [2025-03-28 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780844', 'tblTempUsageDetail_20' ) end [2025-03-28 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780844', 'tblTempVendorCDR_20' ) start [2025-03-28 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780844', 'tblTempVendorCDR_20' ) end [2025-03-28 10:18:20] Production.INFO: ProcessCDR(1,14780844,1,1,2) [2025-03-28 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780844', 'tblTempUsageDetail_20' ) start [2025-03-28 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780844', 'tblTempUsageDetail_20' ) end [2025-03-28 10:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:18:26] Production.INFO: ==15375== Releasing lock... [2025-03-28 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:18:26] Production.INFO: 45.5 MB #Memory Used# [2025-03-28 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:19:06 [end_date_ymd] => 2025-03-28 10:19:06 [RateCDR] => 1 ) [2025-03-28 10:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:19:06' and `end` < '2025-03-28 10:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:19:19] Production.INFO: count ==2343 [2025-03-28 10:19:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:19:06 - End Time 2025-03-28 10:19:06 [2025-03-28 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780849', 'tblTempUsageDetail_20' ) start [2025-03-28 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780849', 'tblTempUsageDetail_20' ) end [2025-03-28 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780849', 'tblTempVendorCDR_20' ) start [2025-03-28 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780849', 'tblTempVendorCDR_20' ) end [2025-03-28 10:19:20] Production.INFO: ProcessCDR(1,14780849,1,1,2) [2025-03-28 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780849', 'tblTempUsageDetail_20' ) start [2025-03-28 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780849', 'tblTempUsageDetail_20' ) end [2025-03-28 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:19:26] Production.INFO: ==15455== Releasing lock... [2025-03-28 10:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:19:26] Production.INFO: 45.75 MB #Memory Used# [2025-03-28 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:20:06 [end_date_ymd] => 2025-03-28 10:20:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:20:06' and `end` < '2025-03-28 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-28 10:20:20] Production.INFO: count ==2366 [2025-03-28 10:20:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:20:06 - End Time 2025-03-28 10:20:06 [2025-03-28 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780855', 'tblTempUsageDetail_20' ) start [2025-03-28 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780855', 'tblTempUsageDetail_20' ) end [2025-03-28 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780855', 'tblTempVendorCDR_20' ) start [2025-03-28 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780855', 'tblTempVendorCDR_20' ) end [2025-03-28 10:20:21] Production.INFO: ProcessCDR(1,14780855,1,1,2) [2025-03-28 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780855', 'tblTempUsageDetail_20' ) start [2025-03-28 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780855', 'tblTempUsageDetail_20' ) end [2025-03-28 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:20:27] Production.INFO: ==15544== Releasing lock... [2025-03-28 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:20:27] Production.INFO: 45.75 MB #Memory Used# [2025-03-28 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:21:06 [end_date_ymd] => 2025-03-28 10:21:06 [RateCDR] => 1 ) [2025-03-28 10:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:21:06' and `end` < '2025-03-28 10:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:21:19] Production.INFO: count ==2428 [2025-03-28 10:21:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:21:06 - End Time 2025-03-28 10:21:06 [2025-03-28 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780860', 'tblTempUsageDetail_20' ) start [2025-03-28 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780860', 'tblTempUsageDetail_20' ) end [2025-03-28 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780860', 'tblTempVendorCDR_20' ) start [2025-03-28 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780860', 'tblTempVendorCDR_20' ) end [2025-03-28 10:21:20] Production.INFO: ProcessCDR(1,14780860,1,1,2) [2025-03-28 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780860', 'tblTempUsageDetail_20' ) start [2025-03-28 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780860', 'tblTempUsageDetail_20' ) end [2025-03-28 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:21:23] Production.INFO: ==15627== Releasing lock... [2025-03-28 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:21:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-28 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:22:06 [end_date_ymd] => 2025-03-28 10:22:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:22:06' and `end` < '2025-03-28 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-28 10:22:19] Production.INFO: count ==2440 [2025-03-28 10:22:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:22:06 - End Time 2025-03-28 10:22:06 [2025-03-28 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780865', 'tblTempUsageDetail_20' ) start [2025-03-28 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780865', 'tblTempUsageDetail_20' ) end [2025-03-28 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780865', 'tblTempVendorCDR_20' ) start [2025-03-28 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780865', 'tblTempVendorCDR_20' ) end [2025-03-28 10:22:20] Production.INFO: ProcessCDR(1,14780865,1,1,2) [2025-03-28 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780865', 'tblTempUsageDetail_20' ) start [2025-03-28 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780865', 'tblTempUsageDetail_20' ) end [2025-03-28 10:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:22:26] Production.INFO: ==15707== Releasing lock... [2025-03-28 10:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:22:26] Production.INFO: 46.5 MB #Memory Used# [2025-03-28 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:23:06 [end_date_ymd] => 2025-03-28 10:23:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:23:06' and `end` < '2025-03-28 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-28 10:23:19] Production.INFO: count ==2442 [2025-03-28 10:23:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:23:06 - End Time 2025-03-28 10:23:06 [2025-03-28 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780870', 'tblTempUsageDetail_20' ) start [2025-03-28 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780870', 'tblTempUsageDetail_20' ) end [2025-03-28 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780870', 'tblTempVendorCDR_20' ) start [2025-03-28 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780870', 'tblTempVendorCDR_20' ) end [2025-03-28 10:23:20] Production.INFO: ProcessCDR(1,14780870,1,1,2) [2025-03-28 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780870', 'tblTempUsageDetail_20' ) start [2025-03-28 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780870', 'tblTempUsageDetail_20' ) end [2025-03-28 10:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:23:26] Production.INFO: ==15791== Releasing lock... [2025-03-28 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:23:26] Production.INFO: 46.5 MB #Memory Used# [2025-03-28 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:24:05 [end_date_ymd] => 2025-03-28 10:24:05 [RateCDR] => 1 ) [2025-03-28 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:24:05' and `end` < '2025-03-28 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:24:18] Production.INFO: count ==2452 [2025-03-28 10:24:19] Production.ERROR: pbx CDR StartTime 2025-03-28 07:24:05 - End Time 2025-03-28 10:24:05 [2025-03-28 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780875', 'tblTempUsageDetail_20' ) start [2025-03-28 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780875', 'tblTempUsageDetail_20' ) end [2025-03-28 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780875', 'tblTempVendorCDR_20' ) start [2025-03-28 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780875', 'tblTempVendorCDR_20' ) end [2025-03-28 10:24:19] Production.INFO: ProcessCDR(1,14780875,1,1,2) [2025-03-28 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780875', 'tblTempUsageDetail_20' ) start [2025-03-28 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780875', 'tblTempUsageDetail_20' ) end [2025-03-28 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:24:25] Production.INFO: ==15871== Releasing lock... [2025-03-28 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:24:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-28 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:25:06 [end_date_ymd] => 2025-03-28 10:25:06 [RateCDR] => 1 ) [2025-03-28 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:25:06' and `end` < '2025-03-28 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:25:19] Production.INFO: count ==2456 [2025-03-28 10:25:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:25:06 - End Time 2025-03-28 10:25:06 [2025-03-28 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780880', 'tblTempUsageDetail_20' ) start [2025-03-28 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780880', 'tblTempUsageDetail_20' ) end [2025-03-28 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780880', 'tblTempVendorCDR_20' ) start [2025-03-28 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780880', 'tblTempVendorCDR_20' ) end [2025-03-28 10:25:20] Production.INFO: ProcessCDR(1,14780880,1,1,2) [2025-03-28 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780880', 'tblTempUsageDetail_20' ) start [2025-03-28 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780880', 'tblTempUsageDetail_20' ) end [2025-03-28 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:25:27] Production.INFO: ==15983== Releasing lock... [2025-03-28 10:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:25:27] Production.INFO: 46.5 MB #Memory Used# [2025-03-28 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:26:06 [end_date_ymd] => 2025-03-28 10:26:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:26:06' and `end` < '2025-03-28 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-28 10:26:19] Production.INFO: count ==2467 [2025-03-28 10:26:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:26:06 - End Time 2025-03-28 10:26:06 [2025-03-28 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780885', 'tblTempUsageDetail_20' ) start [2025-03-28 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780885', 'tblTempUsageDetail_20' ) end [2025-03-28 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780885', 'tblTempVendorCDR_20' ) start [2025-03-28 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780885', 'tblTempVendorCDR_20' ) end [2025-03-28 10:26:20] Production.INFO: ProcessCDR(1,14780885,1,1,2) [2025-03-28 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780885', 'tblTempUsageDetail_20' ) start [2025-03-28 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780885', 'tblTempUsageDetail_20' ) end [2025-03-28 10:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:26:26] Production.INFO: ==16092== Releasing lock... [2025-03-28 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:26:26] Production.INFO: 46.5 MB #Memory Used# [2025-03-28 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:27:05 [end_date_ymd] => 2025-03-28 10:27:05 [RateCDR] => 1 ) [2025-03-28 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:27:05' and `end` < '2025-03-28 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:27:19] Production.INFO: count ==2479 [2025-03-28 10:27:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:27:05 - End Time 2025-03-28 10:27:05 [2025-03-28 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780890', 'tblTempUsageDetail_20' ) start [2025-03-28 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780890', 'tblTempUsageDetail_20' ) end [2025-03-28 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780890', 'tblTempVendorCDR_20' ) start [2025-03-28 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780890', 'tblTempVendorCDR_20' ) end [2025-03-28 10:27:20] Production.INFO: ProcessCDR(1,14780890,1,1,2) [2025-03-28 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780890', 'tblTempUsageDetail_20' ) start [2025-03-28 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780890', 'tblTempUsageDetail_20' ) end [2025-03-28 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:27:26] Production.INFO: ==16189== Releasing lock... [2025-03-28 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:27:26] Production.INFO: 46.75 MB #Memory Used# [2025-03-28 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:28:06 [end_date_ymd] => 2025-03-28 10:28:06 [RateCDR] => 1 ) [2025-03-28 10:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:28:06' and `end` < '2025-03-28 10:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:28:19] Production.INFO: count ==2513 [2025-03-28 10:28:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:28:06 - End Time 2025-03-28 10:28:06 [2025-03-28 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780895', 'tblTempUsageDetail_20' ) start [2025-03-28 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780895', 'tblTempUsageDetail_20' ) end [2025-03-28 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780895', 'tblTempVendorCDR_20' ) start [2025-03-28 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780895', 'tblTempVendorCDR_20' ) end [2025-03-28 10:28:20] Production.INFO: ProcessCDR(1,14780895,1,1,2) [2025-03-28 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780895', 'tblTempUsageDetail_20' ) start [2025-03-28 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780895', 'tblTempUsageDetail_20' ) end [2025-03-28 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:28:26] Production.INFO: ==16264== Releasing lock... [2025-03-28 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:28:26] Production.INFO: 47 MB #Memory Used# [2025-03-28 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:29:05 [end_date_ymd] => 2025-03-28 10:29:05 [RateCDR] => 1 ) [2025-03-28 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:29:05' and `end` < '2025-03-28 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:29:18] Production.INFO: count ==2515 [2025-03-28 10:29:19] Production.ERROR: pbx CDR StartTime 2025-03-28 07:29:05 - End Time 2025-03-28 10:29:05 [2025-03-28 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780900', 'tblTempUsageDetail_20' ) start [2025-03-28 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780900', 'tblTempUsageDetail_20' ) end [2025-03-28 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780900', 'tblTempVendorCDR_20' ) start [2025-03-28 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780900', 'tblTempVendorCDR_20' ) end [2025-03-28 10:29:19] Production.INFO: ProcessCDR(1,14780900,1,1,2) [2025-03-28 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780900', 'tblTempUsageDetail_20' ) start [2025-03-28 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780900', 'tblTempUsageDetail_20' ) end [2025-03-28 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:29:25] Production.INFO: ==16344== Releasing lock... [2025-03-28 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:29:25] Production.INFO: 47 MB #Memory Used# [2025-03-28 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:30:07 [end_date_ymd] => 2025-03-28 10:30:07 [RateCDR] => 1 ) [2025-03-28 10:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:30:07' and `end` < '2025-03-28 10:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:30:20] Production.INFO: count ==2531 [2025-03-28 10:30:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:30:07 - End Time 2025-03-28 10:30:07 [2025-03-28 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780906', 'tblTempUsageDetail_20' ) start [2025-03-28 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780906', 'tblTempUsageDetail_20' ) end [2025-03-28 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780906', 'tblTempVendorCDR_20' ) start [2025-03-28 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780906', 'tblTempVendorCDR_20' ) end [2025-03-28 10:30:22] Production.INFO: ProcessCDR(1,14780906,1,1,2) [2025-03-28 10:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780906', 'tblTempUsageDetail_20' ) start [2025-03-28 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780906', 'tblTempUsageDetail_20' ) end [2025-03-28 10:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:30:27] Production.INFO: ==16465== Releasing lock... [2025-03-28 10:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:30:27] Production.INFO: 47 MB #Memory Used# [2025-03-28 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:31:06 [end_date_ymd] => 2025-03-28 10:31:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:31:06' and `end` < '2025-03-28 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-28 10:31:19] Production.INFO: count ==2651 [2025-03-28 10:31:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:31:06 - End Time 2025-03-28 10:31:06 [2025-03-28 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780911', 'tblTempUsageDetail_20' ) start [2025-03-28 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780911', 'tblTempUsageDetail_20' ) end [2025-03-28 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780911', 'tblTempVendorCDR_20' ) start [2025-03-28 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780911', 'tblTempVendorCDR_20' ) end [2025-03-28 10:31:20] Production.INFO: ProcessCDR(1,14780911,1,1,2) [2025-03-28 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780911', 'tblTempUsageDetail_20' ) start [2025-03-28 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780911', 'tblTempUsageDetail_20' ) end [2025-03-28 10:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:31:26] Production.INFO: ==16540== Releasing lock... [2025-03-28 10:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:31:26] Production.INFO: 48 MB #Memory Used# [2025-03-28 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:32:05 [end_date_ymd] => 2025-03-28 10:32:05 [RateCDR] => 1 ) [2025-03-28 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:32:05' and `end` < '2025-03-28 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-28 10:32:19] Production.INFO: count ==2671 [2025-03-28 10:32:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:32:05 - End Time 2025-03-28 10:32:05 [2025-03-28 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780916', 'tblTempUsageDetail_20' ) start [2025-03-28 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780916', 'tblTempUsageDetail_20' ) end [2025-03-28 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780916', 'tblTempVendorCDR_20' ) start [2025-03-28 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780916', 'tblTempVendorCDR_20' ) end [2025-03-28 10:32:20] Production.INFO: ProcessCDR(1,14780916,1,1,2) [2025-03-28 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780916', 'tblTempUsageDetail_20' ) start [2025-03-28 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780916', 'tblTempUsageDetail_20' ) end [2025-03-28 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:32:26] Production.INFO: ==16619== Releasing lock... [2025-03-28 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:32:26] Production.INFO: 48 MB #Memory Used# [2025-03-28 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:33:06 [end_date_ymd] => 2025-03-28 10:33:06 [RateCDR] => 1 ) [2025-03-28 10:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:33:06' and `end` < '2025-03-28 10:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:33:19] Production.INFO: count ==2687 [2025-03-28 10:33:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:33:06 - End Time 2025-03-28 10:33:06 [2025-03-28 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780921', 'tblTempUsageDetail_20' ) start [2025-03-28 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780921', 'tblTempUsageDetail_20' ) end [2025-03-28 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780921', 'tblTempVendorCDR_20' ) start [2025-03-28 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780921', 'tblTempVendorCDR_20' ) end [2025-03-28 10:33:20] Production.INFO: ProcessCDR(1,14780921,1,1,2) [2025-03-28 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780921', 'tblTempUsageDetail_20' ) start [2025-03-28 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780921', 'tblTempUsageDetail_20' ) end [2025-03-28 10:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:33:26] Production.INFO: ==16695== Releasing lock... [2025-03-28 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:33:26] Production.INFO: 48.25 MB #Memory Used# [2025-03-28 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:34:05 [end_date_ymd] => 2025-03-28 10:34:05 [RateCDR] => 1 ) [2025-03-28 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-28 07:34:05' and `end` < '2025-03-28 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-28 10:34:19] Production.INFO: count ==2702 [2025-03-28 10:34:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:34:05 - End Time 2025-03-28 10:34:05 [2025-03-28 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780926', 'tblTempUsageDetail_20' ) start [2025-03-28 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780926', 'tblTempUsageDetail_20' ) end [2025-03-28 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780926', 'tblTempVendorCDR_20' ) start [2025-03-28 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780926', 'tblTempVendorCDR_20' ) end [2025-03-28 10:34:20] Production.INFO: ProcessCDR(1,14780926,1,1,2) [2025-03-28 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780926', 'tblTempUsageDetail_20' ) start [2025-03-28 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780926', 'tblTempUsageDetail_20' ) end [2025-03-28 10:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:34:25] Production.INFO: ==16784== Releasing lock... [2025-03-28 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:34:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-28 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:35:06 [end_date_ymd] => 2025-03-28 10:35:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:35:06' and `end` < '2025-03-28 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-28 10:35:19] Production.INFO: count ==2709 [2025-03-28 10:35:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:35:06 - End Time 2025-03-28 10:35:06 [2025-03-28 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780931', 'tblTempUsageDetail_20' ) start [2025-03-28 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780931', 'tblTempUsageDetail_20' ) end [2025-03-28 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780931', 'tblTempVendorCDR_20' ) start [2025-03-28 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780931', 'tblTempVendorCDR_20' ) end [2025-03-28 10:35:20] Production.INFO: ProcessCDR(1,14780931,1,1,2) [2025-03-28 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780931', 'tblTempUsageDetail_20' ) start [2025-03-28 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780931', 'tblTempUsageDetail_20' ) end [2025-03-28 10:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:35:26] Production.INFO: ==16867== Releasing lock... [2025-03-28 10:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:35:26] Production.INFO: 48.25 MB #Memory Used# [2025-03-28 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:36:06 [end_date_ymd] => 2025-03-28 10:36:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:36:06' and `end` < '2025-03-28 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-28 10:36:19] Production.INFO: count ==2719 [2025-03-28 10:36:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:36:06 - End Time 2025-03-28 10:36:06 [2025-03-28 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780936', 'tblTempUsageDetail_20' ) start [2025-03-28 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780936', 'tblTempUsageDetail_20' ) end [2025-03-28 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780936', 'tblTempVendorCDR_20' ) start [2025-03-28 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780936', 'tblTempVendorCDR_20' ) end [2025-03-28 10:36:20] Production.INFO: ProcessCDR(1,14780936,1,1,2) [2025-03-28 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780936', 'tblTempUsageDetail_20' ) start [2025-03-28 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780936', 'tblTempUsageDetail_20' ) end [2025-03-28 10:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:36:26] Production.INFO: ==16952== Releasing lock... [2025-03-28 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:36:26] Production.INFO: 48.5 MB #Memory Used# [2025-03-28 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:37:05 [end_date_ymd] => 2025-03-28 10:37:05 [RateCDR] => 1 ) [2025-03-28 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:37:05' and `end` < '2025-03-28 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:37:19] Production.INFO: count ==2748 [2025-03-28 10:37:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:37:05 - End Time 2025-03-28 10:37:05 [2025-03-28 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780941', 'tblTempUsageDetail_20' ) start [2025-03-28 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780941', 'tblTempUsageDetail_20' ) end [2025-03-28 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780941', 'tblTempVendorCDR_20' ) start [2025-03-28 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780941', 'tblTempVendorCDR_20' ) end [2025-03-28 10:37:20] Production.INFO: ProcessCDR(1,14780941,1,1,2) [2025-03-28 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780941', 'tblTempUsageDetail_20' ) start [2025-03-28 10:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780941', 'tblTempUsageDetail_20' ) end [2025-03-28 10:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:37:26] Production.INFO: ==17033== Releasing lock... [2025-03-28 10:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:37:26] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:38:05 [end_date_ymd] => 2025-03-28 10:38:05 [RateCDR] => 1 ) [2025-03-28 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-28 07:38:05' and `end` < '2025-03-28 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-28 10:38:19] Production.INFO: count ==2776 [2025-03-28 10:38:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:38:05 - End Time 2025-03-28 10:38:05 [2025-03-28 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780946', 'tblTempUsageDetail_20' ) start [2025-03-28 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780946', 'tblTempUsageDetail_20' ) end [2025-03-28 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780946', 'tblTempVendorCDR_20' ) start [2025-03-28 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780946', 'tblTempVendorCDR_20' ) end [2025-03-28 10:38:20] Production.INFO: ProcessCDR(1,14780946,1,1,2) [2025-03-28 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780946', 'tblTempUsageDetail_20' ) start [2025-03-28 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780946', 'tblTempUsageDetail_20' ) end [2025-03-28 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:38:26] Production.INFO: ==17118== Releasing lock... [2025-03-28 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:38:26] Production.INFO: 49 MB #Memory Used# [2025-03-28 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:39:06 [end_date_ymd] => 2025-03-28 10:39:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:39:06' and `end` < '2025-03-28 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-28 10:39:19] Production.INFO: count ==2792 [2025-03-28 10:39:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:39:06 - End Time 2025-03-28 10:39:06 [2025-03-28 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780951', 'tblTempUsageDetail_20' ) start [2025-03-28 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780951', 'tblTempUsageDetail_20' ) end [2025-03-28 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780951', 'tblTempVendorCDR_20' ) start [2025-03-28 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780951', 'tblTempVendorCDR_20' ) end [2025-03-28 10:39:20] Production.INFO: ProcessCDR(1,14780951,1,1,2) [2025-03-28 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780951', 'tblTempUsageDetail_20' ) start [2025-03-28 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780951', 'tblTempUsageDetail_20' ) end [2025-03-28 10:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:39:26] Production.INFO: ==17211== Releasing lock... [2025-03-28 10:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:39:26] Production.INFO: 49 MB #Memory Used# [2025-03-28 10:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:40:06 [end_date_ymd] => 2025-03-28 10:40:06 [RateCDR] => 1 ) [2025-03-28 10:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:40:06' and `end` < '2025-03-28 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-28 10:40:20] Production.INFO: count ==2827 [2025-03-28 10:40:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:40:06 - End Time 2025-03-28 10:40:06 [2025-03-28 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780957', 'tblTempUsageDetail_20' ) start [2025-03-28 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780957', 'tblTempUsageDetail_20' ) end [2025-03-28 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780957', 'tblTempVendorCDR_20' ) start [2025-03-28 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780957', 'tblTempVendorCDR_20' ) end [2025-03-28 10:40:21] Production.INFO: ProcessCDR(1,14780957,1,1,2) [2025-03-28 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780957', 'tblTempUsageDetail_20' ) start [2025-03-28 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780957', 'tblTempUsageDetail_20' ) end [2025-03-28 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:40:27] Production.INFO: ==17298== Releasing lock... [2025-03-28 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:40:27] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:41:06 [end_date_ymd] => 2025-03-28 10:41:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:41:06' and `end` < '2025-03-28 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-28 10:41:19] Production.INFO: count ==2929 [2025-03-28 10:41:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:41:06 - End Time 2025-03-28 10:41:06 [2025-03-28 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780962', 'tblTempUsageDetail_20' ) start [2025-03-28 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780962', 'tblTempUsageDetail_20' ) end [2025-03-28 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780962', 'tblTempVendorCDR_20' ) start [2025-03-28 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780962', 'tblTempVendorCDR_20' ) end [2025-03-28 10:41:20] Production.INFO: ProcessCDR(1,14780962,1,1,2) [2025-03-28 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780962', 'tblTempUsageDetail_20' ) start [2025-03-28 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780962', 'tblTempUsageDetail_20' ) end [2025-03-28 10:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:41:26] Production.INFO: ==17388== Releasing lock... [2025-03-28 10:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:41:26] Production.INFO: 49.75 MB #Memory Used# [2025-03-28 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:42:05 [end_date_ymd] => 2025-03-28 10:42:05 [RateCDR] => 1 ) [2025-03-28 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-28 07:42:05' and `end` < '2025-03-28 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-28 10:42:18] Production.INFO: count ==2939 [2025-03-28 10:42:19] Production.ERROR: pbx CDR StartTime 2025-03-28 07:42:05 - End Time 2025-03-28 10:42:05 [2025-03-28 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780967', 'tblTempUsageDetail_20' ) start [2025-03-28 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780967', 'tblTempUsageDetail_20' ) end [2025-03-28 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780967', 'tblTempVendorCDR_20' ) start [2025-03-28 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780967', 'tblTempVendorCDR_20' ) end [2025-03-28 10:42:19] Production.INFO: ProcessCDR(1,14780967,1,1,2) [2025-03-28 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780967', 'tblTempUsageDetail_20' ) start [2025-03-28 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780967', 'tblTempUsageDetail_20' ) end [2025-03-28 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:42:25] Production.INFO: ==17476== Releasing lock... [2025-03-28 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:42:25] Production.INFO: 49.75 MB #Memory Used# [2025-03-28 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:43:05 [end_date_ymd] => 2025-03-28 10:43:05 [RateCDR] => 1 ) [2025-03-28 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:43:05' and `end` < '2025-03-28 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:43:19] Production.INFO: count ==2951 [2025-03-28 10:43:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:43:05 - End Time 2025-03-28 10:43:05 [2025-03-28 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780972', 'tblTempUsageDetail_20' ) start [2025-03-28 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780972', 'tblTempUsageDetail_20' ) end [2025-03-28 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780972', 'tblTempVendorCDR_20' ) start [2025-03-28 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780972', 'tblTempVendorCDR_20' ) end [2025-03-28 10:43:20] Production.INFO: ProcessCDR(1,14780972,1,1,2) [2025-03-28 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780972', 'tblTempUsageDetail_20' ) start [2025-03-28 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780972', 'tblTempUsageDetail_20' ) end [2025-03-28 10:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:43:26] Production.INFO: ==17561== Releasing lock... [2025-03-28 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:43:26] Production.INFO: 50.25 MB #Memory Used# [2025-03-28 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:44:06 [end_date_ymd] => 2025-03-28 10:44:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:44:06' and `end` < '2025-03-28 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-28 10:44:19] Production.INFO: count ==2983 [2025-03-28 10:44:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:44:06 - End Time 2025-03-28 10:44:06 [2025-03-28 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780977', 'tblTempUsageDetail_20' ) start [2025-03-28 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780977', 'tblTempUsageDetail_20' ) end [2025-03-28 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780977', 'tblTempVendorCDR_20' ) start [2025-03-28 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780977', 'tblTempVendorCDR_20' ) end [2025-03-28 10:44:21] Production.INFO: ProcessCDR(1,14780977,1,1,2) [2025-03-28 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780977', 'tblTempUsageDetail_20' ) start [2025-03-28 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780977', 'tblTempUsageDetail_20' ) end [2025-03-28 10:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:44:27] Production.INFO: ==17644== Releasing lock... [2025-03-28 10:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:44:27] Production.INFO: 50.25 MB #Memory Used# [2025-03-28 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:45:06 [end_date_ymd] => 2025-03-28 10:45:06 [RateCDR] => 1 ) [2025-03-28 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:45:06' and `end` < '2025-03-28 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-28 10:45:19] Production.INFO: count ==2997 [2025-03-28 10:45:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:45:06 - End Time 2025-03-28 10:45:06 [2025-03-28 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780982', 'tblTempUsageDetail_20' ) start [2025-03-28 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780982', 'tblTempUsageDetail_20' ) end [2025-03-28 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780982', 'tblTempVendorCDR_20' ) start [2025-03-28 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780982', 'tblTempVendorCDR_20' ) end [2025-03-28 10:45:20] Production.INFO: ProcessCDR(1,14780982,1,1,2) [2025-03-28 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780982', 'tblTempUsageDetail_20' ) start [2025-03-28 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780982', 'tblTempUsageDetail_20' ) end [2025-03-28 10:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:45:26] Production.INFO: ==17798== Releasing lock... [2025-03-28 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:45:26] Production.INFO: 50.25 MB #Memory Used# [2025-03-28 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:46:06 [end_date_ymd] => 2025-03-28 10:46:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:46:06' and `end` < '2025-03-28 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-28 10:46:20] Production.INFO: count ==3000 [2025-03-28 10:46:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:46:06 - End Time 2025-03-28 10:46:06 [2025-03-28 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780987', 'tblTempUsageDetail_20' ) start [2025-03-28 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780987', 'tblTempUsageDetail_20' ) end [2025-03-28 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780987', 'tblTempVendorCDR_20' ) start [2025-03-28 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780987', 'tblTempVendorCDR_20' ) end [2025-03-28 10:46:21] Production.INFO: ProcessCDR(1,14780987,1,1,2) [2025-03-28 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780987', 'tblTempUsageDetail_20' ) start [2025-03-28 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780987', 'tblTempUsageDetail_20' ) end [2025-03-28 10:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:46:26] Production.INFO: ==17913== Releasing lock... [2025-03-28 10:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:46:26] Production.INFO: 50.75 MB #Memory Used# [2025-03-28 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:47:06 [end_date_ymd] => 2025-03-28 10:47:06 [RateCDR] => 1 ) [2025-03-28 10:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:47:06' and `end` < '2025-03-28 10:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:47:19] Production.INFO: count ==3009 [2025-03-28 10:47:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:47:06 - End Time 2025-03-28 10:47:06 [2025-03-28 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780992', 'tblTempUsageDetail_20' ) start [2025-03-28 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780992', 'tblTempUsageDetail_20' ) end [2025-03-28 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780992', 'tblTempVendorCDR_20' ) start [2025-03-28 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780992', 'tblTempVendorCDR_20' ) end [2025-03-28 10:47:21] Production.INFO: ProcessCDR(1,14780992,1,1,2) [2025-03-28 10:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780992', 'tblTempUsageDetail_20' ) start [2025-03-28 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780992', 'tblTempUsageDetail_20' ) end [2025-03-28 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:47:26] Production.INFO: ==18038== Releasing lock... [2025-03-28 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:47:26] Production.INFO: 50.5 MB #Memory Used# [2025-03-28 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:48:06 [end_date_ymd] => 2025-03-28 10:48:06 [RateCDR] => 1 ) [2025-03-28 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:48:06' and `end` < '2025-03-28 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:48:20] Production.INFO: count ==3021 [2025-03-28 10:48:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:48:06 - End Time 2025-03-28 10:48:06 [2025-03-28 10:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780997', 'tblTempUsageDetail_20' ) start [2025-03-28 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14780997', 'tblTempUsageDetail_20' ) end [2025-03-28 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780997', 'tblTempVendorCDR_20' ) start [2025-03-28 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14780997', 'tblTempVendorCDR_20' ) end [2025-03-28 10:48:21] Production.INFO: ProcessCDR(1,14780997,1,1,2) [2025-03-28 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14780997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14780997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14780997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14780997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780997', 'tblTempUsageDetail_20' ) start [2025-03-28 10:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14780997', 'tblTempUsageDetail_20' ) end [2025-03-28 10:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:48:27] Production.INFO: ==18162== Releasing lock... [2025-03-28 10:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:48:27] Production.INFO: 50.5 MB #Memory Used# [2025-03-28 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:49:06 [end_date_ymd] => 2025-03-28 10:49:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:49:06' and `end` < '2025-03-28 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-28 10:49:19] Production.INFO: count ==3034 [2025-03-28 10:49:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:49:06 - End Time 2025-03-28 10:49:06 [2025-03-28 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781002', 'tblTempUsageDetail_20' ) start [2025-03-28 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781002', 'tblTempUsageDetail_20' ) end [2025-03-28 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781002', 'tblTempVendorCDR_20' ) start [2025-03-28 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781002', 'tblTempVendorCDR_20' ) end [2025-03-28 10:49:20] Production.INFO: ProcessCDR(1,14781002,1,1,2) [2025-03-28 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781002', 'tblTempUsageDetail_20' ) start [2025-03-28 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781002', 'tblTempUsageDetail_20' ) end [2025-03-28 10:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:49:26] Production.INFO: ==18275== Releasing lock... [2025-03-28 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:49:26] Production.INFO: 50.75 MB #Memory Used# [2025-03-28 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:50:07 [end_date_ymd] => 2025-03-28 10:50:07 [RateCDR] => 1 ) [2025-03-28 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-28 07:50:07' and `end` < '2025-03-28 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-28 10:50:20] Production.INFO: count ==3051 [2025-03-28 10:50:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:50:07 - End Time 2025-03-28 10:50:07 [2025-03-28 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781008', 'tblTempUsageDetail_20' ) start [2025-03-28 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781008', 'tblTempUsageDetail_20' ) end [2025-03-28 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781008', 'tblTempVendorCDR_20' ) start [2025-03-28 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781008', 'tblTempVendorCDR_20' ) end [2025-03-28 10:50:21] Production.INFO: ProcessCDR(1,14781008,1,1,2) [2025-03-28 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781008', 'tblTempUsageDetail_20' ) start [2025-03-28 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781008', 'tblTempUsageDetail_20' ) end [2025-03-28 10:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:50:27] Production.INFO: ==18398== Releasing lock... [2025-03-28 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:50:27] Production.INFO: 50.75 MB #Memory Used# [2025-03-28 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:51:06 [end_date_ymd] => 2025-03-28 10:51:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:51:06' and `end` < '2025-03-28 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-28 10:51:19] Production.INFO: count ==3105 [2025-03-28 10:51:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:51:06 - End Time 2025-03-28 10:51:06 [2025-03-28 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781013', 'tblTempUsageDetail_20' ) start [2025-03-28 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781013', 'tblTempUsageDetail_20' ) end [2025-03-28 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781013', 'tblTempVendorCDR_20' ) start [2025-03-28 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781013', 'tblTempVendorCDR_20' ) end [2025-03-28 10:51:20] Production.INFO: ProcessCDR(1,14781013,1,1,2) [2025-03-28 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781013', 'tblTempUsageDetail_20' ) start [2025-03-28 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781013', 'tblTempUsageDetail_20' ) end [2025-03-28 10:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:51:26] Production.INFO: ==18519== Releasing lock... [2025-03-28 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:51:26] Production.INFO: 51.25 MB #Memory Used# [2025-03-28 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:52:06 [end_date_ymd] => 2025-03-28 10:52:06 [RateCDR] => 1 ) [2025-03-28 10:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:52:06' and `end` < '2025-03-28 10:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:52:19] Production.INFO: count ==3112 [2025-03-28 10:52:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:52:06 - End Time 2025-03-28 10:52:06 [2025-03-28 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781018', 'tblTempUsageDetail_20' ) start [2025-03-28 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781018', 'tblTempUsageDetail_20' ) end [2025-03-28 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781018', 'tblTempVendorCDR_20' ) start [2025-03-28 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781018', 'tblTempVendorCDR_20' ) end [2025-03-28 10:52:21] Production.INFO: ProcessCDR(1,14781018,1,1,2) [2025-03-28 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781018', 'tblTempUsageDetail_20' ) start [2025-03-28 10:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781018', 'tblTempUsageDetail_20' ) end [2025-03-28 10:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:52:27] Production.INFO: ==18643== Releasing lock... [2025-03-28 10:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:52:27] Production.INFO: 51.5 MB #Memory Used# [2025-03-28 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:53:06 [end_date_ymd] => 2025-03-28 10:53:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:53:06' and `end` < '2025-03-28 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-28 10:53:19] Production.INFO: count ==3136 [2025-03-28 10:53:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:53:06 - End Time 2025-03-28 10:53:06 [2025-03-28 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781023', 'tblTempUsageDetail_20' ) start [2025-03-28 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781023', 'tblTempUsageDetail_20' ) end [2025-03-28 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781023', 'tblTempVendorCDR_20' ) start [2025-03-28 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781023', 'tblTempVendorCDR_20' ) end [2025-03-28 10:53:21] Production.INFO: ProcessCDR(1,14781023,1,1,2) [2025-03-28 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781023', 'tblTempUsageDetail_20' ) start [2025-03-28 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781023', 'tblTempUsageDetail_20' ) end [2025-03-28 10:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:53:26] Production.INFO: ==18750== Releasing lock... [2025-03-28 10:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:53:26] Production.INFO: 51.5 MB #Memory Used# [2025-03-28 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:54:05 [end_date_ymd] => 2025-03-28 10:54:05 [RateCDR] => 1 ) [2025-03-28 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:54:05' and `end` < '2025-03-28 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:54:18] Production.INFO: count ==3149 [2025-03-28 10:54:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:54:05 - End Time 2025-03-28 10:54:05 [2025-03-28 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781028', 'tblTempUsageDetail_20' ) start [2025-03-28 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781028', 'tblTempUsageDetail_20' ) end [2025-03-28 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781028', 'tblTempVendorCDR_20' ) start [2025-03-28 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781028', 'tblTempVendorCDR_20' ) end [2025-03-28 10:54:20] Production.INFO: ProcessCDR(1,14781028,1,1,2) [2025-03-28 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781028', 'tblTempUsageDetail_20' ) start [2025-03-28 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781028', 'tblTempUsageDetail_20' ) end [2025-03-28 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:54:26] Production.INFO: ==18862== Releasing lock... [2025-03-28 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:54:26] Production.INFO: 52 MB #Memory Used# [2025-03-28 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:55:06 [end_date_ymd] => 2025-03-28 10:55:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:55:06' and `end` < '2025-03-28 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-28 10:55:19] Production.INFO: count ==3160 [2025-03-28 10:55:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:55:06 - End Time 2025-03-28 10:55:06 [2025-03-28 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781033', 'tblTempUsageDetail_20' ) start [2025-03-28 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781033', 'tblTempUsageDetail_20' ) end [2025-03-28 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781033', 'tblTempVendorCDR_20' ) start [2025-03-28 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781033', 'tblTempVendorCDR_20' ) end [2025-03-28 10:55:20] Production.INFO: ProcessCDR(1,14781033,1,1,2) [2025-03-28 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781033', 'tblTempUsageDetail_20' ) start [2025-03-28 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781033', 'tblTempUsageDetail_20' ) end [2025-03-28 10:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:55:26] Production.INFO: ==18971== Releasing lock... [2025-03-28 10:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:55:26] Production.INFO: 51.75 MB #Memory Used# [2025-03-28 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:56:06 [end_date_ymd] => 2025-03-28 10:56:06 [RateCDR] => 1 ) [2025-03-28 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:56:06' and `end` < '2025-03-28 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:56:19] Production.INFO: count ==3189 [2025-03-28 10:56:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:56:06 - End Time 2025-03-28 10:56:06 [2025-03-28 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781038', 'tblTempUsageDetail_20' ) start [2025-03-28 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781038', 'tblTempUsageDetail_20' ) end [2025-03-28 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781038', 'tblTempVendorCDR_20' ) start [2025-03-28 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781038', 'tblTempVendorCDR_20' ) end [2025-03-28 10:56:21] Production.INFO: ProcessCDR(1,14781038,1,1,2) [2025-03-28 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781038', 'tblTempUsageDetail_20' ) start [2025-03-28 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781038', 'tblTempUsageDetail_20' ) end [2025-03-28 10:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:56:27] Production.INFO: ==19093== Releasing lock... [2025-03-28 10:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:56:27] Production.INFO: 52 MB #Memory Used# [2025-03-28 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:57:06 [end_date_ymd] => 2025-03-28 10:57:06 [RateCDR] => 1 ) [2025-03-28 10:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:57:06' and `end` < '2025-03-28 10:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:57:19] Production.INFO: count ==3203 [2025-03-28 10:57:20] Production.ERROR: pbx CDR StartTime 2025-03-28 07:57:06 - End Time 2025-03-28 10:57:06 [2025-03-28 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781043', 'tblTempUsageDetail_20' ) start [2025-03-28 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781043', 'tblTempUsageDetail_20' ) end [2025-03-28 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781043', 'tblTempVendorCDR_20' ) start [2025-03-28 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781043', 'tblTempVendorCDR_20' ) end [2025-03-28 10:57:20] Production.INFO: ProcessCDR(1,14781043,1,1,2) [2025-03-28 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781043', 'tblTempUsageDetail_20' ) start [2025-03-28 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781043', 'tblTempUsageDetail_20' ) end [2025-03-28 10:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:57:26] Production.INFO: ==19216== Releasing lock... [2025-03-28 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:57:26] Production.INFO: 52 MB #Memory Used# [2025-03-28 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:58:06 [end_date_ymd] => 2025-03-28 10:58:06 [RateCDR] => 1 ) [2025-03-28 10:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 07:58:06' and `end` < '2025-03-28 10:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 10:58:20] Production.INFO: count ==3205 [2025-03-28 10:58:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:58:06 - End Time 2025-03-28 10:58:06 [2025-03-28 10:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781048', 'tblTempUsageDetail_20' ) start [2025-03-28 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781048', 'tblTempUsageDetail_20' ) end [2025-03-28 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781048', 'tblTempVendorCDR_20' ) start [2025-03-28 10:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781048', 'tblTempVendorCDR_20' ) end [2025-03-28 10:58:21] Production.INFO: ProcessCDR(1,14781048,1,1,2) [2025-03-28 10:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781048', 'tblTempUsageDetail_20' ) start [2025-03-28 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781048', 'tblTempUsageDetail_20' ) end [2025-03-28 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:58:25] Production.INFO: ==19333== Releasing lock... [2025-03-28 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:58:25] Production.INFO: 52.5 MB #Memory Used# [2025-03-28 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 07:59:06 [end_date_ymd] => 2025-03-28 10:59:06 [RateCDR] => 1 ) [2025-03-28 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-28 07:59:06' and `end` < '2025-03-28 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-28 10:59:19] Production.INFO: count ==3221 [2025-03-28 10:59:21] Production.ERROR: pbx CDR StartTime 2025-03-28 07:59:06 - End Time 2025-03-28 10:59:06 [2025-03-28 10:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781053', 'tblTempUsageDetail_20' ) start [2025-03-28 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781053', 'tblTempUsageDetail_20' ) end [2025-03-28 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781053', 'tblTempVendorCDR_20' ) start [2025-03-28 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781053', 'tblTempVendorCDR_20' ) end [2025-03-28 10:59:21] Production.INFO: ProcessCDR(1,14781053,1,1,2) [2025-03-28 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 10:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781053', 'tblTempUsageDetail_20' ) start [2025-03-28 10:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781053', 'tblTempUsageDetail_20' ) end [2025-03-28 10:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 10:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 10:59:27] Production.INFO: ==19454== Releasing lock... [2025-03-28 10:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 10:59:27] Production.INFO: 53 MB #Memory Used# [2025-03-28 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:00:07 [end_date_ymd] => 2025-03-28 11:00:07 [RateCDR] => 1 ) [2025-03-28 11:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:00:07' and `end` < '2025-03-28 11:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:00:20] Production.INFO: count ==3232 [2025-03-28 11:00:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:00:07 - End Time 2025-03-28 11:00:07 [2025-03-28 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781059', 'tblTempUsageDetail_20' ) start [2025-03-28 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781059', 'tblTempUsageDetail_20' ) end [2025-03-28 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781059', 'tblTempVendorCDR_20' ) start [2025-03-28 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781059', 'tblTempVendorCDR_20' ) end [2025-03-28 11:00:21] Production.INFO: ProcessCDR(1,14781059,1,1,2) [2025-03-28 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781059', 'tblTempUsageDetail_20' ) start [2025-03-28 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781059', 'tblTempUsageDetail_20' ) end [2025-03-28 11:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:00:28] Production.INFO: ==19556== Releasing lock... [2025-03-28 11:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:00:28] Production.INFO: 52.25 MB #Memory Used# [2025-03-28 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:01:06 [end_date_ymd] => 2025-03-28 11:01:06 [RateCDR] => 1 ) [2025-03-28 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:01:06' and `end` < '2025-03-28 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:01:20] Production.INFO: count ==3320 [2025-03-28 11:01:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:01:06 - End Time 2025-03-28 11:01:06 [2025-03-28 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781064', 'tblTempUsageDetail_20' ) start [2025-03-28 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781064', 'tblTempUsageDetail_20' ) end [2025-03-28 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781064', 'tblTempVendorCDR_20' ) start [2025-03-28 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781064', 'tblTempVendorCDR_20' ) end [2025-03-28 11:01:21] Production.INFO: ProcessCDR(1,14781064,1,1,2) [2025-03-28 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781064', 'tblTempUsageDetail_20' ) start [2025-03-28 11:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781064', 'tblTempUsageDetail_20' ) end [2025-03-28 11:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:01:27] Production.INFO: ==19785== Releasing lock... [2025-03-28 11:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:01:27] Production.INFO: 53 MB #Memory Used# [2025-03-28 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:02:06 [end_date_ymd] => 2025-03-28 11:02:06 [RateCDR] => 1 ) [2025-03-28 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:02:06' and `end` < '2025-03-28 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:02:19] Production.INFO: count ==3341 [2025-03-28 11:02:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:02:06 - End Time 2025-03-28 11:02:06 [2025-03-28 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781069', 'tblTempUsageDetail_20' ) start [2025-03-28 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781069', 'tblTempUsageDetail_20' ) end [2025-03-28 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781069', 'tblTempVendorCDR_20' ) start [2025-03-28 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781069', 'tblTempVendorCDR_20' ) end [2025-03-28 11:02:21] Production.INFO: ProcessCDR(1,14781069,1,1,2) [2025-03-28 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781069', 'tblTempUsageDetail_20' ) start [2025-03-28 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781069', 'tblTempUsageDetail_20' ) end [2025-03-28 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:02:26] Production.INFO: ==19874== Releasing lock... [2025-03-28 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:02:26] Production.INFO: 53.25 MB #Memory Used# [2025-03-28 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:03:06 [end_date_ymd] => 2025-03-28 11:03:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:03:06' and `end` < '2025-03-28 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-28 11:03:19] Production.INFO: count ==3337 [2025-03-28 11:03:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:03:06 - End Time 2025-03-28 11:03:06 [2025-03-28 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781074', 'tblTempUsageDetail_20' ) start [2025-03-28 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781074', 'tblTempUsageDetail_20' ) end [2025-03-28 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781074', 'tblTempVendorCDR_20' ) start [2025-03-28 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781074', 'tblTempVendorCDR_20' ) end [2025-03-28 11:03:21] Production.INFO: ProcessCDR(1,14781074,1,1,2) [2025-03-28 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781074', 'tblTempUsageDetail_20' ) start [2025-03-28 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781074', 'tblTempUsageDetail_20' ) end [2025-03-28 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:03:25] Production.INFO: ==19967== Releasing lock... [2025-03-28 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:03:25] Production.INFO: 53.25 MB #Memory Used# [2025-03-28 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:04:06 [end_date_ymd] => 2025-03-28 11:04:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:04:06' and `end` < '2025-03-28 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:04:19] Production.INFO: count ==3352 [2025-03-28 11:04:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:04:06 - End Time 2025-03-28 11:04:06 [2025-03-28 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781079', 'tblTempUsageDetail_20' ) start [2025-03-28 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781079', 'tblTempUsageDetail_20' ) end [2025-03-28 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781079', 'tblTempVendorCDR_20' ) start [2025-03-28 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781079', 'tblTempVendorCDR_20' ) end [2025-03-28 11:04:20] Production.INFO: ProcessCDR(1,14781079,1,1,2) [2025-03-28 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781079', 'tblTempUsageDetail_20' ) start [2025-03-28 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781079', 'tblTempUsageDetail_20' ) end [2025-03-28 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:04:26] Production.INFO: ==20063== Releasing lock... [2025-03-28 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:04:26] Production.INFO: 54 MB #Memory Used# [2025-03-28 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:05:06 [end_date_ymd] => 2025-03-28 11:05:06 [RateCDR] => 1 ) [2025-03-28 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:05:06' and `end` < '2025-03-28 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:05:20] Production.INFO: count ==3368 [2025-03-28 11:05:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:05:06 - End Time 2025-03-28 11:05:06 [2025-03-28 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781084', 'tblTempUsageDetail_20' ) start [2025-03-28 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781084', 'tblTempUsageDetail_20' ) end [2025-03-28 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781084', 'tblTempVendorCDR_20' ) start [2025-03-28 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781084', 'tblTempVendorCDR_20' ) end [2025-03-28 11:05:21] Production.INFO: ProcessCDR(1,14781084,1,1,2) [2025-03-28 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781084', 'tblTempUsageDetail_20' ) start [2025-03-28 11:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781084', 'tblTempUsageDetail_20' ) end [2025-03-28 11:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:05:27] Production.INFO: ==20230== Releasing lock... [2025-03-28 11:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:05:27] Production.INFO: 54.5 MB #Memory Used# [2025-03-28 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:06:05 [end_date_ymd] => 2025-03-28 11:06:05 [RateCDR] => 1 ) [2025-03-28 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-28 08:06:05' and `end` < '2025-03-28 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-28 11:06:19] Production.INFO: count ==3367 [2025-03-28 11:06:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:06:05 - End Time 2025-03-28 11:06:05 [2025-03-28 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781089', 'tblTempUsageDetail_20' ) start [2025-03-28 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781089', 'tblTempUsageDetail_20' ) end [2025-03-28 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781089', 'tblTempVendorCDR_20' ) start [2025-03-28 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781089', 'tblTempVendorCDR_20' ) end [2025-03-28 11:06:20] Production.INFO: ProcessCDR(1,14781089,1,1,2) [2025-03-28 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781089', 'tblTempUsageDetail_20' ) start [2025-03-28 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781089', 'tblTempUsageDetail_20' ) end [2025-03-28 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:06:25] Production.INFO: ==20316== Releasing lock... [2025-03-28 11:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:06:25] Production.INFO: 53.75 MB #Memory Used# [2025-03-28 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:07:06 [end_date_ymd] => 2025-03-28 11:07:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:07:06' and `end` < '2025-03-28 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-28 11:07:19] Production.INFO: count ==3397 [2025-03-28 11:07:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:07:06 - End Time 2025-03-28 11:07:06 [2025-03-28 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781094', 'tblTempUsageDetail_20' ) start [2025-03-28 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781094', 'tblTempUsageDetail_20' ) end [2025-03-28 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781094', 'tblTempVendorCDR_20' ) start [2025-03-28 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781094', 'tblTempVendorCDR_20' ) end [2025-03-28 11:07:21] Production.INFO: ProcessCDR(1,14781094,1,1,2) [2025-03-28 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781094', 'tblTempUsageDetail_20' ) start [2025-03-28 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781094', 'tblTempUsageDetail_20' ) end [2025-03-28 11:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:07:27] Production.INFO: ==20408== Releasing lock... [2025-03-28 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:07:27] Production.INFO: 53.75 MB #Memory Used# [2025-03-28 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:08:05 [end_date_ymd] => 2025-03-28 11:08:05 [RateCDR] => 1 ) [2025-03-28 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-28 08:08:05' and `end` < '2025-03-28 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-28 11:08:18] Production.INFO: count ==3388 [2025-03-28 11:08:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:08:05 - End Time 2025-03-28 11:08:05 [2025-03-28 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781099', 'tblTempUsageDetail_20' ) start [2025-03-28 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781099', 'tblTempUsageDetail_20' ) end [2025-03-28 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781099', 'tblTempVendorCDR_20' ) start [2025-03-28 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781099', 'tblTempVendorCDR_20' ) end [2025-03-28 11:08:20] Production.INFO: ProcessCDR(1,14781099,1,1,2) [2025-03-28 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781099', 'tblTempUsageDetail_20' ) start [2025-03-28 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781099', 'tblTempUsageDetail_20' ) end [2025-03-28 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:08:26] Production.INFO: ==20580== Releasing lock... [2025-03-28 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:08:26] Production.INFO: 54 MB #Memory Used# [2025-03-28 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:09:06 [end_date_ymd] => 2025-03-28 11:09:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:09:06' and `end` < '2025-03-28 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-28 11:09:19] Production.INFO: count ==3402 [2025-03-28 11:09:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:09:06 - End Time 2025-03-28 11:09:06 [2025-03-28 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781104', 'tblTempUsageDetail_20' ) start [2025-03-28 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781104', 'tblTempUsageDetail_20' ) end [2025-03-28 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781104', 'tblTempVendorCDR_20' ) start [2025-03-28 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781104', 'tblTempVendorCDR_20' ) end [2025-03-28 11:09:20] Production.INFO: ProcessCDR(1,14781104,1,1,2) [2025-03-28 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781104', 'tblTempUsageDetail_20' ) start [2025-03-28 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781104', 'tblTempUsageDetail_20' ) end [2025-03-28 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:09:26] Production.INFO: ==20675== Releasing lock... [2025-03-28 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:09:26] Production.INFO: 53.75 MB #Memory Used# [2025-03-28 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:10:06 [end_date_ymd] => 2025-03-28 11:10:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:10:06' and `end` < '2025-03-28 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-28 11:10:20] Production.INFO: count ==3428 [2025-03-28 11:10:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:10:06 - End Time 2025-03-28 11:10:06 [2025-03-28 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781110', 'tblTempUsageDetail_20' ) start [2025-03-28 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781110', 'tblTempUsageDetail_20' ) end [2025-03-28 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781110', 'tblTempVendorCDR_20' ) start [2025-03-28 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781110', 'tblTempVendorCDR_20' ) end [2025-03-28 11:10:21] Production.INFO: ProcessCDR(1,14781110,1,1,2) [2025-03-28 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781110', 'tblTempUsageDetail_20' ) start [2025-03-28 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781110', 'tblTempUsageDetail_20' ) end [2025-03-28 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:10:27] Production.INFO: ==20766== Releasing lock... [2025-03-28 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:10:27] Production.INFO: 54.5 MB #Memory Used# [2025-03-28 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:11:05 [end_date_ymd] => 2025-03-28 11:11:05 [RateCDR] => 1 ) [2025-03-28 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:11:05' and `end` < '2025-03-28 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:11:19] Production.INFO: count ==3532 [2025-03-28 11:11:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:11:05 - End Time 2025-03-28 11:11:05 [2025-03-28 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781115', 'tblTempUsageDetail_20' ) start [2025-03-28 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781115', 'tblTempUsageDetail_20' ) end [2025-03-28 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781115', 'tblTempVendorCDR_20' ) start [2025-03-28 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781115', 'tblTempVendorCDR_20' ) end [2025-03-28 11:11:20] Production.INFO: ProcessCDR(1,14781115,1,1,2) [2025-03-28 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781115', 'tblTempUsageDetail_20' ) start [2025-03-28 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781115', 'tblTempUsageDetail_20' ) end [2025-03-28 11:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:11:24] Production.INFO: ==20859== Releasing lock... [2025-03-28 11:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:11:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-28 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:12:05 [end_date_ymd] => 2025-03-28 11:12:05 [RateCDR] => 1 ) [2025-03-28 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:12:05' and `end` < '2025-03-28 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:12:19] Production.INFO: count ==3574 [2025-03-28 11:12:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:12:05 - End Time 2025-03-28 11:12:05 [2025-03-28 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781120', 'tblTempUsageDetail_20' ) start [2025-03-28 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781120', 'tblTempUsageDetail_20' ) end [2025-03-28 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781120', 'tblTempVendorCDR_20' ) start [2025-03-28 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781120', 'tblTempVendorCDR_20' ) end [2025-03-28 11:12:20] Production.INFO: ProcessCDR(1,14781120,1,1,2) [2025-03-28 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781120', 'tblTempUsageDetail_20' ) start [2025-03-28 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781120', 'tblTempUsageDetail_20' ) end [2025-03-28 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:12:26] Production.INFO: ==21025== Releasing lock... [2025-03-28 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:12:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-28 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:13:06 [end_date_ymd] => 2025-03-28 11:13:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:13:06' and `end` < '2025-03-28 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-28 11:13:19] Production.INFO: count ==3581 [2025-03-28 11:13:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:13:06 - End Time 2025-03-28 11:13:06 [2025-03-28 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781125', 'tblTempUsageDetail_20' ) start [2025-03-28 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781125', 'tblTempUsageDetail_20' ) end [2025-03-28 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781125', 'tblTempVendorCDR_20' ) start [2025-03-28 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781125', 'tblTempVendorCDR_20' ) end [2025-03-28 11:13:20] Production.INFO: ProcessCDR(1,14781125,1,1,2) [2025-03-28 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781125', 'tblTempUsageDetail_20' ) start [2025-03-28 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781125', 'tblTempUsageDetail_20' ) end [2025-03-28 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:13:26] Production.INFO: ==21115== Releasing lock... [2025-03-28 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:13:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-28 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:14:05 [end_date_ymd] => 2025-03-28 11:14:05 [RateCDR] => 1 ) [2025-03-28 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:14:05' and `end` < '2025-03-28 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:14:19] Production.INFO: count ==3598 [2025-03-28 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:14:05 - End Time 2025-03-28 11:14:05 [2025-03-28 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781130', 'tblTempUsageDetail_20' ) start [2025-03-28 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781130', 'tblTempUsageDetail_20' ) end [2025-03-28 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781130', 'tblTempVendorCDR_20' ) start [2025-03-28 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781130', 'tblTempVendorCDR_20' ) end [2025-03-28 11:14:21] Production.INFO: ProcessCDR(1,14781130,1,1,2) [2025-03-28 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781130', 'tblTempUsageDetail_20' ) start [2025-03-28 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781130', 'tblTempUsageDetail_20' ) end [2025-03-28 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:14:26] Production.INFO: ==21202== Releasing lock... [2025-03-28 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:14:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-28 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:15:05 [end_date_ymd] => 2025-03-28 11:15:05 [RateCDR] => 1 ) [2025-03-28 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:15:05' and `end` < '2025-03-28 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:15:19] Production.INFO: count ==3623 [2025-03-28 11:15:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:15:05 - End Time 2025-03-28 11:15:05 [2025-03-28 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781135', 'tblTempUsageDetail_20' ) start [2025-03-28 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781135', 'tblTempUsageDetail_20' ) end [2025-03-28 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781135', 'tblTempVendorCDR_20' ) start [2025-03-28 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781135', 'tblTempVendorCDR_20' ) end [2025-03-28 11:15:20] Production.INFO: ProcessCDR(1,14781135,1,1,2) [2025-03-28 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781135', 'tblTempUsageDetail_20' ) start [2025-03-28 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781135', 'tblTempUsageDetail_20' ) end [2025-03-28 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:15:26] Production.INFO: ==21363== Releasing lock... [2025-03-28 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:15:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-28 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:16:05 [end_date_ymd] => 2025-03-28 11:16:05 [RateCDR] => 1 ) [2025-03-28 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:16:05' and `end` < '2025-03-28 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:16:18] Production.INFO: count ==3620 [2025-03-28 11:16:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:16:05 - End Time 2025-03-28 11:16:05 [2025-03-28 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781140', 'tblTempUsageDetail_20' ) start [2025-03-28 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781140', 'tblTempUsageDetail_20' ) end [2025-03-28 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781140', 'tblTempVendorCDR_20' ) start [2025-03-28 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781140', 'tblTempVendorCDR_20' ) end [2025-03-28 11:16:20] Production.INFO: ProcessCDR(1,14781140,1,1,2) [2025-03-28 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781140', 'tblTempUsageDetail_20' ) start [2025-03-28 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781140', 'tblTempUsageDetail_20' ) end [2025-03-28 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:16:25] Production.INFO: ==21483== Releasing lock... [2025-03-28 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:16:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-28 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:17:05 [end_date_ymd] => 2025-03-28 11:17:05 [RateCDR] => 1 ) [2025-03-28 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:17:05' and `end` < '2025-03-28 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:17:19] Production.INFO: count ==3617 [2025-03-28 11:17:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:17:05 - End Time 2025-03-28 11:17:05 [2025-03-28 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781145', 'tblTempUsageDetail_20' ) start [2025-03-28 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781145', 'tblTempUsageDetail_20' ) end [2025-03-28 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781145', 'tblTempVendorCDR_20' ) start [2025-03-28 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781145', 'tblTempVendorCDR_20' ) end [2025-03-28 11:17:20] Production.INFO: ProcessCDR(1,14781145,1,1,2) [2025-03-28 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781145', 'tblTempUsageDetail_20' ) start [2025-03-28 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781145', 'tblTempUsageDetail_20' ) end [2025-03-28 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:17:25] Production.INFO: ==21566== Releasing lock... [2025-03-28 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:17:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-28 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:18:06 [end_date_ymd] => 2025-03-28 11:18:06 [RateCDR] => 1 ) [2025-03-28 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:18:06' and `end` < '2025-03-28 11: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-28 11:18:20] Production.INFO: count ==3642 [2025-03-28 11:18:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:18:06 - End Time 2025-03-28 11:18:06 [2025-03-28 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781150', 'tblTempUsageDetail_20' ) start [2025-03-28 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781150', 'tblTempUsageDetail_20' ) end [2025-03-28 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781150', 'tblTempVendorCDR_20' ) start [2025-03-28 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781150', 'tblTempVendorCDR_20' ) end [2025-03-28 11:18:21] Production.INFO: ProcessCDR(1,14781150,1,1,2) [2025-03-28 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781150', 'tblTempUsageDetail_20' ) start [2025-03-28 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781150', 'tblTempUsageDetail_20' ) end [2025-03-28 11:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:18:27] Production.INFO: ==21647== Releasing lock... [2025-03-28 11:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:18:27] Production.INFO: 56.25 MB #Memory Used# [2025-03-28 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:19:06 [end_date_ymd] => 2025-03-28 11:19:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:19:06' and `end` < '2025-03-28 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-28 11:19:20] Production.INFO: count ==3657 [2025-03-28 11:19:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:19:06 - End Time 2025-03-28 11:19:06 [2025-03-28 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781155', 'tblTempUsageDetail_20' ) start [2025-03-28 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781155', 'tblTempUsageDetail_20' ) end [2025-03-28 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781155', 'tblTempVendorCDR_20' ) start [2025-03-28 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781155', 'tblTempVendorCDR_20' ) end [2025-03-28 11:19:21] Production.INFO: ProcessCDR(1,14781155,1,1,2) [2025-03-28 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781155', 'tblTempUsageDetail_20' ) start [2025-03-28 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781155', 'tblTempUsageDetail_20' ) end [2025-03-28 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:19:27] Production.INFO: ==21735== Releasing lock... [2025-03-28 11:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:19:27] Production.INFO: 55.5 MB #Memory Used# [2025-03-28 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:20:06 [end_date_ymd] => 2025-03-28 11:20:06 [RateCDR] => 1 ) [2025-03-28 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:20:06' and `end` < '2025-03-28 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:20:19] Production.INFO: count ==3686 [2025-03-28 11:20:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:20:06 - End Time 2025-03-28 11:20:06 [2025-03-28 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781161', 'tblTempUsageDetail_20' ) start [2025-03-28 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781161', 'tblTempUsageDetail_20' ) end [2025-03-28 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781161', 'tblTempVendorCDR_20' ) start [2025-03-28 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781161', 'tblTempVendorCDR_20' ) end [2025-03-28 11:20:21] Production.INFO: ProcessCDR(1,14781161,1,1,2) [2025-03-28 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781161', 'tblTempUsageDetail_20' ) start [2025-03-28 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781161', 'tblTempUsageDetail_20' ) end [2025-03-28 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:20:27] Production.INFO: ==21817== Releasing lock... [2025-03-28 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:20:27] Production.INFO: 55.5 MB #Memory Used# [2025-03-28 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:21:05 [end_date_ymd] => 2025-03-28 11:21:05 [RateCDR] => 1 ) [2025-03-28 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:21:05' and `end` < '2025-03-28 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:21:19] Production.INFO: count ==3771 [2025-03-28 11:21:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:21:05 - End Time 2025-03-28 11:21:05 [2025-03-28 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781166', 'tblTempUsageDetail_20' ) start [2025-03-28 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781166', 'tblTempUsageDetail_20' ) end [2025-03-28 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781166', 'tblTempVendorCDR_20' ) start [2025-03-28 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781166', 'tblTempVendorCDR_20' ) end [2025-03-28 11:21:21] Production.INFO: ProcessCDR(1,14781166,1,1,2) [2025-03-28 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781166', 'tblTempUsageDetail_20' ) start [2025-03-28 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781166', 'tblTempUsageDetail_20' ) end [2025-03-28 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:21:26] Production.INFO: ==21899== Releasing lock... [2025-03-28 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:21:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-28 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:22:05 [end_date_ymd] => 2025-03-28 11:22:05 [RateCDR] => 1 ) [2025-03-28 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-28 08:22:05' and `end` < '2025-03-28 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-28 11:22:19] Production.INFO: count ==3790 [2025-03-28 11:22:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:22:05 - End Time 2025-03-28 11:22:05 [2025-03-28 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781171', 'tblTempUsageDetail_20' ) start [2025-03-28 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781171', 'tblTempUsageDetail_20' ) end [2025-03-28 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781171', 'tblTempVendorCDR_20' ) start [2025-03-28 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781171', 'tblTempVendorCDR_20' ) end [2025-03-28 11:22:21] Production.INFO: ProcessCDR(1,14781171,1,1,2) [2025-03-28 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781171', 'tblTempUsageDetail_20' ) start [2025-03-28 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781171', 'tblTempUsageDetail_20' ) end [2025-03-28 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:22:26] Production.INFO: ==21986== Releasing lock... [2025-03-28 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:22:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-28 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:23:06 [end_date_ymd] => 2025-03-28 11:23:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:23:06' and `end` < '2025-03-28 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-28 11:23:19] Production.INFO: count ==3814 [2025-03-28 11:23:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:23:06 - End Time 2025-03-28 11:23:06 [2025-03-28 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781176', 'tblTempUsageDetail_20' ) start [2025-03-28 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781176', 'tblTempUsageDetail_20' ) end [2025-03-28 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781176', 'tblTempVendorCDR_20' ) start [2025-03-28 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781176', 'tblTempVendorCDR_20' ) end [2025-03-28 11:23:21] Production.INFO: ProcessCDR(1,14781176,1,1,2) [2025-03-28 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781176', 'tblTempUsageDetail_20' ) start [2025-03-28 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781176', 'tblTempUsageDetail_20' ) end [2025-03-28 11:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:23:27] Production.INFO: ==22071== Releasing lock... [2025-03-28 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:23:27] Production.INFO: 57 MB #Memory Used# [2025-03-28 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:24:05 [end_date_ymd] => 2025-03-28 11:24:05 [RateCDR] => 1 ) [2025-03-28 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:24:05' and `end` < '2025-03-28 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:24:19] Production.INFO: count ==3880 [2025-03-28 11:24:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:24:05 - End Time 2025-03-28 11:24:05 [2025-03-28 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781181', 'tblTempUsageDetail_20' ) start [2025-03-28 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781181', 'tblTempUsageDetail_20' ) end [2025-03-28 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781181', 'tblTempVendorCDR_20' ) start [2025-03-28 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781181', 'tblTempVendorCDR_20' ) end [2025-03-28 11:24:21] Production.INFO: ProcessCDR(1,14781181,1,1,2) [2025-03-28 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781181', 'tblTempUsageDetail_20' ) start [2025-03-28 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781181', 'tblTempUsageDetail_20' ) end [2025-03-28 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:24:27] Production.INFO: ==22149== Releasing lock... [2025-03-28 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:24:27] Production.INFO: 57.25 MB #Memory Used# [2025-03-28 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:25:05 [end_date_ymd] => 2025-03-28 11:25:05 [RateCDR] => 1 ) [2025-03-28 11: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-28 08:25:05' and `end` < '2025-03-28 11: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-28 11:25:19] Production.INFO: count ==3891 [2025-03-28 11:25:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:25:05 - End Time 2025-03-28 11:25:05 [2025-03-28 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781186', 'tblTempUsageDetail_20' ) start [2025-03-28 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781186', 'tblTempUsageDetail_20' ) end [2025-03-28 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781186', 'tblTempVendorCDR_20' ) start [2025-03-28 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781186', 'tblTempVendorCDR_20' ) end [2025-03-28 11:25:20] Production.INFO: ProcessCDR(1,14781186,1,1,2) [2025-03-28 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781186', 'tblTempUsageDetail_20' ) start [2025-03-28 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781186', 'tblTempUsageDetail_20' ) end [2025-03-28 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:25:26] Production.INFO: ==22236== Releasing lock... [2025-03-28 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:25:26] Production.INFO: 57.25 MB #Memory Used# [2025-03-28 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:26:06 [end_date_ymd] => 2025-03-28 11:26:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:26:06' and `end` < '2025-03-28 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-28 11:26:20] Production.INFO: count ==3908 [2025-03-28 11:26:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:26:06 - End Time 2025-03-28 11:26:06 [2025-03-28 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781191', 'tblTempUsageDetail_20' ) start [2025-03-28 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781191', 'tblTempUsageDetail_20' ) end [2025-03-28 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781191', 'tblTempVendorCDR_20' ) start [2025-03-28 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781191', 'tblTempVendorCDR_20' ) end [2025-03-28 11:26:21] Production.INFO: ProcessCDR(1,14781191,1,1,2) [2025-03-28 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781191', 'tblTempUsageDetail_20' ) start [2025-03-28 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781191', 'tblTempUsageDetail_20' ) end [2025-03-28 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:26:25] Production.INFO: ==22323== Releasing lock... [2025-03-28 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:26:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-28 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:27:05 [end_date_ymd] => 2025-03-28 11:27:05 [RateCDR] => 1 ) [2025-03-28 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:27:05' and `end` < '2025-03-28 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:27:19] Production.INFO: count ==3940 [2025-03-28 11:27:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:27:05 - End Time 2025-03-28 11:27:05 [2025-03-28 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781196', 'tblTempUsageDetail_20' ) start [2025-03-28 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781196', 'tblTempUsageDetail_20' ) end [2025-03-28 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781196', 'tblTempVendorCDR_20' ) start [2025-03-28 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781196', 'tblTempVendorCDR_20' ) end [2025-03-28 11:27:21] Production.INFO: ProcessCDR(1,14781196,1,1,2) [2025-03-28 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781196', 'tblTempUsageDetail_20' ) start [2025-03-28 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781196', 'tblTempUsageDetail_20' ) end [2025-03-28 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:27:26] Production.INFO: ==22411== Releasing lock... [2025-03-28 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:27:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-28 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:28:05 [end_date_ymd] => 2025-03-28 11:28:05 [RateCDR] => 1 ) [2025-03-28 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:28:05' and `end` < '2025-03-28 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:28:19] Production.INFO: count ==3951 [2025-03-28 11:28:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:28:05 - End Time 2025-03-28 11:28:05 [2025-03-28 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781201', 'tblTempUsageDetail_20' ) start [2025-03-28 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781201', 'tblTempUsageDetail_20' ) end [2025-03-28 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781201', 'tblTempVendorCDR_20' ) start [2025-03-28 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781201', 'tblTempVendorCDR_20' ) end [2025-03-28 11:28:21] Production.INFO: ProcessCDR(1,14781201,1,1,2) [2025-03-28 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781201', 'tblTempUsageDetail_20' ) start [2025-03-28 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781201', 'tblTempUsageDetail_20' ) end [2025-03-28 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:28:26] Production.INFO: ==22497== Releasing lock... [2025-03-28 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:28:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-28 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:29:05 [end_date_ymd] => 2025-03-28 11:29:05 [RateCDR] => 1 ) [2025-03-28 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:29:05' and `end` < '2025-03-28 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:29:19] Production.INFO: count ==3957 [2025-03-28 11:29:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:29:05 - End Time 2025-03-28 11:29:05 [2025-03-28 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781206', 'tblTempUsageDetail_20' ) start [2025-03-28 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781206', 'tblTempUsageDetail_20' ) end [2025-03-28 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781206', 'tblTempVendorCDR_20' ) start [2025-03-28 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781206', 'tblTempVendorCDR_20' ) end [2025-03-28 11:29:20] Production.INFO: ProcessCDR(1,14781206,1,1,2) [2025-03-28 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781206', 'tblTempUsageDetail_20' ) start [2025-03-28 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781206', 'tblTempUsageDetail_20' ) end [2025-03-28 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:29:26] Production.INFO: ==22584== Releasing lock... [2025-03-28 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:29:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-28 11:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:30:07 [end_date_ymd] => 2025-03-28 11:30:07 [RateCDR] => 1 ) [2025-03-28 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-28 08:30:07' and `end` < '2025-03-28 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-28 11:30:20] Production.INFO: count ==3956 [2025-03-28 11:30:22] Production.ERROR: pbx CDR StartTime 2025-03-28 08:30:07 - End Time 2025-03-28 11:30:07 [2025-03-28 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781212', 'tblTempUsageDetail_20' ) start [2025-03-28 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781212', 'tblTempUsageDetail_20' ) end [2025-03-28 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781212', 'tblTempVendorCDR_20' ) start [2025-03-28 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781212', 'tblTempVendorCDR_20' ) end [2025-03-28 11:30:22] Production.INFO: ProcessCDR(1,14781212,1,1,2) [2025-03-28 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781212', 'tblTempUsageDetail_20' ) start [2025-03-28 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781212', 'tblTempUsageDetail_20' ) end [2025-03-28 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:30:27] Production.INFO: ==22667== Releasing lock... [2025-03-28 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:30:27] Production.INFO: 57.5 MB #Memory Used# [2025-03-28 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:31:05 [end_date_ymd] => 2025-03-28 11:31:05 [RateCDR] => 1 ) [2025-03-28 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:31:05' and `end` < '2025-03-28 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:31:19] Production.INFO: count ==4041 [2025-03-28 11:31:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:31:05 - End Time 2025-03-28 11:31:05 [2025-03-28 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781217', 'tblTempUsageDetail_20' ) start [2025-03-28 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781217', 'tblTempUsageDetail_20' ) end [2025-03-28 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781217', 'tblTempVendorCDR_20' ) start [2025-03-28 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781217', 'tblTempVendorCDR_20' ) end [2025-03-28 11:31:20] Production.INFO: ProcessCDR(1,14781217,1,1,2) [2025-03-28 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781217', 'tblTempUsageDetail_20' ) start [2025-03-28 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781217', 'tblTempUsageDetail_20' ) end [2025-03-28 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:31:26] Production.INFO: ==22798== Releasing lock... [2025-03-28 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:31:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-28 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:32:06 [end_date_ymd] => 2025-03-28 11:32:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:32:06' and `end` < '2025-03-28 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-28 11:32:19] Production.INFO: count ==4046 [2025-03-28 11:32:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:32:06 - End Time 2025-03-28 11:32:06 [2025-03-28 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781222', 'tblTempUsageDetail_20' ) start [2025-03-28 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781222', 'tblTempUsageDetail_20' ) end [2025-03-28 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781222', 'tblTempVendorCDR_20' ) start [2025-03-28 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781222', 'tblTempVendorCDR_20' ) end [2025-03-28 11:32:21] Production.INFO: ProcessCDR(1,14781222,1,1,2) [2025-03-28 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781222', 'tblTempUsageDetail_20' ) start [2025-03-28 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781222', 'tblTempUsageDetail_20' ) end [2025-03-28 11:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:32:27] Production.INFO: ==22893== Releasing lock... [2025-03-28 11:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:32:27] Production.INFO: 58.5 MB #Memory Used# [2025-03-28 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:33:05 [end_date_ymd] => 2025-03-28 11:33:05 [RateCDR] => 1 ) [2025-03-28 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:33:05' and `end` < '2025-03-28 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:33:18] Production.INFO: count ==4049 [2025-03-28 11:33:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:33:05 - End Time 2025-03-28 11:33:05 [2025-03-28 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781227', 'tblTempUsageDetail_20' ) start [2025-03-28 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781227', 'tblTempUsageDetail_20' ) end [2025-03-28 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781227', 'tblTempVendorCDR_20' ) start [2025-03-28 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781227', 'tblTempVendorCDR_20' ) end [2025-03-28 11:33:20] Production.INFO: ProcessCDR(1,14781227,1,1,2) [2025-03-28 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781227', 'tblTempUsageDetail_20' ) start [2025-03-28 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781227', 'tblTempUsageDetail_20' ) end [2025-03-28 11:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:33:25] Production.INFO: ==22977== Releasing lock... [2025-03-28 11:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:33:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-28 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:34:05 [end_date_ymd] => 2025-03-28 11:34:05 [RateCDR] => 1 ) [2025-03-28 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:34:05' and `end` < '2025-03-28 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:34:19] Production.INFO: count ==4070 [2025-03-28 11:34:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:34:05 - End Time 2025-03-28 11:34:05 [2025-03-28 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781232', 'tblTempUsageDetail_20' ) start [2025-03-28 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781232', 'tblTempUsageDetail_20' ) end [2025-03-28 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781232', 'tblTempVendorCDR_20' ) start [2025-03-28 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781232', 'tblTempVendorCDR_20' ) end [2025-03-28 11:34:21] Production.INFO: ProcessCDR(1,14781232,1,1,2) [2025-03-28 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781232', 'tblTempUsageDetail_20' ) start [2025-03-28 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781232', 'tblTempUsageDetail_20' ) end [2025-03-28 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:34:26] Production.INFO: ==23063== Releasing lock... [2025-03-28 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:34:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-28 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:35:05 [end_date_ymd] => 2025-03-28 11:35:05 [RateCDR] => 1 ) [2025-03-28 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-28 08:35:05' and `end` < '2025-03-28 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-28 11:35:19] Production.INFO: count ==4095 [2025-03-28 11:35:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:35:05 - End Time 2025-03-28 11:35:05 [2025-03-28 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781237', 'tblTempUsageDetail_20' ) start [2025-03-28 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781237', 'tblTempUsageDetail_20' ) end [2025-03-28 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781237', 'tblTempVendorCDR_20' ) start [2025-03-28 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781237', 'tblTempVendorCDR_20' ) end [2025-03-28 11:35:20] Production.INFO: ProcessCDR(1,14781237,1,1,2) [2025-03-28 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781237', 'tblTempUsageDetail_20' ) start [2025-03-28 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781237', 'tblTempUsageDetail_20' ) end [2025-03-28 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:35:26] Production.INFO: ==23146== Releasing lock... [2025-03-28 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:35:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-28 11:36:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:36:07 [end_date_ymd] => 2025-03-28 11:36:07 [RateCDR] => 1 ) [2025-03-28 11:36:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:36:07' and `end` < '2025-03-28 11:36:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:36:20] Production.INFO: count ==4108 [2025-03-28 11:36:22] Production.ERROR: pbx CDR StartTime 2025-03-28 08:36:07 - End Time 2025-03-28 11:36:07 [2025-03-28 11:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781242', 'tblTempUsageDetail_20' ) start [2025-03-28 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781242', 'tblTempUsageDetail_20' ) end [2025-03-28 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781242', 'tblTempVendorCDR_20' ) start [2025-03-28 11:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781242', 'tblTempVendorCDR_20' ) end [2025-03-28 11:36:22] Production.INFO: ProcessCDR(1,14781242,1,1,2) [2025-03-28 11:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781242', 'tblTempUsageDetail_20' ) start [2025-03-28 11:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781242', 'tblTempUsageDetail_20' ) end [2025-03-28 11:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:36:27] Production.INFO: ==23228== Releasing lock... [2025-03-28 11:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:36:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-28 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:37:05 [end_date_ymd] => 2025-03-28 11:37:05 [RateCDR] => 1 ) [2025-03-28 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:37:05' and `end` < '2025-03-28 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:37:19] Production.INFO: count ==4112 [2025-03-28 11:37:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:37:05 - End Time 2025-03-28 11:37:05 [2025-03-28 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781247', 'tblTempUsageDetail_20' ) start [2025-03-28 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781247', 'tblTempUsageDetail_20' ) end [2025-03-28 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781247', 'tblTempVendorCDR_20' ) start [2025-03-28 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781247', 'tblTempVendorCDR_20' ) end [2025-03-28 11:37:20] Production.INFO: ProcessCDR(1,14781247,1,1,2) [2025-03-28 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781247', 'tblTempUsageDetail_20' ) start [2025-03-28 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781247', 'tblTempUsageDetail_20' ) end [2025-03-28 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:37:26] Production.INFO: ==23310== Releasing lock... [2025-03-28 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:37:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-28 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:38:06 [end_date_ymd] => 2025-03-28 11:38:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:38:06' and `end` < '2025-03-28 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-28 11:38:20] Production.INFO: count ==4126 [2025-03-28 11:38:22] Production.ERROR: pbx CDR StartTime 2025-03-28 08:38:06 - End Time 2025-03-28 11:38:06 [2025-03-28 11:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781252', 'tblTempUsageDetail_20' ) start [2025-03-28 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781252', 'tblTempUsageDetail_20' ) end [2025-03-28 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781252', 'tblTempVendorCDR_20' ) start [2025-03-28 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781252', 'tblTempVendorCDR_20' ) end [2025-03-28 11:38:22] Production.INFO: ProcessCDR(1,14781252,1,1,2) [2025-03-28 11:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781252', 'tblTempUsageDetail_20' ) start [2025-03-28 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781252', 'tblTempUsageDetail_20' ) end [2025-03-28 11:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:38:27] Production.INFO: ==23396== Releasing lock... [2025-03-28 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:38:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-28 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:39:06 [end_date_ymd] => 2025-03-28 11:39:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:39:06' and `end` < '2025-03-28 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-28 11:39:19] Production.INFO: count ==4130 [2025-03-28 11:39:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:39:06 - End Time 2025-03-28 11:39:06 [2025-03-28 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781257', 'tblTempUsageDetail_20' ) start [2025-03-28 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781257', 'tblTempUsageDetail_20' ) end [2025-03-28 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781257', 'tblTempVendorCDR_20' ) start [2025-03-28 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781257', 'tblTempVendorCDR_20' ) end [2025-03-28 11:39:21] Production.INFO: ProcessCDR(1,14781257,1,1,2) [2025-03-28 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781257', 'tblTempUsageDetail_20' ) start [2025-03-28 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781257', 'tblTempUsageDetail_20' ) end [2025-03-28 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:39:26] Production.INFO: ==23485== Releasing lock... [2025-03-28 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:39:26] Production.INFO: 59 MB #Memory Used# [2025-03-28 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:40:07 [end_date_ymd] => 2025-03-28 11:40:07 [RateCDR] => 1 ) [2025-03-28 11:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:40:07' and `end` < '2025-03-28 11:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:40:20] Production.INFO: count ==4147 [2025-03-28 11:40:22] Production.ERROR: pbx CDR StartTime 2025-03-28 08:40:07 - End Time 2025-03-28 11:40:07 [2025-03-28 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781263', 'tblTempUsageDetail_20' ) start [2025-03-28 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781263', 'tblTempUsageDetail_20' ) end [2025-03-28 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781263', 'tblTempVendorCDR_20' ) start [2025-03-28 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781263', 'tblTempVendorCDR_20' ) end [2025-03-28 11:40:22] Production.INFO: ProcessCDR(1,14781263,1,1,2) [2025-03-28 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781263', 'tblTempUsageDetail_20' ) start [2025-03-28 11:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781263', 'tblTempUsageDetail_20' ) end [2025-03-28 11:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:40:28] Production.INFO: ==23570== Releasing lock... [2025-03-28 11:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:40:28] Production.INFO: 59 MB #Memory Used# [2025-03-28 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:41:05 [end_date_ymd] => 2025-03-28 11:41:05 [RateCDR] => 1 ) [2025-03-28 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:41:05' and `end` < '2025-03-28 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:41:19] Production.INFO: count ==4232 [2025-03-28 11:41:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:41:05 - End Time 2025-03-28 11:41:05 [2025-03-28 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781268', 'tblTempUsageDetail_20' ) start [2025-03-28 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781268', 'tblTempUsageDetail_20' ) end [2025-03-28 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781268', 'tblTempVendorCDR_20' ) start [2025-03-28 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781268', 'tblTempVendorCDR_20' ) end [2025-03-28 11:41:21] Production.INFO: ProcessCDR(1,14781268,1,1,2) [2025-03-28 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781268', 'tblTempUsageDetail_20' ) start [2025-03-28 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781268', 'tblTempUsageDetail_20' ) end [2025-03-28 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:41:26] Production.INFO: ==23659== Releasing lock... [2025-03-28 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:41:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-28 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:42:06 [end_date_ymd] => 2025-03-28 11:42:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:42:06' and `end` < '2025-03-28 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-28 11:42:19] Production.INFO: count ==4233 [2025-03-28 11:42:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:42:06 - End Time 2025-03-28 11:42:06 [2025-03-28 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781273', 'tblTempUsageDetail_20' ) start [2025-03-28 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781273', 'tblTempUsageDetail_20' ) end [2025-03-28 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781273', 'tblTempVendorCDR_20' ) start [2025-03-28 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781273', 'tblTempVendorCDR_20' ) end [2025-03-28 11:42:21] Production.INFO: ProcessCDR(1,14781273,1,1,2) [2025-03-28 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781273', 'tblTempUsageDetail_20' ) start [2025-03-28 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781273', 'tblTempUsageDetail_20' ) end [2025-03-28 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:42:26] Production.INFO: ==23745== Releasing lock... [2025-03-28 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:42:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-28 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:43:05 [end_date_ymd] => 2025-03-28 11:43:05 [RateCDR] => 1 ) [2025-03-28 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:43:05' and `end` < '2025-03-28 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:43:19] Production.INFO: count ==4256 [2025-03-28 11:43:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:43:05 - End Time 2025-03-28 11:43:05 [2025-03-28 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781278', 'tblTempUsageDetail_20' ) start [2025-03-28 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781278', 'tblTempUsageDetail_20' ) end [2025-03-28 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781278', 'tblTempVendorCDR_20' ) start [2025-03-28 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781278', 'tblTempVendorCDR_20' ) end [2025-03-28 11:43:21] Production.INFO: ProcessCDR(1,14781278,1,1,2) [2025-03-28 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781278', 'tblTempUsageDetail_20' ) start [2025-03-28 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781278', 'tblTempUsageDetail_20' ) end [2025-03-28 11:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:43:24] Production.INFO: ==23826== Releasing lock... [2025-03-28 11:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:43:24] Production.INFO: 59.75 MB #Memory Used# [2025-03-28 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:44:06 [end_date_ymd] => 2025-03-28 11:44:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:44:06' and `end` < '2025-03-28 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-28 11:44:19] Production.INFO: count ==4266 [2025-03-28 11:44:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:44:06 - End Time 2025-03-28 11:44:06 [2025-03-28 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781283', 'tblTempUsageDetail_20' ) start [2025-03-28 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781283', 'tblTempUsageDetail_20' ) end [2025-03-28 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781283', 'tblTempVendorCDR_20' ) start [2025-03-28 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781283', 'tblTempVendorCDR_20' ) end [2025-03-28 11:44:21] Production.INFO: ProcessCDR(1,14781283,1,1,2) [2025-03-28 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781283', 'tblTempUsageDetail_20' ) start [2025-03-28 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781283', 'tblTempUsageDetail_20' ) end [2025-03-28 11:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:44:27] Production.INFO: ==23911== Releasing lock... [2025-03-28 11:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:44:27] Production.INFO: 60 MB #Memory Used# [2025-03-28 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:45:05 [end_date_ymd] => 2025-03-28 11:45:05 [RateCDR] => 1 ) [2025-03-28 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:45:05' and `end` < '2025-03-28 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:45:19] Production.INFO: count ==4302 [2025-03-28 11:45:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:45:05 - End Time 2025-03-28 11:45:05 [2025-03-28 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781288', 'tblTempUsageDetail_20' ) start [2025-03-28 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781288', 'tblTempUsageDetail_20' ) end [2025-03-28 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781288', 'tblTempVendorCDR_20' ) start [2025-03-28 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781288', 'tblTempVendorCDR_20' ) end [2025-03-28 11:45:21] Production.INFO: ProcessCDR(1,14781288,1,1,2) [2025-03-28 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781288', 'tblTempUsageDetail_20' ) start [2025-03-28 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781288', 'tblTempUsageDetail_20' ) end [2025-03-28 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:45:27] Production.INFO: ==23996== Releasing lock... [2025-03-28 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:45:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-28 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:46:06 [end_date_ymd] => 2025-03-28 11:46:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:46:06' and `end` < '2025-03-28 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-28 11:46:19] Production.INFO: count ==4311 [2025-03-28 11:46:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:46:06 - End Time 2025-03-28 11:46:06 [2025-03-28 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781293', 'tblTempUsageDetail_20' ) start [2025-03-28 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781293', 'tblTempUsageDetail_20' ) end [2025-03-28 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781293', 'tblTempVendorCDR_20' ) start [2025-03-28 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781293', 'tblTempVendorCDR_20' ) end [2025-03-28 11:46:21] Production.INFO: ProcessCDR(1,14781293,1,1,2) [2025-03-28 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781293', 'tblTempUsageDetail_20' ) start [2025-03-28 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781293', 'tblTempUsageDetail_20' ) end [2025-03-28 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:46:27] Production.INFO: ==24084== Releasing lock... [2025-03-28 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:46:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-28 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:47:05 [end_date_ymd] => 2025-03-28 11:47:05 [RateCDR] => 1 ) [2025-03-28 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:47:05' and `end` < '2025-03-28 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:47:19] Production.INFO: count ==4310 [2025-03-28 11:47:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:47:05 - End Time 2025-03-28 11:47:05 [2025-03-28 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781298', 'tblTempUsageDetail_20' ) start [2025-03-28 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781298', 'tblTempUsageDetail_20' ) end [2025-03-28 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781298', 'tblTempVendorCDR_20' ) start [2025-03-28 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781298', 'tblTempVendorCDR_20' ) end [2025-03-28 11:47:21] Production.INFO: ProcessCDR(1,14781298,1,1,2) [2025-03-28 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781298', 'tblTempUsageDetail_20' ) start [2025-03-28 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781298', 'tblTempUsageDetail_20' ) end [2025-03-28 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:47:26] Production.INFO: ==24204== Releasing lock... [2025-03-28 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:47:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-28 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:48:06 [end_date_ymd] => 2025-03-28 11:48:06 [RateCDR] => 1 ) [2025-03-28 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:48:06' and `end` < '2025-03-28 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:48:19] Production.INFO: count ==4328 [2025-03-28 11:48:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:48:06 - End Time 2025-03-28 11:48:06 [2025-03-28 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781303', 'tblTempUsageDetail_20' ) start [2025-03-28 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781303', 'tblTempUsageDetail_20' ) end [2025-03-28 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781303', 'tblTempVendorCDR_20' ) start [2025-03-28 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781303', 'tblTempVendorCDR_20' ) end [2025-03-28 11:48:21] Production.INFO: ProcessCDR(1,14781303,1,1,2) [2025-03-28 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781303', 'tblTempUsageDetail_20' ) start [2025-03-28 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781303', 'tblTempUsageDetail_20' ) end [2025-03-28 11:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:48:26] Production.INFO: ==24290== Releasing lock... [2025-03-28 11:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:48:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-28 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:49:05 [end_date_ymd] => 2025-03-28 11:49:05 [RateCDR] => 1 ) [2025-03-28 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:49:05' and `end` < '2025-03-28 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:49:19] Production.INFO: count ==4335 [2025-03-28 11:49:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:49:05 - End Time 2025-03-28 11:49:05 [2025-03-28 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781308', 'tblTempUsageDetail_20' ) start [2025-03-28 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781308', 'tblTempUsageDetail_20' ) end [2025-03-28 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781308', 'tblTempVendorCDR_20' ) start [2025-03-28 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781308', 'tblTempVendorCDR_20' ) end [2025-03-28 11:49:20] Production.INFO: ProcessCDR(1,14781308,1,1,2) [2025-03-28 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781308', 'tblTempUsageDetail_20' ) start [2025-03-28 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781308', 'tblTempUsageDetail_20' ) end [2025-03-28 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:49:26] Production.INFO: ==24370== Releasing lock... [2025-03-28 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:49:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-28 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:50:06 [end_date_ymd] => 2025-03-28 11:50:06 [RateCDR] => 1 ) [2025-03-28 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:50:06' and `end` < '2025-03-28 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:50:20] Production.INFO: count ==4351 [2025-03-28 11:50:22] Production.ERROR: pbx CDR StartTime 2025-03-28 08:50:06 - End Time 2025-03-28 11:50:06 [2025-03-28 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781314', 'tblTempUsageDetail_20' ) start [2025-03-28 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781314', 'tblTempUsageDetail_20' ) end [2025-03-28 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781314', 'tblTempVendorCDR_20' ) start [2025-03-28 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781314', 'tblTempVendorCDR_20' ) end [2025-03-28 11:50:22] Production.INFO: ProcessCDR(1,14781314,1,1,2) [2025-03-28 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781314', 'tblTempUsageDetail_20' ) start [2025-03-28 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781314', 'tblTempUsageDetail_20' ) end [2025-03-28 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:50:27] Production.INFO: ==24454== Releasing lock... [2025-03-28 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:50:27] Production.INFO: 60.5 MB #Memory Used# [2025-03-28 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:51:05 [end_date_ymd] => 2025-03-28 11:51:05 [RateCDR] => 1 ) [2025-03-28 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:51:05' and `end` < '2025-03-28 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:51:19] Production.INFO: count ==4408 [2025-03-28 11:51:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:51:05 - End Time 2025-03-28 11:51:05 [2025-03-28 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781319', 'tblTempUsageDetail_20' ) start [2025-03-28 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781319', 'tblTempUsageDetail_20' ) end [2025-03-28 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781319', 'tblTempVendorCDR_20' ) start [2025-03-28 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781319', 'tblTempVendorCDR_20' ) end [2025-03-28 11:51:21] Production.INFO: ProcessCDR(1,14781319,1,1,2) [2025-03-28 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781319', 'tblTempUsageDetail_20' ) start [2025-03-28 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781319', 'tblTempUsageDetail_20' ) end [2025-03-28 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:51:26] Production.INFO: ==24542== Releasing lock... [2025-03-28 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:51:26] Production.INFO: 61 MB #Memory Used# [2025-03-28 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:52:06 [end_date_ymd] => 2025-03-28 11:52:06 [RateCDR] => 1 ) [2025-03-28 11:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:52:06' and `end` < '2025-03-28 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:52:19] Production.INFO: count ==4425 [2025-03-28 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:52:06 - End Time 2025-03-28 11:52:06 [2025-03-28 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781324', 'tblTempUsageDetail_20' ) start [2025-03-28 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781324', 'tblTempUsageDetail_20' ) end [2025-03-28 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781324', 'tblTempVendorCDR_20' ) start [2025-03-28 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781324', 'tblTempVendorCDR_20' ) end [2025-03-28 11:52:21] Production.INFO: ProcessCDR(1,14781324,1,1,2) [2025-03-28 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781324', 'tblTempUsageDetail_20' ) start [2025-03-28 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781324', 'tblTempUsageDetail_20' ) end [2025-03-28 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:52:27] Production.INFO: ==24628== Releasing lock... [2025-03-28 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:52:27] Production.INFO: 61 MB #Memory Used# [2025-03-28 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:53:05 [end_date_ymd] => 2025-03-28 11:53:05 [RateCDR] => 1 ) [2025-03-28 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-28 08:53:05' and `end` < '2025-03-28 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-28 11:53:19] Production.INFO: count ==4425 [2025-03-28 11:53:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:53:05 - End Time 2025-03-28 11:53:05 [2025-03-28 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781329', 'tblTempUsageDetail_20' ) start [2025-03-28 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781329', 'tblTempUsageDetail_20' ) end [2025-03-28 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781329', 'tblTempVendorCDR_20' ) start [2025-03-28 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781329', 'tblTempVendorCDR_20' ) end [2025-03-28 11:53:21] Production.INFO: ProcessCDR(1,14781329,1,1,2) [2025-03-28 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781329', 'tblTempUsageDetail_20' ) start [2025-03-28 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781329', 'tblTempUsageDetail_20' ) end [2025-03-28 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:53:26] Production.INFO: ==24713== Releasing lock... [2025-03-28 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:53:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-28 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:54:06 [end_date_ymd] => 2025-03-28 11:54:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:54:06' and `end` < '2025-03-28 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-28 11:54:19] Production.INFO: count ==4435 [2025-03-28 11:54:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:54:06 - End Time 2025-03-28 11:54:06 [2025-03-28 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781334', 'tblTempUsageDetail_20' ) start [2025-03-28 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781334', 'tblTempUsageDetail_20' ) end [2025-03-28 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781334', 'tblTempVendorCDR_20' ) start [2025-03-28 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781334', 'tblTempVendorCDR_20' ) end [2025-03-28 11:54:21] Production.INFO: ProcessCDR(1,14781334,1,1,2) [2025-03-28 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781334', 'tblTempUsageDetail_20' ) start [2025-03-28 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781334', 'tblTempUsageDetail_20' ) end [2025-03-28 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:54:27] Production.INFO: ==24802== Releasing lock... [2025-03-28 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:54:27] Production.INFO: 61.25 MB #Memory Used# [2025-03-28 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:55:06 [end_date_ymd] => 2025-03-28 11:55:06 [RateCDR] => 1 ) [2025-03-28 11:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:55:06' and `end` < '2025-03-28 11:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:55:20] Production.INFO: count ==4458 [2025-03-28 11:55:22] Production.ERROR: pbx CDR StartTime 2025-03-28 08:55:06 - End Time 2025-03-28 11:55:06 [2025-03-28 11:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781339', 'tblTempUsageDetail_20' ) start [2025-03-28 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781339', 'tblTempUsageDetail_20' ) end [2025-03-28 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781339', 'tblTempVendorCDR_20' ) start [2025-03-28 11:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781339', 'tblTempVendorCDR_20' ) end [2025-03-28 11:55:22] Production.INFO: ProcessCDR(1,14781339,1,1,2) [2025-03-28 11:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781339', 'tblTempUsageDetail_20' ) start [2025-03-28 11:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781339', 'tblTempUsageDetail_20' ) end [2025-03-28 11:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:55:27] Production.INFO: ==24885== Releasing lock... [2025-03-28 11:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:55:27] Production.INFO: 61.25 MB #Memory Used# [2025-03-28 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:56:06 [end_date_ymd] => 2025-03-28 11:56:06 [RateCDR] => 1 ) [2025-03-28 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 08:56:06' and `end` < '2025-03-28 11:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 11:56:20] Production.INFO: count ==4465 [2025-03-28 11:56:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:56:06 - End Time 2025-03-28 11:56:06 [2025-03-28 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781344', 'tblTempUsageDetail_20' ) start [2025-03-28 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781344', 'tblTempUsageDetail_20' ) end [2025-03-28 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781344', 'tblTempVendorCDR_20' ) start [2025-03-28 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781344', 'tblTempVendorCDR_20' ) end [2025-03-28 11:56:22] Production.INFO: ProcessCDR(1,14781344,1,1,2) [2025-03-28 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781344', 'tblTempUsageDetail_20' ) start [2025-03-28 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781344', 'tblTempUsageDetail_20' ) end [2025-03-28 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:56:27] Production.INFO: ==24983== Releasing lock... [2025-03-28 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:56:27] Production.INFO: 61.5 MB #Memory Used# [2025-03-28 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:57:05 [end_date_ymd] => 2025-03-28 11:57:05 [RateCDR] => 1 ) [2025-03-28 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-28 08:57:05' and `end` < '2025-03-28 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-28 11:57:19] Production.INFO: count ==4469 [2025-03-28 11:57:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:57:05 - End Time 2025-03-28 11:57:05 [2025-03-28 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781349', 'tblTempUsageDetail_20' ) start [2025-03-28 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781349', 'tblTempUsageDetail_20' ) end [2025-03-28 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781349', 'tblTempVendorCDR_20' ) start [2025-03-28 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781349', 'tblTempVendorCDR_20' ) end [2025-03-28 11:57:21] Production.INFO: ProcessCDR(1,14781349,1,1,2) [2025-03-28 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781349', 'tblTempUsageDetail_20' ) start [2025-03-28 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781349', 'tblTempUsageDetail_20' ) end [2025-03-28 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:57:26] Production.INFO: ==25072== Releasing lock... [2025-03-28 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:57:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-28 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:58:06 [end_date_ymd] => 2025-03-28 11:58:06 [RateCDR] => 1 ) [2025-03-28 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-28 08:58:06' and `end` < '2025-03-28 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-28 11:58:19] Production.INFO: count ==4477 [2025-03-28 11:58:21] Production.ERROR: pbx CDR StartTime 2025-03-28 08:58:06 - End Time 2025-03-28 11:58:06 [2025-03-28 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781354', 'tblTempUsageDetail_20' ) start [2025-03-28 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781354', 'tblTempUsageDetail_20' ) end [2025-03-28 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781354', 'tblTempVendorCDR_20' ) start [2025-03-28 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781354', 'tblTempVendorCDR_20' ) end [2025-03-28 11:58:21] Production.INFO: ProcessCDR(1,14781354,1,1,2) [2025-03-28 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781354', 'tblTempUsageDetail_20' ) start [2025-03-28 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781354', 'tblTempUsageDetail_20' ) end [2025-03-28 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:58:26] Production.INFO: ==25160== Releasing lock... [2025-03-28 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:58:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-28 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 08:59:05 [end_date_ymd] => 2025-03-28 11:59:05 [RateCDR] => 1 ) [2025-03-28 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-28 08:59:05' and `end` < '2025-03-28 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-28 11:59:19] Production.INFO: count ==4507 [2025-03-28 11:59:20] Production.ERROR: pbx CDR StartTime 2025-03-28 08:59:05 - End Time 2025-03-28 11:59:05 [2025-03-28 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781359', 'tblTempUsageDetail_20' ) start [2025-03-28 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781359', 'tblTempUsageDetail_20' ) end [2025-03-28 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781359', 'tblTempVendorCDR_20' ) start [2025-03-28 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781359', 'tblTempVendorCDR_20' ) end [2025-03-28 11:59:21] Production.INFO: ProcessCDR(1,14781359,1,1,2) [2025-03-28 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781359', 'tblTempUsageDetail_20' ) start [2025-03-28 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781359', 'tblTempUsageDetail_20' ) end [2025-03-28 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 11:59:26] Production.INFO: ==25252== Releasing lock... [2025-03-28 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 11:59:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-28 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:00:07 [end_date_ymd] => 2025-03-28 12:00:07 [RateCDR] => 1 ) [2025-03-28 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-28 09:00:07' and `end` < '2025-03-28 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-28 12:00:20] Production.INFO: count ==4519 [2025-03-28 12:00:22] Production.ERROR: pbx CDR StartTime 2025-03-28 09:00:07 - End Time 2025-03-28 12:00:07 [2025-03-28 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781365', 'tblTempUsageDetail_20' ) start [2025-03-28 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781365', 'tblTempUsageDetail_20' ) end [2025-03-28 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781365', 'tblTempVendorCDR_20' ) start [2025-03-28 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781365', 'tblTempVendorCDR_20' ) end [2025-03-28 12:00:22] Production.INFO: ProcessCDR(1,14781365,1,1,2) [2025-03-28 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781365', 'tblTempUsageDetail_20' ) start [2025-03-28 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781365', 'tblTempUsageDetail_20' ) end [2025-03-28 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:00:28] Production.INFO: ==25365== Releasing lock... [2025-03-28 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:00:28] Production.INFO: 61.75 MB #Memory Used# [2025-03-28 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:01:05 [end_date_ymd] => 2025-03-28 12:01:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:01:05' and `end` < '2025-03-28 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-28 12:01:19] Production.INFO: count ==4577 [2025-03-28 12:01:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:01:05 - End Time 2025-03-28 12:01:05 [2025-03-28 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781370', 'tblTempUsageDetail_20' ) start [2025-03-28 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781370', 'tblTempUsageDetail_20' ) end [2025-03-28 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781370', 'tblTempVendorCDR_20' ) start [2025-03-28 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781370', 'tblTempVendorCDR_20' ) end [2025-03-28 12:01:21] Production.INFO: ProcessCDR(1,14781370,1,1,2) [2025-03-28 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781370', 'tblTempUsageDetail_20' ) start [2025-03-28 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781370', 'tblTempUsageDetail_20' ) end [2025-03-28 12:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:01:27] Production.INFO: ==25503== Releasing lock... [2025-03-28 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:01:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-28 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:02:06 [end_date_ymd] => 2025-03-28 12:02:06 [RateCDR] => 1 ) [2025-03-28 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:02:06' and `end` < '2025-03-28 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:02:19] Production.INFO: count ==4584 [2025-03-28 12:02:22] Production.ERROR: pbx CDR StartTime 2025-03-28 09:02:06 - End Time 2025-03-28 12:02:06 [2025-03-28 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781375', 'tblTempUsageDetail_20' ) start [2025-03-28 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781375', 'tblTempUsageDetail_20' ) end [2025-03-28 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781375', 'tblTempVendorCDR_20' ) start [2025-03-28 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781375', 'tblTempVendorCDR_20' ) end [2025-03-28 12:02:22] Production.INFO: ProcessCDR(1,14781375,1,1,2) [2025-03-28 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781375', 'tblTempUsageDetail_20' ) start [2025-03-28 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781375', 'tblTempUsageDetail_20' ) end [2025-03-28 12:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:02:28] Production.INFO: ==25662== Releasing lock... [2025-03-28 12:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:02:28] Production.INFO: 62.25 MB #Memory Used# [2025-03-28 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:03:05 [end_date_ymd] => 2025-03-28 12:03:05 [RateCDR] => 1 ) [2025-03-28 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:03:05' and `end` < '2025-03-28 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:03:19] Production.INFO: count ==4581 [2025-03-28 12:03:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:03:05 - End Time 2025-03-28 12:03:05 [2025-03-28 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781380', 'tblTempUsageDetail_20' ) start [2025-03-28 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781380', 'tblTempUsageDetail_20' ) end [2025-03-28 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781380', 'tblTempVendorCDR_20' ) start [2025-03-28 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781380', 'tblTempVendorCDR_20' ) end [2025-03-28 12:03:21] Production.INFO: ProcessCDR(1,14781380,1,1,2) [2025-03-28 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781380', 'tblTempUsageDetail_20' ) start [2025-03-28 12:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781380', 'tblTempUsageDetail_20' ) end [2025-03-28 12:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:03:27] Production.INFO: ==25779== Releasing lock... [2025-03-28 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:03:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-28 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:04:06 [end_date_ymd] => 2025-03-28 12:04:06 [RateCDR] => 1 ) [2025-03-28 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:04:06' and `end` < '2025-03-28 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:04:20] Production.INFO: count ==4607 [2025-03-28 12:04:22] Production.ERROR: pbx CDR StartTime 2025-03-28 09:04:06 - End Time 2025-03-28 12:04:06 [2025-03-28 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781385', 'tblTempUsageDetail_20' ) start [2025-03-28 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781385', 'tblTempUsageDetail_20' ) end [2025-03-28 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781385', 'tblTempVendorCDR_20' ) start [2025-03-28 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781385', 'tblTempVendorCDR_20' ) end [2025-03-28 12:04:22] Production.INFO: ProcessCDR(1,14781385,1,1,2) [2025-03-28 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781385', 'tblTempUsageDetail_20' ) start [2025-03-28 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781385', 'tblTempUsageDetail_20' ) end [2025-03-28 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:04:27] Production.INFO: ==25907== Releasing lock... [2025-03-28 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:04:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-28 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:05:05 [end_date_ymd] => 2025-03-28 12:05:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:05:05' and `end` < '2025-03-28 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-28 12:05:19] Production.INFO: count ==4611 [2025-03-28 12:05:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:05:05 - End Time 2025-03-28 12:05:05 [2025-03-28 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781390', 'tblTempUsageDetail_20' ) start [2025-03-28 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781390', 'tblTempUsageDetail_20' ) end [2025-03-28 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781390', 'tblTempVendorCDR_20' ) start [2025-03-28 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781390', 'tblTempVendorCDR_20' ) end [2025-03-28 12:05:21] Production.INFO: ProcessCDR(1,14781390,1,1,2) [2025-03-28 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781390', 'tblTempUsageDetail_20' ) start [2025-03-28 12:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781390', 'tblTempUsageDetail_20' ) end [2025-03-28 12:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:05:24] Production.INFO: ==26008== Releasing lock... [2025-03-28 12:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:05:24] Production.INFO: 62.5 MB #Memory Used# [2025-03-28 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:06:05 [end_date_ymd] => 2025-03-28 12:06:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:06:05' and `end` < '2025-03-28 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-28 12:06:19] Production.INFO: count ==4620 [2025-03-28 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:06:05 - End Time 2025-03-28 12:06:05 [2025-03-28 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781395', 'tblTempUsageDetail_20' ) start [2025-03-28 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781395', 'tblTempUsageDetail_20' ) end [2025-03-28 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781395', 'tblTempVendorCDR_20' ) start [2025-03-28 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781395', 'tblTempVendorCDR_20' ) end [2025-03-28 12:06:21] Production.INFO: ProcessCDR(1,14781395,1,1,2) [2025-03-28 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781395', 'tblTempUsageDetail_20' ) start [2025-03-28 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781395', 'tblTempUsageDetail_20' ) end [2025-03-28 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:06:27] Production.INFO: ==26117== Releasing lock... [2025-03-28 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:06:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-28 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:07:05 [end_date_ymd] => 2025-03-28 12:07:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:07:05' and `end` < '2025-03-28 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-28 12:07:19] Production.INFO: count ==4636 [2025-03-28 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:07:05 - End Time 2025-03-28 12:07:05 [2025-03-28 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781400', 'tblTempUsageDetail_20' ) start [2025-03-28 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781400', 'tblTempUsageDetail_20' ) end [2025-03-28 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781400', 'tblTempVendorCDR_20' ) start [2025-03-28 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781400', 'tblTempVendorCDR_20' ) end [2025-03-28 12:07:21] Production.INFO: ProcessCDR(1,14781400,1,1,2) [2025-03-28 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781400', 'tblTempUsageDetail_20' ) start [2025-03-28 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781400', 'tblTempUsageDetail_20' ) end [2025-03-28 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:07:27] Production.INFO: ==26210== Releasing lock... [2025-03-28 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:07:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-28 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:08:06 [end_date_ymd] => 2025-03-28 12:08:06 [RateCDR] => 1 ) [2025-03-28 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-28 09:08:06' and `end` < '2025-03-28 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-28 12:08:19] Production.INFO: count ==4641 [2025-03-28 12:08:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:08:06 - End Time 2025-03-28 12:08:06 [2025-03-28 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781405', 'tblTempUsageDetail_20' ) start [2025-03-28 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781405', 'tblTempUsageDetail_20' ) end [2025-03-28 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781405', 'tblTempVendorCDR_20' ) start [2025-03-28 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781405', 'tblTempVendorCDR_20' ) end [2025-03-28 12:08:21] Production.INFO: ProcessCDR(1,14781405,1,1,2) [2025-03-28 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781405', 'tblTempUsageDetail_20' ) start [2025-03-28 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781405', 'tblTempUsageDetail_20' ) end [2025-03-28 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:08:27] Production.INFO: ==26299== Releasing lock... [2025-03-28 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:08:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-28 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:09:05 [end_date_ymd] => 2025-03-28 12:09:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:09:05' and `end` < '2025-03-28 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-28 12:09:19] Production.INFO: count ==4650 [2025-03-28 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:09:05 - End Time 2025-03-28 12:09:05 [2025-03-28 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781410', 'tblTempUsageDetail_20' ) start [2025-03-28 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781410', 'tblTempUsageDetail_20' ) end [2025-03-28 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781410', 'tblTempVendorCDR_20' ) start [2025-03-28 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781410', 'tblTempVendorCDR_20' ) end [2025-03-28 12:09:21] Production.INFO: ProcessCDR(1,14781410,1,1,2) [2025-03-28 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781410', 'tblTempUsageDetail_20' ) start [2025-03-28 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781410', 'tblTempUsageDetail_20' ) end [2025-03-28 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:09:27] Production.INFO: ==26388== Releasing lock... [2025-03-28 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:09:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-28 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:10:06 [end_date_ymd] => 2025-03-28 12:10:06 [RateCDR] => 1 ) [2025-03-28 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-28 09:10:06' and `end` < '2025-03-28 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-28 12:10:20] Production.INFO: count ==4629 [2025-03-28 12:10:22] Production.ERROR: pbx CDR StartTime 2025-03-28 09:10:06 - End Time 2025-03-28 12:10:06 [2025-03-28 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781416', 'tblTempUsageDetail_20' ) start [2025-03-28 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781416', 'tblTempUsageDetail_20' ) end [2025-03-28 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781416', 'tblTempVendorCDR_20' ) start [2025-03-28 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781416', 'tblTempVendorCDR_20' ) end [2025-03-28 12:10:22] Production.INFO: ProcessCDR(1,14781416,1,1,2) [2025-03-28 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781416', 'tblTempUsageDetail_20' ) start [2025-03-28 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781416', 'tblTempUsageDetail_20' ) end [2025-03-28 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:10:27] Production.INFO: ==26479== Releasing lock... [2025-03-28 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:10:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-28 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:11:05 [end_date_ymd] => 2025-03-28 12:11:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:11:05' and `end` < '2025-03-28 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-28 12:11:18] Production.INFO: count ==4650 [2025-03-28 12:11:20] Production.ERROR: pbx CDR StartTime 2025-03-28 09:11:05 - End Time 2025-03-28 12:11:05 [2025-03-28 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781421', 'tblTempUsageDetail_20' ) start [2025-03-28 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781421', 'tblTempUsageDetail_20' ) end [2025-03-28 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781421', 'tblTempVendorCDR_20' ) start [2025-03-28 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781421', 'tblTempVendorCDR_20' ) end [2025-03-28 12:11:20] Production.INFO: ProcessCDR(1,14781421,1,1,2) [2025-03-28 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781421', 'tblTempUsageDetail_20' ) start [2025-03-28 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781421', 'tblTempUsageDetail_20' ) end [2025-03-28 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:11:26] Production.INFO: ==26575== Releasing lock... [2025-03-28 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:11:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-28 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:12:05 [end_date_ymd] => 2025-03-28 12:12:05 [RateCDR] => 1 ) [2025-03-28 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:12:05' and `end` < '2025-03-28 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:12:19] Production.INFO: count ==4665 [2025-03-28 12:12:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:12:05 - End Time 2025-03-28 12:12:05 [2025-03-28 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781426', 'tblTempUsageDetail_20' ) start [2025-03-28 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781426', 'tblTempUsageDetail_20' ) end [2025-03-28 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781426', 'tblTempVendorCDR_20' ) start [2025-03-28 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781426', 'tblTempVendorCDR_20' ) end [2025-03-28 12:12:21] Production.INFO: ProcessCDR(1,14781426,1,1,2) [2025-03-28 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781426', 'tblTempUsageDetail_20' ) start [2025-03-28 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781426', 'tblTempUsageDetail_20' ) end [2025-03-28 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:12:26] Production.INFO: ==26667== Releasing lock... [2025-03-28 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:12:26] Production.INFO: 63 MB #Memory Used# [2025-03-28 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:13:05 [end_date_ymd] => 2025-03-28 12:13:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:13:05' and `end` < '2025-03-28 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-28 12:13:19] Production.INFO: count ==4681 [2025-03-28 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:13:05 - End Time 2025-03-28 12:13:05 [2025-03-28 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781431', 'tblTempUsageDetail_20' ) start [2025-03-28 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781431', 'tblTempUsageDetail_20' ) end [2025-03-28 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781431', 'tblTempVendorCDR_20' ) start [2025-03-28 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781431', 'tblTempVendorCDR_20' ) end [2025-03-28 12:13:21] Production.INFO: ProcessCDR(1,14781431,1,1,2) [2025-03-28 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781431', 'tblTempUsageDetail_20' ) start [2025-03-28 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781431', 'tblTempUsageDetail_20' ) end [2025-03-28 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:13:27] Production.INFO: ==26753== Releasing lock... [2025-03-28 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:13:27] Production.INFO: 63 MB #Memory Used# [2025-03-28 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:14:06 [end_date_ymd] => 2025-03-28 12:14:06 [RateCDR] => 1 ) [2025-03-28 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-28 09:14:06' and `end` < '2025-03-28 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-28 12:14:19] Production.INFO: count ==4672 [2025-03-28 12:14:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:14:06 - End Time 2025-03-28 12:14:06 [2025-03-28 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781436', 'tblTempUsageDetail_20' ) start [2025-03-28 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781436', 'tblTempUsageDetail_20' ) end [2025-03-28 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781436', 'tblTempVendorCDR_20' ) start [2025-03-28 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781436', 'tblTempVendorCDR_20' ) end [2025-03-28 12:14:22] Production.INFO: ProcessCDR(1,14781436,1,1,2) [2025-03-28 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781436', 'tblTempUsageDetail_20' ) start [2025-03-28 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781436', 'tblTempUsageDetail_20' ) end [2025-03-28 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:14:27] Production.INFO: ==26839== Releasing lock... [2025-03-28 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:14:27] Production.INFO: 63 MB #Memory Used# [2025-03-28 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:15:06 [end_date_ymd] => 2025-03-28 12:15:06 [RateCDR] => 1 ) [2025-03-28 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-28 09:15:06' and `end` < '2025-03-28 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-28 12:15:19] Production.INFO: count ==4676 [2025-03-28 12:15:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:15:06 - End Time 2025-03-28 12:15:06 [2025-03-28 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781441', 'tblTempUsageDetail_20' ) start [2025-03-28 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781441', 'tblTempUsageDetail_20' ) end [2025-03-28 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781441', 'tblTempVendorCDR_20' ) start [2025-03-28 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781441', 'tblTempVendorCDR_20' ) end [2025-03-28 12:15:21] Production.INFO: ProcessCDR(1,14781441,1,1,2) [2025-03-28 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781441', 'tblTempUsageDetail_20' ) start [2025-03-28 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781441', 'tblTempUsageDetail_20' ) end [2025-03-28 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:15:27] Production.INFO: ==26929== Releasing lock... [2025-03-28 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:15:27] Production.INFO: 63 MB #Memory Used# [2025-03-28 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:16:05 [end_date_ymd] => 2025-03-28 12:16:05 [RateCDR] => 1 ) [2025-03-28 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:16:05' and `end` < '2025-03-28 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:16:19] Production.INFO: count ==4681 [2025-03-28 12:16:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:16:05 - End Time 2025-03-28 12:16:05 [2025-03-28 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781446', 'tblTempUsageDetail_20' ) start [2025-03-28 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781446', 'tblTempUsageDetail_20' ) end [2025-03-28 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781446', 'tblTempVendorCDR_20' ) start [2025-03-28 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781446', 'tblTempVendorCDR_20' ) end [2025-03-28 12:16:21] Production.INFO: ProcessCDR(1,14781446,1,1,2) [2025-03-28 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781446', 'tblTempUsageDetail_20' ) start [2025-03-28 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781446', 'tblTempUsageDetail_20' ) end [2025-03-28 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:16:26] Production.INFO: ==27019== Releasing lock... [2025-03-28 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:16:26] Production.INFO: 63 MB #Memory Used# [2025-03-28 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:17:06 [end_date_ymd] => 2025-03-28 12:17:06 [RateCDR] => 1 ) [2025-03-28 12:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:17:06' and `end` < '2025-03-28 12:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:17:19] Production.INFO: count ==4682 [2025-03-28 12:17:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:17:06 - End Time 2025-03-28 12:17:06 [2025-03-28 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781451', 'tblTempUsageDetail_20' ) start [2025-03-28 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781451', 'tblTempUsageDetail_20' ) end [2025-03-28 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781451', 'tblTempVendorCDR_20' ) start [2025-03-28 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781451', 'tblTempVendorCDR_20' ) end [2025-03-28 12:17:21] Production.INFO: ProcessCDR(1,14781451,1,1,2) [2025-03-28 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781451', 'tblTempUsageDetail_20' ) start [2025-03-28 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781451', 'tblTempUsageDetail_20' ) end [2025-03-28 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:17:26] Production.INFO: ==27113== Releasing lock... [2025-03-28 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:17:26] Production.INFO: 63 MB #Memory Used# [2025-03-28 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:18:05 [end_date_ymd] => 2025-03-28 12:18:05 [RateCDR] => 1 ) [2025-03-28 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:18:05' and `end` < '2025-03-28 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:18:19] Production.INFO: count ==4684 [2025-03-28 12:18:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:18:05 - End Time 2025-03-28 12:18:05 [2025-03-28 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781456', 'tblTempUsageDetail_20' ) start [2025-03-28 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781456', 'tblTempUsageDetail_20' ) end [2025-03-28 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781456', 'tblTempVendorCDR_20' ) start [2025-03-28 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781456', 'tblTempVendorCDR_20' ) end [2025-03-28 12:18:21] Production.INFO: ProcessCDR(1,14781456,1,1,2) [2025-03-28 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781456', 'tblTempUsageDetail_20' ) start [2025-03-28 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781456', 'tblTempUsageDetail_20' ) end [2025-03-28 12:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:18:26] Production.INFO: ==27240== Releasing lock... [2025-03-28 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:18:26] Production.INFO: 63 MB #Memory Used# [2025-03-28 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:19:05 [end_date_ymd] => 2025-03-28 12:19:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:19:05' and `end` < '2025-03-28 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-28 12:19:19] Production.INFO: count ==4693 [2025-03-28 12:19:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:19:05 - End Time 2025-03-28 12:19:05 [2025-03-28 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781461', 'tblTempUsageDetail_20' ) start [2025-03-28 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781461', 'tblTempUsageDetail_20' ) end [2025-03-28 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781461', 'tblTempVendorCDR_20' ) start [2025-03-28 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781461', 'tblTempVendorCDR_20' ) end [2025-03-28 12:19:21] Production.INFO: ProcessCDR(1,14781461,1,1,2) [2025-03-28 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781461', 'tblTempUsageDetail_20' ) start [2025-03-28 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781461', 'tblTempUsageDetail_20' ) end [2025-03-28 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:19:26] Production.INFO: ==27326== Releasing lock... [2025-03-28 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:19:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-28 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:20:06 [end_date_ymd] => 2025-03-28 12:20:06 [RateCDR] => 1 ) [2025-03-28 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-28 09:20:06' and `end` < '2025-03-28 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-28 12:20:20] Production.INFO: count ==4692 [2025-03-28 12:20:22] Production.ERROR: pbx CDR StartTime 2025-03-28 09:20:06 - End Time 2025-03-28 12:20:06 [2025-03-28 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781467', 'tblTempUsageDetail_20' ) start [2025-03-28 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781467', 'tblTempUsageDetail_20' ) end [2025-03-28 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781467', 'tblTempVendorCDR_20' ) start [2025-03-28 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781467', 'tblTempVendorCDR_20' ) end [2025-03-28 12:20:22] Production.INFO: ProcessCDR(1,14781467,1,1,2) [2025-03-28 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781467', 'tblTempUsageDetail_20' ) start [2025-03-28 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781467', 'tblTempUsageDetail_20' ) end [2025-03-28 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:20:27] Production.INFO: ==27422== Releasing lock... [2025-03-28 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:20:27] Production.INFO: 63 MB #Memory Used# [2025-03-28 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:21:06 [end_date_ymd] => 2025-03-28 12:21:06 [RateCDR] => 1 ) [2025-03-28 12:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:21:06' and `end` < '2025-03-28 12:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:21:19] Production.INFO: count ==4736 [2025-03-28 12:21:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:21:06 - End Time 2025-03-28 12:21:06 [2025-03-28 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781472', 'tblTempUsageDetail_20' ) start [2025-03-28 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781472', 'tblTempUsageDetail_20' ) end [2025-03-28 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781472', 'tblTempVendorCDR_20' ) start [2025-03-28 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781472', 'tblTempVendorCDR_20' ) end [2025-03-28 12:21:21] Production.INFO: ProcessCDR(1,14781472,1,1,2) [2025-03-28 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781472', 'tblTempUsageDetail_20' ) start [2025-03-28 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781472', 'tblTempUsageDetail_20' ) end [2025-03-28 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:21:26] Production.INFO: ==27512== Releasing lock... [2025-03-28 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:21:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:22:06 [end_date_ymd] => 2025-03-28 12:22:06 [RateCDR] => 1 ) [2025-03-28 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:22:06' and `end` < '2025-03-28 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:22:19] Production.INFO: count ==4738 [2025-03-28 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:22:06 - End Time 2025-03-28 12:22:06 [2025-03-28 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781477', 'tblTempUsageDetail_20' ) start [2025-03-28 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781477', 'tblTempUsageDetail_20' ) end [2025-03-28 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781477', 'tblTempVendorCDR_20' ) start [2025-03-28 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781477', 'tblTempVendorCDR_20' ) end [2025-03-28 12:22:21] Production.INFO: ProcessCDR(1,14781477,1,1,2) [2025-03-28 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781477', 'tblTempUsageDetail_20' ) start [2025-03-28 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781477', 'tblTempUsageDetail_20' ) end [2025-03-28 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:22:27] Production.INFO: ==27605== Releasing lock... [2025-03-28 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:22:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:23:05 [end_date_ymd] => 2025-03-28 12:23:05 [RateCDR] => 1 ) [2025-03-28 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:23:05' and `end` < '2025-03-28 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:23:19] Production.INFO: count ==4733 [2025-03-28 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:23:05 - End Time 2025-03-28 12:23:05 [2025-03-28 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781482', 'tblTempUsageDetail_20' ) start [2025-03-28 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781482', 'tblTempUsageDetail_20' ) end [2025-03-28 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781482', 'tblTempVendorCDR_20' ) start [2025-03-28 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781482', 'tblTempVendorCDR_20' ) end [2025-03-28 12:23:21] Production.INFO: ProcessCDR(1,14781482,1,1,2) [2025-03-28 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781482', 'tblTempUsageDetail_20' ) start [2025-03-28 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781482', 'tblTempUsageDetail_20' ) end [2025-03-28 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:23:26] Production.INFO: ==27701== Releasing lock... [2025-03-28 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:23:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:24:05 [end_date_ymd] => 2025-03-28 12:24:05 [RateCDR] => 1 ) [2025-03-28 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:24:05' and `end` < '2025-03-28 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:24:19] Production.INFO: count ==4729 [2025-03-28 12:24:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:24:05 - End Time 2025-03-28 12:24:05 [2025-03-28 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781487', 'tblTempUsageDetail_20' ) start [2025-03-28 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781487', 'tblTempUsageDetail_20' ) end [2025-03-28 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781487', 'tblTempVendorCDR_20' ) start [2025-03-28 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781487', 'tblTempVendorCDR_20' ) end [2025-03-28 12:24:21] Production.INFO: ProcessCDR(1,14781487,1,1,2) [2025-03-28 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781487', 'tblTempUsageDetail_20' ) start [2025-03-28 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781487', 'tblTempUsageDetail_20' ) end [2025-03-28 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:24:26] Production.INFO: ==27786== Releasing lock... [2025-03-28 12:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:24:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:25:06 [end_date_ymd] => 2025-03-28 12:25:06 [RateCDR] => 1 ) [2025-03-28 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:25:06' and `end` < '2025-03-28 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:25:19] Production.INFO: count ==4741 [2025-03-28 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:25:06 - End Time 2025-03-28 12:25:06 [2025-03-28 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781492', 'tblTempUsageDetail_20' ) start [2025-03-28 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781492', 'tblTempUsageDetail_20' ) end [2025-03-28 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781492', 'tblTempVendorCDR_20' ) start [2025-03-28 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781492', 'tblTempVendorCDR_20' ) end [2025-03-28 12:25:22] Production.INFO: ProcessCDR(1,14781492,1,1,2) [2025-03-28 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781492', 'tblTempUsageDetail_20' ) start [2025-03-28 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781492', 'tblTempUsageDetail_20' ) end [2025-03-28 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:25:27] Production.INFO: ==27888== Releasing lock... [2025-03-28 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:25:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:26:05 [end_date_ymd] => 2025-03-28 12:26:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:26:05' and `end` < '2025-03-28 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-28 12:26:18] Production.INFO: count ==4744 [2025-03-28 12:26:20] Production.ERROR: pbx CDR StartTime 2025-03-28 09:26:05 - End Time 2025-03-28 12:26:05 [2025-03-28 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781497', 'tblTempUsageDetail_20' ) start [2025-03-28 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781497', 'tblTempUsageDetail_20' ) end [2025-03-28 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781497', 'tblTempVendorCDR_20' ) start [2025-03-28 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781497', 'tblTempVendorCDR_20' ) end [2025-03-28 12:26:21] Production.INFO: ProcessCDR(1,14781497,1,1,2) [2025-03-28 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781497', 'tblTempUsageDetail_20' ) start [2025-03-28 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781497', 'tblTempUsageDetail_20' ) end [2025-03-28 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:26:26] Production.INFO: ==27986== Releasing lock... [2025-03-28 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:26:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:27:05 [end_date_ymd] => 2025-03-28 12:27:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:27:05' and `end` < '2025-03-28 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-28 12:27:18] Production.INFO: count ==4749 [2025-03-28 12:27:20] Production.ERROR: pbx CDR StartTime 2025-03-28 09:27:05 - End Time 2025-03-28 12:27:05 [2025-03-28 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781502', 'tblTempUsageDetail_20' ) start [2025-03-28 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781502', 'tblTempUsageDetail_20' ) end [2025-03-28 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781502', 'tblTempVendorCDR_20' ) start [2025-03-28 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781502', 'tblTempVendorCDR_20' ) end [2025-03-28 12:27:21] Production.INFO: ProcessCDR(1,14781502,1,1,2) [2025-03-28 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781502', 'tblTempUsageDetail_20' ) start [2025-03-28 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781502', 'tblTempUsageDetail_20' ) end [2025-03-28 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:27:26] Production.INFO: ==28080== Releasing lock... [2025-03-28 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:27:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:28:05 [end_date_ymd] => 2025-03-28 12:28:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:28:05' and `end` < '2025-03-28 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-28 12:28:18] Production.INFO: count ==4737 [2025-03-28 12:28:20] Production.ERROR: pbx CDR StartTime 2025-03-28 09:28:05 - End Time 2025-03-28 12:28:05 [2025-03-28 12:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781507', 'tblTempUsageDetail_20' ) start [2025-03-28 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781507', 'tblTempUsageDetail_20' ) end [2025-03-28 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781507', 'tblTempVendorCDR_20' ) start [2025-03-28 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781507', 'tblTempVendorCDR_20' ) end [2025-03-28 12:28:20] Production.INFO: ProcessCDR(1,14781507,1,1,2) [2025-03-28 12:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781507', 'tblTempUsageDetail_20' ) start [2025-03-28 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781507', 'tblTempUsageDetail_20' ) end [2025-03-28 12:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:28:25] Production.INFO: ==28178== Releasing lock... [2025-03-28 12:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:28:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:29:05 [end_date_ymd] => 2025-03-28 12:29:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:29:05' and `end` < '2025-03-28 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-28 12:29:19] Production.INFO: count ==4733 [2025-03-28 12:29:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:29:05 - End Time 2025-03-28 12:29:05 [2025-03-28 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781512', 'tblTempUsageDetail_20' ) start [2025-03-28 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781512', 'tblTempUsageDetail_20' ) end [2025-03-28 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781512', 'tblTempVendorCDR_20' ) start [2025-03-28 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781512', 'tblTempVendorCDR_20' ) end [2025-03-28 12:29:21] Production.INFO: ProcessCDR(1,14781512,1,1,2) [2025-03-28 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781512', 'tblTempUsageDetail_20' ) start [2025-03-28 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781512', 'tblTempUsageDetail_20' ) end [2025-03-28 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:29:26] Production.INFO: ==28280== Releasing lock... [2025-03-28 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:29:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:30:06 [end_date_ymd] => 2025-03-28 12:30:06 [RateCDR] => 1 ) [2025-03-28 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-28 09:30:06' and `end` < '2025-03-28 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-28 12:30:20] Production.INFO: count ==4740 [2025-03-28 12:30:22] Production.ERROR: pbx CDR StartTime 2025-03-28 09:30:06 - End Time 2025-03-28 12:30:06 [2025-03-28 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781518', 'tblTempUsageDetail_20' ) start [2025-03-28 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781518', 'tblTempUsageDetail_20' ) end [2025-03-28 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781518', 'tblTempVendorCDR_20' ) start [2025-03-28 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781518', 'tblTempVendorCDR_20' ) end [2025-03-28 12:30:22] Production.INFO: ProcessCDR(1,14781518,1,1,2) [2025-03-28 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781518', 'tblTempUsageDetail_20' ) start [2025-03-28 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781518', 'tblTempUsageDetail_20' ) end [2025-03-28 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:30:27] Production.INFO: ==28378== Releasing lock... [2025-03-28 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:30:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:31:05 [end_date_ymd] => 2025-03-28 12:31:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:31:05' and `end` < '2025-03-28 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:31:19] Production.INFO: count ==4764 [2025-03-28 12:31:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:31:05 - End Time 2025-03-28 12:31:05 [2025-03-28 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781523', 'tblTempUsageDetail_20' ) start [2025-03-28 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781523', 'tblTempUsageDetail_20' ) end [2025-03-28 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781523', 'tblTempVendorCDR_20' ) start [2025-03-28 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781523', 'tblTempVendorCDR_20' ) end [2025-03-28 12:31:21] Production.INFO: ProcessCDR(1,14781523,1,1,2) [2025-03-28 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781523', 'tblTempUsageDetail_20' ) start [2025-03-28 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781523', 'tblTempUsageDetail_20' ) end [2025-03-28 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:31:27] Production.INFO: ==28469== Releasing lock... [2025-03-28 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:31:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:32:05 [end_date_ymd] => 2025-03-28 12:32:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:32:05' and `end` < '2025-03-28 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-28 12:32:19] Production.INFO: count ==4788 [2025-03-28 12:32:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:32:05 - End Time 2025-03-28 12:32:05 [2025-03-28 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781528', 'tblTempUsageDetail_20' ) start [2025-03-28 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781528', 'tblTempUsageDetail_20' ) end [2025-03-28 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781528', 'tblTempVendorCDR_20' ) start [2025-03-28 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781528', 'tblTempVendorCDR_20' ) end [2025-03-28 12:32:21] Production.INFO: ProcessCDR(1,14781528,1,1,2) [2025-03-28 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781528', 'tblTempUsageDetail_20' ) start [2025-03-28 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781528', 'tblTempUsageDetail_20' ) end [2025-03-28 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:32:26] Production.INFO: ==28565== Releasing lock... [2025-03-28 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:32:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:33:05 [end_date_ymd] => 2025-03-28 12:33:05 [RateCDR] => 1 ) [2025-03-28 12: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-28 09:33:05' and `end` < '2025-03-28 12: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-28 12:33:19] Production.INFO: count ==4794 [2025-03-28 12:33:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:33:05 - End Time 2025-03-28 12:33:05 [2025-03-28 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781533', 'tblTempUsageDetail_20' ) start [2025-03-28 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781533', 'tblTempUsageDetail_20' ) end [2025-03-28 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781533', 'tblTempVendorCDR_20' ) start [2025-03-28 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781533', 'tblTempVendorCDR_20' ) end [2025-03-28 12:33:21] Production.INFO: ProcessCDR(1,14781533,1,1,2) [2025-03-28 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781533', 'tblTempUsageDetail_20' ) start [2025-03-28 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781533', 'tblTempUsageDetail_20' ) end [2025-03-28 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:33:26] Production.INFO: ==28693== Releasing lock... [2025-03-28 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:33:26] Production.INFO: 64 MB #Memory Used# [2025-03-28 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:34:05 [end_date_ymd] => 2025-03-28 12:34:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:34:05' and `end` < '2025-03-28 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-28 12:34:19] Production.INFO: count ==4776 [2025-03-28 12:34:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:34:05 - End Time 2025-03-28 12:34:05 [2025-03-28 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781538', 'tblTempUsageDetail_20' ) start [2025-03-28 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781538', 'tblTempUsageDetail_20' ) end [2025-03-28 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781538', 'tblTempVendorCDR_20' ) start [2025-03-28 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781538', 'tblTempVendorCDR_20' ) end [2025-03-28 12:34:21] Production.INFO: ProcessCDR(1,14781538,1,1,2) [2025-03-28 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781538', 'tblTempUsageDetail_20' ) start [2025-03-28 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781538', 'tblTempUsageDetail_20' ) end [2025-03-28 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:34:26] Production.INFO: ==28788== Releasing lock... [2025-03-28 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:34:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:35:05 [end_date_ymd] => 2025-03-28 12:35:05 [RateCDR] => 1 ) [2025-03-28 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:35:05' and `end` < '2025-03-28 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:35:19] Production.INFO: count ==4789 [2025-03-28 12:35:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:35:05 - End Time 2025-03-28 12:35:05 [2025-03-28 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781543', 'tblTempUsageDetail_20' ) start [2025-03-28 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781543', 'tblTempUsageDetail_20' ) end [2025-03-28 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781543', 'tblTempVendorCDR_20' ) start [2025-03-28 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781543', 'tblTempVendorCDR_20' ) end [2025-03-28 12:35:21] Production.INFO: ProcessCDR(1,14781543,1,1,2) [2025-03-28 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781543', 'tblTempUsageDetail_20' ) start [2025-03-28 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781543', 'tblTempUsageDetail_20' ) end [2025-03-28 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:35:26] Production.INFO: ==28887== Releasing lock... [2025-03-28 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:35:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:36:05 [end_date_ymd] => 2025-03-28 12:36:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:36:05' and `end` < '2025-03-28 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-28 12:36:19] Production.INFO: count ==4820 [2025-03-28 12:36:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:36:05 - End Time 2025-03-28 12:36:05 [2025-03-28 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781548', 'tblTempUsageDetail_20' ) start [2025-03-28 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781548', 'tblTempUsageDetail_20' ) end [2025-03-28 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781548', 'tblTempVendorCDR_20' ) start [2025-03-28 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781548', 'tblTempVendorCDR_20' ) end [2025-03-28 12:36:21] Production.INFO: ProcessCDR(1,14781548,1,1,2) [2025-03-28 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781548', 'tblTempUsageDetail_20' ) start [2025-03-28 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781548', 'tblTempUsageDetail_20' ) end [2025-03-28 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:36:26] Production.INFO: ==28971== Releasing lock... [2025-03-28 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:36:26] Production.INFO: 64 MB #Memory Used# [2025-03-28 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:37:05 [end_date_ymd] => 2025-03-28 12:37:05 [RateCDR] => 1 ) [2025-03-28 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:37:05' and `end` < '2025-03-28 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:37:19] Production.INFO: count ==4830 [2025-03-28 12:37:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:37:05 - End Time 2025-03-28 12:37:05 [2025-03-28 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781553', 'tblTempUsageDetail_20' ) start [2025-03-28 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781553', 'tblTempUsageDetail_20' ) end [2025-03-28 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781553', 'tblTempVendorCDR_20' ) start [2025-03-28 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781553', 'tblTempVendorCDR_20' ) end [2025-03-28 12:37:21] Production.INFO: ProcessCDR(1,14781553,1,1,2) [2025-03-28 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781553', 'tblTempUsageDetail_20' ) start [2025-03-28 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781553', 'tblTempUsageDetail_20' ) end [2025-03-28 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:37:27] Production.INFO: ==29060== Releasing lock... [2025-03-28 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:37:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-28 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:38:06 [end_date_ymd] => 2025-03-28 12:38:06 [RateCDR] => 1 ) [2025-03-28 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:38:06' and `end` < '2025-03-28 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:38:19] Production.INFO: count ==4830 [2025-03-28 12:38:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:38:06 - End Time 2025-03-28 12:38:06 [2025-03-28 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781558', 'tblTempUsageDetail_20' ) start [2025-03-28 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781558', 'tblTempUsageDetail_20' ) end [2025-03-28 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781558', 'tblTempVendorCDR_20' ) start [2025-03-28 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781558', 'tblTempVendorCDR_20' ) end [2025-03-28 12:38:22] Production.INFO: ProcessCDR(1,14781558,1,1,2) [2025-03-28 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781558', 'tblTempUsageDetail_20' ) start [2025-03-28 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781558', 'tblTempUsageDetail_20' ) end [2025-03-28 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:38:27] Production.INFO: ==29152== Releasing lock... [2025-03-28 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:38:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-28 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:39:06 [end_date_ymd] => 2025-03-28 12:39:06 [RateCDR] => 1 ) [2025-03-28 12:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:39:06' and `end` < '2025-03-28 12:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:39:19] Production.INFO: count ==4838 [2025-03-28 12:39:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:39:06 - End Time 2025-03-28 12:39:06 [2025-03-28 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781563', 'tblTempUsageDetail_20' ) start [2025-03-28 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781563', 'tblTempUsageDetail_20' ) end [2025-03-28 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781563', 'tblTempVendorCDR_20' ) start [2025-03-28 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781563', 'tblTempVendorCDR_20' ) end [2025-03-28 12:39:21] Production.INFO: ProcessCDR(1,14781563,1,1,2) [2025-03-28 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781563', 'tblTempUsageDetail_20' ) start [2025-03-28 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781563', 'tblTempUsageDetail_20' ) end [2025-03-28 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:39:27] Production.INFO: ==29239== Releasing lock... [2025-03-28 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:39:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-28 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:40:06 [end_date_ymd] => 2025-03-28 12:40:06 [RateCDR] => 1 ) [2025-03-28 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-28 09:40:06' and `end` < '2025-03-28 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-28 12:40:19] Production.INFO: count ==4850 [2025-03-28 12:40:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:40:06 - End Time 2025-03-28 12:40:06 [2025-03-28 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781569', 'tblTempUsageDetail_20' ) start [2025-03-28 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781569', 'tblTempUsageDetail_20' ) end [2025-03-28 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781569', 'tblTempVendorCDR_20' ) start [2025-03-28 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781569', 'tblTempVendorCDR_20' ) end [2025-03-28 12:40:22] Production.INFO: ProcessCDR(1,14781569,1,1,2) [2025-03-28 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781569', 'tblTempUsageDetail_20' ) start [2025-03-28 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781569', 'tblTempUsageDetail_20' ) end [2025-03-28 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:40:28] Production.INFO: ==29328== Releasing lock... [2025-03-28 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:40:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-28 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:41:05 [end_date_ymd] => 2025-03-28 12:41:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:41:05' and `end` < '2025-03-28 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-28 12:41:19] Production.INFO: count ==4905 [2025-03-28 12:41:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:41:05 - End Time 2025-03-28 12:41:05 [2025-03-28 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781574', 'tblTempUsageDetail_20' ) start [2025-03-28 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781574', 'tblTempUsageDetail_20' ) end [2025-03-28 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781574', 'tblTempVendorCDR_20' ) start [2025-03-28 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781574', 'tblTempVendorCDR_20' ) end [2025-03-28 12:41:21] Production.INFO: ProcessCDR(1,14781574,1,1,2) [2025-03-28 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781574', 'tblTempUsageDetail_20' ) start [2025-03-28 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781574', 'tblTempUsageDetail_20' ) end [2025-03-28 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:41:26] Production.INFO: ==29417== Releasing lock... [2025-03-28 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:41:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-28 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:42:05 [end_date_ymd] => 2025-03-28 12:42:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:42:05' and `end` < '2025-03-28 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-28 12:42:18] Production.INFO: count ==4904 [2025-03-28 12:42:20] Production.ERROR: pbx CDR StartTime 2025-03-28 09:42:05 - End Time 2025-03-28 12:42:05 [2025-03-28 12:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781579', 'tblTempUsageDetail_20' ) start [2025-03-28 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781579', 'tblTempUsageDetail_20' ) end [2025-03-28 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781579', 'tblTempVendorCDR_20' ) start [2025-03-28 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781579', 'tblTempVendorCDR_20' ) end [2025-03-28 12:42:20] Production.INFO: ProcessCDR(1,14781579,1,1,2) [2025-03-28 12:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781579', 'tblTempUsageDetail_20' ) start [2025-03-28 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781579', 'tblTempUsageDetail_20' ) end [2025-03-28 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:42:26] Production.INFO: ==29506== Releasing lock... [2025-03-28 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:42:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-28 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:43:05 [end_date_ymd] => 2025-03-28 12:43:05 [RateCDR] => 1 ) [2025-03-28 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:43:05' and `end` < '2025-03-28 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:43:19] Production.INFO: count ==4900 [2025-03-28 12:43:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:43:05 - End Time 2025-03-28 12:43:05 [2025-03-28 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781584', 'tblTempUsageDetail_20' ) start [2025-03-28 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781584', 'tblTempUsageDetail_20' ) end [2025-03-28 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781584', 'tblTempVendorCDR_20' ) start [2025-03-28 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781584', 'tblTempVendorCDR_20' ) end [2025-03-28 12:43:21] Production.INFO: ProcessCDR(1,14781584,1,1,2) [2025-03-28 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781584', 'tblTempUsageDetail_20' ) start [2025-03-28 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781584', 'tblTempUsageDetail_20' ) end [2025-03-28 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:43:26] Production.INFO: ==29589== Releasing lock... [2025-03-28 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:43:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-28 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:44:05 [end_date_ymd] => 2025-03-28 12:44:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:44:05' and `end` < '2025-03-28 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-28 12:44:18] Production.INFO: count ==4910 [2025-03-28 12:44:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:44:05 - End Time 2025-03-28 12:44:05 [2025-03-28 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781589', 'tblTempUsageDetail_20' ) start [2025-03-28 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781589', 'tblTempUsageDetail_20' ) end [2025-03-28 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781589', 'tblTempVendorCDR_20' ) start [2025-03-28 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781589', 'tblTempVendorCDR_20' ) end [2025-03-28 12:44:21] Production.INFO: ProcessCDR(1,14781589,1,1,2) [2025-03-28 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781589', 'tblTempUsageDetail_20' ) start [2025-03-28 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781589', 'tblTempUsageDetail_20' ) end [2025-03-28 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:44:26] Production.INFO: ==29678== Releasing lock... [2025-03-28 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:44:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-28 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:45:05 [end_date_ymd] => 2025-03-28 12:45:05 [RateCDR] => 1 ) [2025-03-28 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:45:05' and `end` < '2025-03-28 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:45:18] Production.INFO: count ==4910 [2025-03-28 12:45:20] Production.ERROR: pbx CDR StartTime 2025-03-28 09:45:05 - End Time 2025-03-28 12:45:05 [2025-03-28 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781594', 'tblTempUsageDetail_20' ) start [2025-03-28 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781594', 'tblTempUsageDetail_20' ) end [2025-03-28 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781594', 'tblTempVendorCDR_20' ) start [2025-03-28 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781594', 'tblTempVendorCDR_20' ) end [2025-03-28 12:45:21] Production.INFO: ProcessCDR(1,14781594,1,1,2) [2025-03-28 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781594', 'tblTempUsageDetail_20' ) start [2025-03-28 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781594', 'tblTempUsageDetail_20' ) end [2025-03-28 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:45:26] Production.INFO: ==29762== Releasing lock... [2025-03-28 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:45:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-28 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:46:06 [end_date_ymd] => 2025-03-28 12:46:06 [RateCDR] => 1 ) [2025-03-28 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:46:06' and `end` < '2025-03-28 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:46:19] Production.INFO: count ==4887 [2025-03-28 12:46:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:46:06 - End Time 2025-03-28 12:46:06 [2025-03-28 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781599', 'tblTempUsageDetail_20' ) start [2025-03-28 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781599', 'tblTempUsageDetail_20' ) end [2025-03-28 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781599', 'tblTempVendorCDR_20' ) start [2025-03-28 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781599', 'tblTempVendorCDR_20' ) end [2025-03-28 12:46:21] Production.INFO: ProcessCDR(1,14781599,1,1,2) [2025-03-28 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781599', 'tblTempUsageDetail_20' ) start [2025-03-28 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781599', 'tblTempUsageDetail_20' ) end [2025-03-28 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:46:27] Production.INFO: ==29844== Releasing lock... [2025-03-28 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:46:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-28 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:47:05 [end_date_ymd] => 2025-03-28 12:47:05 [RateCDR] => 1 ) [2025-03-28 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:47:05' and `end` < '2025-03-28 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:47:19] Production.INFO: count ==4872 [2025-03-28 12:47:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:47:05 - End Time 2025-03-28 12:47:05 [2025-03-28 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781604', 'tblTempUsageDetail_20' ) start [2025-03-28 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781604', 'tblTempUsageDetail_20' ) end [2025-03-28 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781604', 'tblTempVendorCDR_20' ) start [2025-03-28 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781604', 'tblTempVendorCDR_20' ) end [2025-03-28 12:47:21] Production.INFO: ProcessCDR(1,14781604,1,1,2) [2025-03-28 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781604', 'tblTempUsageDetail_20' ) start [2025-03-28 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781604', 'tblTempUsageDetail_20' ) end [2025-03-28 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:47:26] Production.INFO: ==29930== Releasing lock... [2025-03-28 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:47:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-28 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:48:05 [end_date_ymd] => 2025-03-28 12:48:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:48:05' and `end` < '2025-03-28 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:48:19] Production.INFO: count ==4871 [2025-03-28 12:48:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:48:05 - End Time 2025-03-28 12:48:05 [2025-03-28 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781609', 'tblTempUsageDetail_20' ) start [2025-03-28 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781609', 'tblTempUsageDetail_20' ) end [2025-03-28 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781609', 'tblTempVendorCDR_20' ) start [2025-03-28 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781609', 'tblTempVendorCDR_20' ) end [2025-03-28 12:48:21] Production.INFO: ProcessCDR(1,14781609,1,1,2) [2025-03-28 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781609', 'tblTempUsageDetail_20' ) start [2025-03-28 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781609', 'tblTempUsageDetail_20' ) end [2025-03-28 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:48:27] Production.INFO: ==30018== Releasing lock... [2025-03-28 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:48:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-28 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:49:05 [end_date_ymd] => 2025-03-28 12:49:05 [RateCDR] => 1 ) [2025-03-28 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-28 09:49:05' and `end` < '2025-03-28 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-28 12:49:19] Production.INFO: count ==4878 [2025-03-28 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:49:05 - End Time 2025-03-28 12:49:05 [2025-03-28 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781614', 'tblTempUsageDetail_20' ) start [2025-03-28 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781614', 'tblTempUsageDetail_20' ) end [2025-03-28 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781614', 'tblTempVendorCDR_20' ) start [2025-03-28 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781614', 'tblTempVendorCDR_20' ) end [2025-03-28 12:49:21] Production.INFO: ProcessCDR(1,14781614,1,1,2) [2025-03-28 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781614', 'tblTempUsageDetail_20' ) start [2025-03-28 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781614', 'tblTempUsageDetail_20' ) end [2025-03-28 12:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:49:27] Production.INFO: ==30146== Releasing lock... [2025-03-28 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:49:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-28 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:50:07 [end_date_ymd] => 2025-03-28 12:50:07 [RateCDR] => 1 ) [2025-03-28 12:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:50:07' and `end` < '2025-03-28 12:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:50:20] Production.INFO: count ==4877 [2025-03-28 12:50:23] Production.ERROR: pbx CDR StartTime 2025-03-28 09:50:07 - End Time 2025-03-28 12:50:07 [2025-03-28 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781620', 'tblTempUsageDetail_20' ) start [2025-03-28 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781620', 'tblTempUsageDetail_20' ) end [2025-03-28 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781620', 'tblTempVendorCDR_20' ) start [2025-03-28 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781620', 'tblTempVendorCDR_20' ) end [2025-03-28 12:50:23] Production.INFO: ProcessCDR(1,14781620,1,1,2) [2025-03-28 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781620', 'tblTempUsageDetail_20' ) start [2025-03-28 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781620', 'tblTempUsageDetail_20' ) end [2025-03-28 12:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:50:29] Production.INFO: ==30226== Releasing lock... [2025-03-28 12:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:50:29] Production.INFO: 64.5 MB #Memory Used# [2025-03-28 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:51:05 [end_date_ymd] => 2025-03-28 12:51:05 [RateCDR] => 1 ) [2025-03-28 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:51:05' and `end` < '2025-03-28 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:51:19] Production.INFO: count ==4831 [2025-03-28 12:51:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:51:05 - End Time 2025-03-28 12:51:05 [2025-03-28 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781625', 'tblTempUsageDetail_20' ) start [2025-03-28 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781625', 'tblTempUsageDetail_20' ) end [2025-03-28 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781625', 'tblTempVendorCDR_20' ) start [2025-03-28 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781625', 'tblTempVendorCDR_20' ) end [2025-03-28 12:51:21] Production.INFO: ProcessCDR(1,14781625,1,1,2) [2025-03-28 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781625', 'tblTempUsageDetail_20' ) start [2025-03-28 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781625', 'tblTempUsageDetail_20' ) end [2025-03-28 12:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:51:25] Production.INFO: ==30310== Releasing lock... [2025-03-28 12:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:51:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-28 12:52:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:52:07 [end_date_ymd] => 2025-03-28 12:52:07 [RateCDR] => 1 ) [2025-03-28 12:52: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-28 09:52:07' and `end` < '2025-03-28 12:52: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-28 12:52:20] Production.INFO: count ==4814 [2025-03-28 12:52:22] Production.ERROR: pbx CDR StartTime 2025-03-28 09:52:07 - End Time 2025-03-28 12:52:07 [2025-03-28 12:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781630', 'tblTempUsageDetail_20' ) start [2025-03-28 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781630', 'tblTempUsageDetail_20' ) end [2025-03-28 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781630', 'tblTempVendorCDR_20' ) start [2025-03-28 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781630', 'tblTempVendorCDR_20' ) end [2025-03-28 12:52:22] Production.INFO: ProcessCDR(1,14781630,1,1,2) [2025-03-28 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781630', 'tblTempUsageDetail_20' ) start [2025-03-28 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781630', 'tblTempUsageDetail_20' ) end [2025-03-28 12:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:52:28] Production.INFO: ==30391== Releasing lock... [2025-03-28 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:52:28] Production.INFO: 64 MB #Memory Used# [2025-03-28 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:53:05 [end_date_ymd] => 2025-03-28 12:53:05 [RateCDR] => 1 ) [2025-03-28 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:53:05' and `end` < '2025-03-28 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:53:18] Production.INFO: count ==4771 [2025-03-28 12:53:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:53:05 - End Time 2025-03-28 12:53:05 [2025-03-28 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781635', 'tblTempUsageDetail_20' ) start [2025-03-28 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781635', 'tblTempUsageDetail_20' ) end [2025-03-28 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781635', 'tblTempVendorCDR_20' ) start [2025-03-28 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781635', 'tblTempVendorCDR_20' ) end [2025-03-28 12:53:21] Production.INFO: ProcessCDR(1,14781635,1,1,2) [2025-03-28 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781635', 'tblTempUsageDetail_20' ) start [2025-03-28 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781635', 'tblTempUsageDetail_20' ) end [2025-03-28 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:53:26] Production.INFO: ==30470== Releasing lock... [2025-03-28 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:53:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:54:06 [end_date_ymd] => 2025-03-28 12:54:06 [RateCDR] => 1 ) [2025-03-28 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-28 09:54:06' and `end` < '2025-03-28 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-28 12:54:19] Production.INFO: count ==4757 [2025-03-28 12:54:22] Production.ERROR: pbx CDR StartTime 2025-03-28 09:54:06 - End Time 2025-03-28 12:54:06 [2025-03-28 12:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781640', 'tblTempUsageDetail_20' ) start [2025-03-28 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781640', 'tblTempUsageDetail_20' ) end [2025-03-28 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781640', 'tblTempVendorCDR_20' ) start [2025-03-28 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781640', 'tblTempVendorCDR_20' ) end [2025-03-28 12:54:22] Production.INFO: ProcessCDR(1,14781640,1,1,2) [2025-03-28 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781640', 'tblTempUsageDetail_20' ) start [2025-03-28 12:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781640', 'tblTempUsageDetail_20' ) end [2025-03-28 12:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:54:27] Production.INFO: ==30561== Releasing lock... [2025-03-28 12:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:54:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:55:05 [end_date_ymd] => 2025-03-28 12:55:05 [RateCDR] => 1 ) [2025-03-28 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:55:05' and `end` < '2025-03-28 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:55:18] Production.INFO: count ==4754 [2025-03-28 12:55:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:55:05 - End Time 2025-03-28 12:55:05 [2025-03-28 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781645', 'tblTempUsageDetail_20' ) start [2025-03-28 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781645', 'tblTempUsageDetail_20' ) end [2025-03-28 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781645', 'tblTempVendorCDR_20' ) start [2025-03-28 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781645', 'tblTempVendorCDR_20' ) end [2025-03-28 12:55:21] Production.INFO: ProcessCDR(1,14781645,1,1,2) [2025-03-28 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781645', 'tblTempUsageDetail_20' ) start [2025-03-28 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781645', 'tblTempUsageDetail_20' ) end [2025-03-28 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:55:27] Production.INFO: ==30641== Releasing lock... [2025-03-28 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:55:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:56:06 [end_date_ymd] => 2025-03-28 12:56:06 [RateCDR] => 1 ) [2025-03-28 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:56:06' and `end` < '2025-03-28 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:56:20] Production.INFO: count ==4753 [2025-03-28 12:56:22] Production.ERROR: pbx CDR StartTime 2025-03-28 09:56:06 - End Time 2025-03-28 12:56:06 [2025-03-28 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781650', 'tblTempUsageDetail_20' ) start [2025-03-28 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781650', 'tblTempUsageDetail_20' ) end [2025-03-28 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781650', 'tblTempVendorCDR_20' ) start [2025-03-28 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781650', 'tblTempVendorCDR_20' ) end [2025-03-28 12:56:22] Production.INFO: ProcessCDR(1,14781650,1,1,2) [2025-03-28 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781650', 'tblTempUsageDetail_20' ) start [2025-03-28 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781650', 'tblTempUsageDetail_20' ) end [2025-03-28 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:56:28] Production.INFO: ==30716== Releasing lock... [2025-03-28 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:56:28] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:57:05 [end_date_ymd] => 2025-03-28 12:57:05 [RateCDR] => 1 ) [2025-03-28 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:57:05' and `end` < '2025-03-28 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:57:19] Production.INFO: count ==4750 [2025-03-28 12:57:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:57:05 - End Time 2025-03-28 12:57:05 [2025-03-28 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781655', 'tblTempUsageDetail_20' ) start [2025-03-28 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781655', 'tblTempUsageDetail_20' ) end [2025-03-28 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781655', 'tblTempVendorCDR_20' ) start [2025-03-28 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781655', 'tblTempVendorCDR_20' ) end [2025-03-28 12:57:22] Production.INFO: ProcessCDR(1,14781655,1,1,2) [2025-03-28 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781655', 'tblTempUsageDetail_20' ) start [2025-03-28 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781655', 'tblTempUsageDetail_20' ) end [2025-03-28 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:57:26] Production.INFO: ==30795== Releasing lock... [2025-03-28 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:57:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:58:06 [end_date_ymd] => 2025-03-28 12:58:06 [RateCDR] => 1 ) [2025-03-28 12:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:58:06' and `end` < '2025-03-28 12:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:58:19] Production.INFO: count ==4763 [2025-03-28 12:58:22] Production.ERROR: pbx CDR StartTime 2025-03-28 09:58:06 - End Time 2025-03-28 12:58:06 [2025-03-28 12:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781660', 'tblTempUsageDetail_20' ) start [2025-03-28 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781660', 'tblTempUsageDetail_20' ) end [2025-03-28 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781660', 'tblTempVendorCDR_20' ) start [2025-03-28 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781660', 'tblTempVendorCDR_20' ) end [2025-03-28 12:58:22] Production.INFO: ProcessCDR(1,14781660,1,1,2) [2025-03-28 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781660', 'tblTempUsageDetail_20' ) start [2025-03-28 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781660', 'tblTempUsageDetail_20' ) end [2025-03-28 12:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:58:28] Production.INFO: ==30882== Releasing lock... [2025-03-28 12:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:58:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 09:59:05 [end_date_ymd] => 2025-03-28 12:59:05 [RateCDR] => 1 ) [2025-03-28 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 09:59:05' and `end` < '2025-03-28 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 12:59:19] Production.INFO: count ==4751 [2025-03-28 12:59:21] Production.ERROR: pbx CDR StartTime 2025-03-28 09:59:05 - End Time 2025-03-28 12:59:05 [2025-03-28 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781665', 'tblTempUsageDetail_20' ) start [2025-03-28 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781665', 'tblTempUsageDetail_20' ) end [2025-03-28 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781665', 'tblTempVendorCDR_20' ) start [2025-03-28 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781665', 'tblTempVendorCDR_20' ) end [2025-03-28 12:59:21] Production.INFO: ProcessCDR(1,14781665,1,1,2) [2025-03-28 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781665', 'tblTempUsageDetail_20' ) start [2025-03-28 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781665', 'tblTempUsageDetail_20' ) end [2025-03-28 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 12:59:27] Production.INFO: ==30978== Releasing lock... [2025-03-28 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 12:59:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:00:07 [end_date_ymd] => 2025-03-28 13:00:07 [RateCDR] => 1 ) [2025-03-28 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:00:07' and `end` < '2025-03-28 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:00:20] Production.INFO: count ==4742 [2025-03-28 13:00:23] Production.ERROR: pbx CDR StartTime 2025-03-28 10:00:07 - End Time 2025-03-28 13:00:07 [2025-03-28 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781671', 'tblTempUsageDetail_20' ) start [2025-03-28 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781671', 'tblTempUsageDetail_20' ) end [2025-03-28 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781671', 'tblTempVendorCDR_20' ) start [2025-03-28 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781671', 'tblTempVendorCDR_20' ) end [2025-03-28 13:00:23] Production.INFO: ProcessCDR(1,14781671,1,1,2) [2025-03-28 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781671', 'tblTempUsageDetail_20' ) start [2025-03-28 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781671', 'tblTempUsageDetail_20' ) end [2025-03-28 13:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:00:29] Production.INFO: ==31080== Releasing lock... [2025-03-28 13:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:00:29] Production.INFO: 63.5 MB #Memory Used# [2025-03-28 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:01:05 [end_date_ymd] => 2025-03-28 13:01:05 [RateCDR] => 1 ) [2025-03-28 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:01:05' and `end` < '2025-03-28 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-28 13:01:19] Production.INFO: count ==4758 [2025-03-28 13:01:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:01:05 - End Time 2025-03-28 13:01:05 [2025-03-28 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781676', 'tblTempUsageDetail_20' ) start [2025-03-28 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781676', 'tblTempUsageDetail_20' ) end [2025-03-28 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781676', 'tblTempVendorCDR_20' ) start [2025-03-28 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781676', 'tblTempVendorCDR_20' ) end [2025-03-28 13:01:22] Production.INFO: ProcessCDR(1,14781676,1,1,2) [2025-03-28 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781676', 'tblTempUsageDetail_20' ) start [2025-03-28 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781676', 'tblTempUsageDetail_20' ) end [2025-03-28 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:01:27] Production.INFO: ==31195== Releasing lock... [2025-03-28 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:01:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:02:06 [end_date_ymd] => 2025-03-28 13:02:06 [RateCDR] => 1 ) [2025-03-28 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:02:06' and `end` < '2025-03-28 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:02:19] Production.INFO: count ==4773 [2025-03-28 13:02:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:02:06 - End Time 2025-03-28 13:02:06 [2025-03-28 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781681', 'tblTempUsageDetail_20' ) start [2025-03-28 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781681', 'tblTempUsageDetail_20' ) end [2025-03-28 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781681', 'tblTempVendorCDR_20' ) start [2025-03-28 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781681', 'tblTempVendorCDR_20' ) end [2025-03-28 13:02:21] Production.INFO: ProcessCDR(1,14781681,1,1,2) [2025-03-28 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781681', 'tblTempUsageDetail_20' ) start [2025-03-28 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781681', 'tblTempUsageDetail_20' ) end [2025-03-28 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:02:27] Production.INFO: ==31292== Releasing lock... [2025-03-28 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:02:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:03:06 [end_date_ymd] => 2025-03-28 13:03:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:03:06' and `end` < '2025-03-28 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-28 13:03:19] Production.INFO: count ==4774 [2025-03-28 13:03:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:03:06 - End Time 2025-03-28 13:03:06 [2025-03-28 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781686', 'tblTempUsageDetail_20' ) start [2025-03-28 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781686', 'tblTempUsageDetail_20' ) end [2025-03-28 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781686', 'tblTempVendorCDR_20' ) start [2025-03-28 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781686', 'tblTempVendorCDR_20' ) end [2025-03-28 13:03:22] Production.INFO: ProcessCDR(1,14781686,1,1,2) [2025-03-28 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781686', 'tblTempUsageDetail_20' ) start [2025-03-28 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781686', 'tblTempUsageDetail_20' ) end [2025-03-28 13:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:03:28] Production.INFO: ==31385== Releasing lock... [2025-03-28 13:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:03:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:04:06 [end_date_ymd] => 2025-03-28 13:04:06 [RateCDR] => 1 ) [2025-03-28 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:04:06' and `end` < '2025-03-28 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:04:20] Production.INFO: count ==4766 [2025-03-28 13:04:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:04:06 - End Time 2025-03-28 13:04:06 [2025-03-28 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781691', 'tblTempUsageDetail_20' ) start [2025-03-28 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781691', 'tblTempUsageDetail_20' ) end [2025-03-28 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781691', 'tblTempVendorCDR_20' ) start [2025-03-28 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781691', 'tblTempVendorCDR_20' ) end [2025-03-28 13:04:22] Production.INFO: ProcessCDR(1,14781691,1,1,2) [2025-03-28 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781691', 'tblTempUsageDetail_20' ) start [2025-03-28 13:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781691', 'tblTempUsageDetail_20' ) end [2025-03-28 13:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:04:28] Production.INFO: ==31547== Releasing lock... [2025-03-28 13:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:04:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:05:06 [end_date_ymd] => 2025-03-28 13:05:06 [RateCDR] => 1 ) [2025-03-28 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:05:06' and `end` < '2025-03-28 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:05:20] Production.INFO: count ==4781 [2025-03-28 13:05:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:05:06 - End Time 2025-03-28 13:05:06 [2025-03-28 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781696', 'tblTempUsageDetail_20' ) start [2025-03-28 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781696', 'tblTempUsageDetail_20' ) end [2025-03-28 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781696', 'tblTempVendorCDR_20' ) start [2025-03-28 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781696', 'tblTempVendorCDR_20' ) end [2025-03-28 13:05:22] Production.INFO: ProcessCDR(1,14781696,1,1,2) [2025-03-28 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781696', 'tblTempUsageDetail_20' ) start [2025-03-28 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781696', 'tblTempUsageDetail_20' ) end [2025-03-28 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:05:26] Production.INFO: ==31643== Releasing lock... [2025-03-28 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:05:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:06:06 [end_date_ymd] => 2025-03-28 13:06:06 [RateCDR] => 1 ) [2025-03-28 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:06:06' and `end` < '2025-03-28 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:06:20] Production.INFO: count ==4781 [2025-03-28 13:06:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:06:06 - End Time 2025-03-28 13:06:06 [2025-03-28 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781701', 'tblTempUsageDetail_20' ) start [2025-03-28 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781701', 'tblTempUsageDetail_20' ) end [2025-03-28 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781701', 'tblTempVendorCDR_20' ) start [2025-03-28 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781701', 'tblTempVendorCDR_20' ) end [2025-03-28 13:06:22] Production.INFO: ProcessCDR(1,14781701,1,1,2) [2025-03-28 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781701', 'tblTempUsageDetail_20' ) start [2025-03-28 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781701', 'tblTempUsageDetail_20' ) end [2025-03-28 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:06:28] Production.INFO: ==31738== Releasing lock... [2025-03-28 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:06:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:07:05 [end_date_ymd] => 2025-03-28 13:07:05 [RateCDR] => 1 ) [2025-03-28 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-28 10:07:05' and `end` < '2025-03-28 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-28 13:07:18] Production.INFO: count ==4781 [2025-03-28 13:07:20] Production.ERROR: pbx CDR StartTime 2025-03-28 10:07:05 - End Time 2025-03-28 13:07:05 [2025-03-28 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781706', 'tblTempUsageDetail_20' ) start [2025-03-28 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781706', 'tblTempUsageDetail_20' ) end [2025-03-28 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781706', 'tblTempVendorCDR_20' ) start [2025-03-28 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781706', 'tblTempVendorCDR_20' ) end [2025-03-28 13:07:21] Production.INFO: ProcessCDR(1,14781706,1,1,2) [2025-03-28 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781706', 'tblTempUsageDetail_20' ) start [2025-03-28 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781706', 'tblTempUsageDetail_20' ) end [2025-03-28 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:07:26] Production.INFO: ==31835== Releasing lock... [2025-03-28 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:07:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:08:05 [end_date_ymd] => 2025-03-28 13:08:05 [RateCDR] => 1 ) [2025-03-28 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-28 10:08:05' and `end` < '2025-03-28 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-28 13:08:19] Production.INFO: count ==4795 [2025-03-28 13:08:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:08:05 - End Time 2025-03-28 13:08:05 [2025-03-28 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781711', 'tblTempUsageDetail_20' ) start [2025-03-28 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781711', 'tblTempUsageDetail_20' ) end [2025-03-28 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781711', 'tblTempVendorCDR_20' ) start [2025-03-28 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781711', 'tblTempVendorCDR_20' ) end [2025-03-28 13:08:21] Production.INFO: ProcessCDR(1,14781711,1,1,2) [2025-03-28 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781711', 'tblTempUsageDetail_20' ) start [2025-03-28 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781711', 'tblTempUsageDetail_20' ) end [2025-03-28 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:08:27] Production.INFO: ==31930== Releasing lock... [2025-03-28 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:08:27] Production.INFO: 64 MB #Memory Used# [2025-03-28 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:09:06 [end_date_ymd] => 2025-03-28 13:09:06 [RateCDR] => 1 ) [2025-03-28 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:09:06' and `end` < '2025-03-28 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:09:20] Production.INFO: count ==4814 [2025-03-28 13:09:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:09:06 - End Time 2025-03-28 13:09:06 [2025-03-28 13:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781716', 'tblTempUsageDetail_20' ) start [2025-03-28 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781716', 'tblTempUsageDetail_20' ) end [2025-03-28 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781716', 'tblTempVendorCDR_20' ) start [2025-03-28 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781716', 'tblTempVendorCDR_20' ) end [2025-03-28 13:09:22] Production.INFO: ProcessCDR(1,14781716,1,1,2) [2025-03-28 13:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781716', 'tblTempUsageDetail_20' ) start [2025-03-28 13:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781716', 'tblTempUsageDetail_20' ) end [2025-03-28 13:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:09:28] Production.INFO: ==32022== Releasing lock... [2025-03-28 13:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:09:28] Production.INFO: 64 MB #Memory Used# [2025-03-28 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:10:06 [end_date_ymd] => 2025-03-28 13:10:06 [RateCDR] => 1 ) [2025-03-28 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:10:06' and `end` < '2025-03-28 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:10:19] Production.INFO: count ==4813 [2025-03-28 13:10:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:10:06 - End Time 2025-03-28 13:10:06 [2025-03-28 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781722', 'tblTempUsageDetail_20' ) start [2025-03-28 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781722', 'tblTempUsageDetail_20' ) end [2025-03-28 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781722', 'tblTempVendorCDR_20' ) start [2025-03-28 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781722', 'tblTempVendorCDR_20' ) end [2025-03-28 13:10:22] Production.INFO: ProcessCDR(1,14781722,1,1,2) [2025-03-28 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781722', 'tblTempUsageDetail_20' ) start [2025-03-28 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781722', 'tblTempUsageDetail_20' ) end [2025-03-28 13:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:10:26] Production.INFO: ==32120== Releasing lock... [2025-03-28 13:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:10:26] Production.INFO: 64 MB #Memory Used# [2025-03-28 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:11:06 [end_date_ymd] => 2025-03-28 13:11:06 [RateCDR] => 1 ) [2025-03-28 13:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:11:06' and `end` < '2025-03-28 13:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:11:19] Production.INFO: count ==4822 [2025-03-28 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:11:06 - End Time 2025-03-28 13:11:06 [2025-03-28 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781727', 'tblTempUsageDetail_20' ) start [2025-03-28 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781727', 'tblTempUsageDetail_20' ) end [2025-03-28 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781727', 'tblTempVendorCDR_20' ) start [2025-03-28 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781727', 'tblTempVendorCDR_20' ) end [2025-03-28 13:11:22] Production.INFO: ProcessCDR(1,14781727,1,1,2) [2025-03-28 13:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781727', 'tblTempUsageDetail_20' ) start [2025-03-28 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781727', 'tblTempUsageDetail_20' ) end [2025-03-28 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:11:27] Production.INFO: ==32216== Releasing lock... [2025-03-28 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:11:27] Production.INFO: 64 MB #Memory Used# [2025-03-28 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:12:05 [end_date_ymd] => 2025-03-28 13:12:05 [RateCDR] => 1 ) [2025-03-28 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:12:05' and `end` < '2025-03-28 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:12:19] Production.INFO: count ==4826 [2025-03-28 13:12:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:12:05 - End Time 2025-03-28 13:12:05 [2025-03-28 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781732', 'tblTempUsageDetail_20' ) start [2025-03-28 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781732', 'tblTempUsageDetail_20' ) end [2025-03-28 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781732', 'tblTempVendorCDR_20' ) start [2025-03-28 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781732', 'tblTempVendorCDR_20' ) end [2025-03-28 13:12:21] Production.INFO: ProcessCDR(1,14781732,1,1,2) [2025-03-28 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781732', 'tblTempUsageDetail_20' ) start [2025-03-28 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781732', 'tblTempUsageDetail_20' ) end [2025-03-28 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:12:27] Production.INFO: ==32312== Releasing lock... [2025-03-28 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:12:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-28 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:13:06 [end_date_ymd] => 2025-03-28 13:13:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:13:06' and `end` < '2025-03-28 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-28 13:13:19] Production.INFO: count ==4833 [2025-03-28 13:13:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:13:06 - End Time 2025-03-28 13:13:06 [2025-03-28 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781737', 'tblTempUsageDetail_20' ) start [2025-03-28 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781737', 'tblTempUsageDetail_20' ) end [2025-03-28 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781737', 'tblTempVendorCDR_20' ) start [2025-03-28 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781737', 'tblTempVendorCDR_20' ) end [2025-03-28 13:13:22] Production.INFO: ProcessCDR(1,14781737,1,1,2) [2025-03-28 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781737', 'tblTempUsageDetail_20' ) start [2025-03-28 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781737', 'tblTempUsageDetail_20' ) end [2025-03-28 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:13:28] Production.INFO: ==32410== Releasing lock... [2025-03-28 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:13:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-28 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:14:06 [end_date_ymd] => 2025-03-28 13:14:06 [RateCDR] => 1 ) [2025-03-28 13: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-28 10:14:06' and `end` < '2025-03-28 13: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-28 13:14:19] Production.INFO: count ==4855 [2025-03-28 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:14:06 - End Time 2025-03-28 13:14:06 [2025-03-28 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781742', 'tblTempUsageDetail_20' ) start [2025-03-28 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781742', 'tblTempUsageDetail_20' ) end [2025-03-28 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781742', 'tblTempVendorCDR_20' ) start [2025-03-28 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781742', 'tblTempVendorCDR_20' ) end [2025-03-28 13:14:22] Production.INFO: ProcessCDR(1,14781742,1,1,2) [2025-03-28 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781742', 'tblTempUsageDetail_20' ) start [2025-03-28 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781742', 'tblTempUsageDetail_20' ) end [2025-03-28 13:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:14:28] Production.INFO: ==32509== Releasing lock... [2025-03-28 13:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:14:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-28 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:15:05 [end_date_ymd] => 2025-03-28 13:15:05 [RateCDR] => 1 ) [2025-03-28 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-28 10:15:05' and `end` < '2025-03-28 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-28 13:15:19] Production.INFO: count ==4867 [2025-03-28 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:15:05 - End Time 2025-03-28 13:15:05 [2025-03-28 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781747', 'tblTempUsageDetail_20' ) start [2025-03-28 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781747', 'tblTempUsageDetail_20' ) end [2025-03-28 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781747', 'tblTempVendorCDR_20' ) start [2025-03-28 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781747', 'tblTempVendorCDR_20' ) end [2025-03-28 13:15:21] Production.INFO: ProcessCDR(1,14781747,1,1,2) [2025-03-28 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781747', 'tblTempUsageDetail_20' ) start [2025-03-28 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781747', 'tblTempUsageDetail_20' ) end [2025-03-28 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:15:27] Production.INFO: ==32608== Releasing lock... [2025-03-28 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:15:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-28 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:16:05 [end_date_ymd] => 2025-03-28 13:16:05 [RateCDR] => 1 ) [2025-03-28 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-28 10:16:05' and `end` < '2025-03-28 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-28 13:16:19] Production.INFO: count ==4868 [2025-03-28 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:16:05 - End Time 2025-03-28 13:16:05 [2025-03-28 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781752', 'tblTempUsageDetail_20' ) start [2025-03-28 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781752', 'tblTempUsageDetail_20' ) end [2025-03-28 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781752', 'tblTempVendorCDR_20' ) start [2025-03-28 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781752', 'tblTempVendorCDR_20' ) end [2025-03-28 13:16:21] Production.INFO: ProcessCDR(1,14781752,1,1,2) [2025-03-28 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781752', 'tblTempUsageDetail_20' ) start [2025-03-28 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781752', 'tblTempUsageDetail_20' ) end [2025-03-28 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:16:27] Production.INFO: ==32702== Releasing lock... [2025-03-28 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:16:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-28 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:17:06 [end_date_ymd] => 2025-03-28 13:17:06 [RateCDR] => 1 ) [2025-03-28 13:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:17:06' and `end` < '2025-03-28 13:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:17:19] Production.INFO: count ==4872 [2025-03-28 13:17:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:17:06 - End Time 2025-03-28 13:17:06 [2025-03-28 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781757', 'tblTempUsageDetail_20' ) start [2025-03-28 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781757', 'tblTempUsageDetail_20' ) end [2025-03-28 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781757', 'tblTempVendorCDR_20' ) start [2025-03-28 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781757', 'tblTempVendorCDR_20' ) end [2025-03-28 13:17:22] Production.INFO: ProcessCDR(1,14781757,1,1,2) [2025-03-28 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781757', 'tblTempUsageDetail_20' ) start [2025-03-28 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781757', 'tblTempUsageDetail_20' ) end [2025-03-28 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:17:28] Production.INFO: ==336== Releasing lock... [2025-03-28 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:17:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-28 13:18:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:18:07 [end_date_ymd] => 2025-03-28 13:18:07 [RateCDR] => 1 ) [2025-03-28 13:18: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-28 10:18:07' and `end` < '2025-03-28 13:18: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-28 13:18:20] Production.INFO: count ==4896 [2025-03-28 13:18:23] Production.ERROR: pbx CDR StartTime 2025-03-28 10:18:07 - End Time 2025-03-28 13:18:07 [2025-03-28 13:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781762', 'tblTempUsageDetail_20' ) start [2025-03-28 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781762', 'tblTempUsageDetail_20' ) end [2025-03-28 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781762', 'tblTempVendorCDR_20' ) start [2025-03-28 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781762', 'tblTempVendorCDR_20' ) end [2025-03-28 13:18:23] Production.INFO: ProcessCDR(1,14781762,1,1,2) [2025-03-28 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781762', 'tblTempUsageDetail_20' ) start [2025-03-28 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781762', 'tblTempUsageDetail_20' ) end [2025-03-28 13:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:18:28] Production.INFO: ==453== Releasing lock... [2025-03-28 13:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:18:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-28 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:19:06 [end_date_ymd] => 2025-03-28 13:19:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:19:06' and `end` < '2025-03-28 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-28 13:19:19] Production.INFO: count ==4932 [2025-03-28 13:19:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:19:06 - End Time 2025-03-28 13:19:06 [2025-03-28 13:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781767', 'tblTempUsageDetail_20' ) start [2025-03-28 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781767', 'tblTempUsageDetail_20' ) end [2025-03-28 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781767', 'tblTempVendorCDR_20' ) start [2025-03-28 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781767', 'tblTempVendorCDR_20' ) end [2025-03-28 13:19:22] Production.INFO: ProcessCDR(1,14781767,1,1,2) [2025-03-28 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781767', 'tblTempUsageDetail_20' ) start [2025-03-28 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781767', 'tblTempUsageDetail_20' ) end [2025-03-28 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:19:26] Production.INFO: ==550== Releasing lock... [2025-03-28 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:19:26] Production.INFO: 65 MB #Memory Used# [2025-03-28 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:20:06 [end_date_ymd] => 2025-03-28 13:20:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:20:06' and `end` < '2025-03-28 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-28 13:20:20] Production.INFO: count ==4936 [2025-03-28 13:20:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:20:06 - End Time 2025-03-28 13:20:06 [2025-03-28 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781773', 'tblTempUsageDetail_20' ) start [2025-03-28 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781773', 'tblTempUsageDetail_20' ) end [2025-03-28 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781773', 'tblTempVendorCDR_20' ) start [2025-03-28 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781773', 'tblTempVendorCDR_20' ) end [2025-03-28 13:20:22] Production.INFO: ProcessCDR(1,14781773,1,1,2) [2025-03-28 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781773', 'tblTempUsageDetail_20' ) start [2025-03-28 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781773', 'tblTempUsageDetail_20' ) end [2025-03-28 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:20:28] Production.INFO: ==718== Releasing lock... [2025-03-28 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:20:28] Production.INFO: 65 MB #Memory Used# [2025-03-28 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:21:05 [end_date_ymd] => 2025-03-28 13:21:05 [RateCDR] => 1 ) [2025-03-28 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-28 10:21:05' and `end` < '2025-03-28 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-28 13:21:19] Production.INFO: count ==4970 [2025-03-28 13:21:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:21:05 - End Time 2025-03-28 13:21:05 [2025-03-28 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781778', 'tblTempUsageDetail_20' ) start [2025-03-28 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781778', 'tblTempUsageDetail_20' ) end [2025-03-28 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781778', 'tblTempVendorCDR_20' ) start [2025-03-28 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781778', 'tblTempVendorCDR_20' ) end [2025-03-28 13:21:22] Production.INFO: ProcessCDR(1,14781778,1,1,2) [2025-03-28 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781778', 'tblTempUsageDetail_20' ) start [2025-03-28 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781778', 'tblTempUsageDetail_20' ) end [2025-03-28 13:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:21:28] Production.INFO: ==805== Releasing lock... [2025-03-28 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:21:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-28 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:22:06 [end_date_ymd] => 2025-03-28 13:22:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:22:06' and `end` < '2025-03-28 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-28 13:22:20] Production.INFO: count ==4987 [2025-03-28 13:22:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:22:06 - End Time 2025-03-28 13:22:06 [2025-03-28 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781783', 'tblTempUsageDetail_20' ) start [2025-03-28 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781783', 'tblTempUsageDetail_20' ) end [2025-03-28 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781783', 'tblTempVendorCDR_20' ) start [2025-03-28 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781783', 'tblTempVendorCDR_20' ) end [2025-03-28 13:22:23] Production.INFO: ProcessCDR(1,14781783,1,1,2) [2025-03-28 13:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781783', 'tblTempUsageDetail_20' ) start [2025-03-28 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781783', 'tblTempUsageDetail_20' ) end [2025-03-28 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:22:28] Production.INFO: ==878== Releasing lock... [2025-03-28 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:22:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-28 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:23:06 [end_date_ymd] => 2025-03-28 13:23:06 [RateCDR] => 1 ) [2025-03-28 13:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:23:06' and `end` < '2025-03-28 13:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:23:20] Production.INFO: count ==4984 [2025-03-28 13:23:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:23:06 - End Time 2025-03-28 13:23:06 [2025-03-28 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781788', 'tblTempUsageDetail_20' ) start [2025-03-28 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781788', 'tblTempUsageDetail_20' ) end [2025-03-28 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781788', 'tblTempVendorCDR_20' ) start [2025-03-28 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781788', 'tblTempVendorCDR_20' ) end [2025-03-28 13:23:22] Production.INFO: ProcessCDR(1,14781788,1,1,2) [2025-03-28 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781788', 'tblTempUsageDetail_20' ) start [2025-03-28 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781788', 'tblTempUsageDetail_20' ) end [2025-03-28 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:23:28] Production.INFO: ==958== Releasing lock... [2025-03-28 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:23:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-28 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:24:06 [end_date_ymd] => 2025-03-28 13:24:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:24:06' and `end` < '2025-03-28 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-28 13:24:20] Production.INFO: count ==4990 [2025-03-28 13:24:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:24:06 - End Time 2025-03-28 13:24:06 [2025-03-28 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781793', 'tblTempUsageDetail_20' ) start [2025-03-28 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781793', 'tblTempUsageDetail_20' ) end [2025-03-28 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781793', 'tblTempVendorCDR_20' ) start [2025-03-28 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781793', 'tblTempVendorCDR_20' ) end [2025-03-28 13:24:22] Production.INFO: ProcessCDR(1,14781793,1,1,2) [2025-03-28 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781793', 'tblTempUsageDetail_20' ) start [2025-03-28 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781793', 'tblTempUsageDetail_20' ) end [2025-03-28 13:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:24:28] Production.INFO: ==1032== Releasing lock... [2025-03-28 13:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:24:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-28 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:25:06 [end_date_ymd] => 2025-03-28 13:25:06 [RateCDR] => 1 ) [2025-03-28 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:25:06' and `end` < '2025-03-28 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:25:20] Production.INFO: count ==5014 [2025-03-28 13:25:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:25:06 - End Time 2025-03-28 13:25:06 [2025-03-28 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781798', 'tblTempUsageDetail_20' ) start [2025-03-28 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781798', 'tblTempUsageDetail_20' ) end [2025-03-28 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781798', 'tblTempVendorCDR_20' ) start [2025-03-28 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781798', 'tblTempVendorCDR_20' ) end [2025-03-28 13:25:22] Production.INFO: ProcessCDR(1,14781798,1,1,2) [2025-03-28 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781798', 'tblTempUsageDetail_20' ) start [2025-03-28 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781798', 'tblTempUsageDetail_20' ) end [2025-03-28 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:25:28] Production.INFO: ==1101== Releasing lock... [2025-03-28 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:25:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-28 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:26:05 [end_date_ymd] => 2025-03-28 13:26:05 [RateCDR] => 1 ) [2025-03-28 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-28 10:26:05' and `end` < '2025-03-28 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:26:19] Production.INFO: count ==5033 [2025-03-28 13:26:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:26:05 - End Time 2025-03-28 13:26:05 [2025-03-28 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781803', 'tblTempUsageDetail_20' ) start [2025-03-28 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781803', 'tblTempUsageDetail_20' ) end [2025-03-28 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781803', 'tblTempVendorCDR_20' ) start [2025-03-28 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781803', 'tblTempVendorCDR_20' ) end [2025-03-28 13:26:22] Production.INFO: ProcessCDR(1,14781803,1,1,2) [2025-03-28 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781803', 'tblTempUsageDetail_20' ) start [2025-03-28 13:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781803', 'tblTempUsageDetail_20' ) end [2025-03-28 13:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:26:28] Production.INFO: ==1193== Releasing lock... [2025-03-28 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:26:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-28 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:27:06 [end_date_ymd] => 2025-03-28 13:27:06 [RateCDR] => 1 ) [2025-03-28 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:27:06' and `end` < '2025-03-28 13:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:27:20] Production.INFO: count ==5028 [2025-03-28 13:27:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:27:06 - End Time 2025-03-28 13:27:06 [2025-03-28 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781808', 'tblTempUsageDetail_20' ) start [2025-03-28 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781808', 'tblTempUsageDetail_20' ) end [2025-03-28 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781808', 'tblTempVendorCDR_20' ) start [2025-03-28 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781808', 'tblTempVendorCDR_20' ) end [2025-03-28 13:27:22] Production.INFO: ProcessCDR(1,14781808,1,1,2) [2025-03-28 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781808', 'tblTempUsageDetail_20' ) start [2025-03-28 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781808', 'tblTempUsageDetail_20' ) end [2025-03-28 13:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:27:28] Production.INFO: ==1297== Releasing lock... [2025-03-28 13:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:27:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-28 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:28:05 [end_date_ymd] => 2025-03-28 13:28:05 [RateCDR] => 1 ) [2025-03-28 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-28 10:28:05' and `end` < '2025-03-28 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-28 13:28:19] Production.INFO: count ==5038 [2025-03-28 13:28:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:28:05 - End Time 2025-03-28 13:28:05 [2025-03-28 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781813', 'tblTempUsageDetail_20' ) start [2025-03-28 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781813', 'tblTempUsageDetail_20' ) end [2025-03-28 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781813', 'tblTempVendorCDR_20' ) start [2025-03-28 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781813', 'tblTempVendorCDR_20' ) end [2025-03-28 13:28:22] Production.INFO: ProcessCDR(1,14781813,1,1,2) [2025-03-28 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781813', 'tblTempUsageDetail_20' ) start [2025-03-28 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781813', 'tblTempUsageDetail_20' ) end [2025-03-28 13:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:28:28] Production.INFO: ==1379== Releasing lock... [2025-03-28 13:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:28:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-28 13:29:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:29:07 [end_date_ymd] => 2025-03-28 13:29:07 [RateCDR] => 1 ) [2025-03-28 13:29: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-28 10:29:07' and `end` < '2025-03-28 13:29: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-28 13:29:20] Production.INFO: count ==5050 [2025-03-28 13:29:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:29:07 - End Time 2025-03-28 13:29:07 [2025-03-28 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781818', 'tblTempUsageDetail_20' ) start [2025-03-28 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781818', 'tblTempUsageDetail_20' ) end [2025-03-28 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781818', 'tblTempVendorCDR_20' ) start [2025-03-28 13:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781818', 'tblTempVendorCDR_20' ) end [2025-03-28 13:29:23] Production.INFO: ProcessCDR(1,14781818,1,1,2) [2025-03-28 13:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781818', 'tblTempUsageDetail_20' ) start [2025-03-28 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781818', 'tblTempUsageDetail_20' ) end [2025-03-28 13:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:29:29] Production.INFO: ==1474== Releasing lock... [2025-03-28 13:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:29:29] Production.INFO: 65.75 MB #Memory Used# [2025-03-28 13:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:30:07 [end_date_ymd] => 2025-03-28 13:30:07 [RateCDR] => 1 ) [2025-03-28 13: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-28 10:30:07' and `end` < '2025-03-28 13: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-28 13:30:20] Production.INFO: count ==5053 [2025-03-28 13:30:23] Production.ERROR: pbx CDR StartTime 2025-03-28 10:30:07 - End Time 2025-03-28 13:30:07 [2025-03-28 13:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781824', 'tblTempUsageDetail_20' ) start [2025-03-28 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781824', 'tblTempUsageDetail_20' ) end [2025-03-28 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781824', 'tblTempVendorCDR_20' ) start [2025-03-28 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781824', 'tblTempVendorCDR_20' ) end [2025-03-28 13:30:23] Production.INFO: ProcessCDR(1,14781824,1,1,2) [2025-03-28 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781824', 'tblTempUsageDetail_20' ) start [2025-03-28 13:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781824', 'tblTempUsageDetail_20' ) end [2025-03-28 13:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:30:29] Production.INFO: ==1602== Releasing lock... [2025-03-28 13:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:30:29] Production.INFO: 65.75 MB #Memory Used# [2025-03-28 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:31:05 [end_date_ymd] => 2025-03-28 13:31:05 [RateCDR] => 1 ) [2025-03-28 13:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:31:05' and `end` < '2025-03-28 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-28 13:31:19] Production.INFO: count ==5039 [2025-03-28 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:31:05 - End Time 2025-03-28 13:31:05 [2025-03-28 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781829', 'tblTempUsageDetail_20' ) start [2025-03-28 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781829', 'tblTempUsageDetail_20' ) end [2025-03-28 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781829', 'tblTempVendorCDR_20' ) start [2025-03-28 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781829', 'tblTempVendorCDR_20' ) end [2025-03-28 13:31:22] Production.INFO: ProcessCDR(1,14781829,1,1,2) [2025-03-28 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781829', 'tblTempUsageDetail_20' ) start [2025-03-28 13:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781829', 'tblTempUsageDetail_20' ) end [2025-03-28 13:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:31:28] Production.INFO: ==1691== Releasing lock... [2025-03-28 13:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:31:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-28 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:32:05 [end_date_ymd] => 2025-03-28 13:32:05 [RateCDR] => 1 ) [2025-03-28 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-28 10:32:05' and `end` < '2025-03-28 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:32:19] Production.INFO: count ==5042 [2025-03-28 13:32:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:32:05 - End Time 2025-03-28 13:32:05 [2025-03-28 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781834', 'tblTempUsageDetail_20' ) start [2025-03-28 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781834', 'tblTempUsageDetail_20' ) end [2025-03-28 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781834', 'tblTempVendorCDR_20' ) start [2025-03-28 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781834', 'tblTempVendorCDR_20' ) end [2025-03-28 13:32:22] Production.INFO: ProcessCDR(1,14781834,1,1,2) [2025-03-28 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781834', 'tblTempUsageDetail_20' ) start [2025-03-28 13:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781834', 'tblTempUsageDetail_20' ) end [2025-03-28 13:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:32:28] Production.INFO: ==1785== Releasing lock... [2025-03-28 13:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:32:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-28 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:33:06 [end_date_ymd] => 2025-03-28 13:33:06 [RateCDR] => 1 ) [2025-03-28 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:33:06' and `end` < '2025-03-28 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:33:20] Production.INFO: count ==5061 [2025-03-28 13:33:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:33:06 - End Time 2025-03-28 13:33:06 [2025-03-28 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781839', 'tblTempUsageDetail_20' ) start [2025-03-28 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781839', 'tblTempUsageDetail_20' ) end [2025-03-28 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781839', 'tblTempVendorCDR_20' ) start [2025-03-28 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781839', 'tblTempVendorCDR_20' ) end [2025-03-28 13:33:22] Production.INFO: ProcessCDR(1,14781839,1,1,2) [2025-03-28 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781839', 'tblTempUsageDetail_20' ) start [2025-03-28 13:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781839', 'tblTempUsageDetail_20' ) end [2025-03-28 13:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:33:28] Production.INFO: ==1879== Releasing lock... [2025-03-28 13:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:33:28] Production.INFO: 66 MB #Memory Used# [2025-03-28 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:34:05 [end_date_ymd] => 2025-03-28 13:34:05 [RateCDR] => 1 ) [2025-03-28 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:34:05' and `end` < '2025-03-28 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:34:19] Production.INFO: count ==5094 [2025-03-28 13:34:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:34:05 - End Time 2025-03-28 13:34:05 [2025-03-28 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781844', 'tblTempUsageDetail_20' ) start [2025-03-28 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781844', 'tblTempUsageDetail_20' ) end [2025-03-28 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781844', 'tblTempVendorCDR_20' ) start [2025-03-28 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781844', 'tblTempVendorCDR_20' ) end [2025-03-28 13:34:22] Production.INFO: ProcessCDR(1,14781844,1,1,2) [2025-03-28 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781844', 'tblTempUsageDetail_20' ) start [2025-03-28 13:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781844', 'tblTempUsageDetail_20' ) end [2025-03-28 13:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:34:28] Production.INFO: ==1972== Releasing lock... [2025-03-28 13:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:34:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-28 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:35:06 [end_date_ymd] => 2025-03-28 13:35:06 [RateCDR] => 1 ) [2025-03-28 13: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-28 10:35:06' and `end` < '2025-03-28 13: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-28 13:35:19] Production.INFO: count ==5085 [2025-03-28 13:35:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:35:06 - End Time 2025-03-28 13:35:06 [2025-03-28 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781849', 'tblTempUsageDetail_20' ) start [2025-03-28 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781849', 'tblTempUsageDetail_20' ) end [2025-03-28 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781849', 'tblTempVendorCDR_20' ) start [2025-03-28 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781849', 'tblTempVendorCDR_20' ) end [2025-03-28 13:35:22] Production.INFO: ProcessCDR(1,14781849,1,1,2) [2025-03-28 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781849', 'tblTempUsageDetail_20' ) start [2025-03-28 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781849', 'tblTempUsageDetail_20' ) end [2025-03-28 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:35:27] Production.INFO: ==2108== Releasing lock... [2025-03-28 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:35:27] Production.INFO: 66 MB #Memory Used# [2025-03-28 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:36:06 [end_date_ymd] => 2025-03-28 13:36:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:36:06' and `end` < '2025-03-28 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-28 13:36:19] Production.INFO: count ==5077 [2025-03-28 13:36:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:36:06 - End Time 2025-03-28 13:36:06 [2025-03-28 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781854', 'tblTempUsageDetail_20' ) start [2025-03-28 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781854', 'tblTempUsageDetail_20' ) end [2025-03-28 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781854', 'tblTempVendorCDR_20' ) start [2025-03-28 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781854', 'tblTempVendorCDR_20' ) end [2025-03-28 13:36:22] Production.INFO: ProcessCDR(1,14781854,1,1,2) [2025-03-28 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781854', 'tblTempUsageDetail_20' ) start [2025-03-28 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781854', 'tblTempUsageDetail_20' ) end [2025-03-28 13:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:36:28] Production.INFO: ==2209== Releasing lock... [2025-03-28 13:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:36:28] Production.INFO: 66 MB #Memory Used# [2025-03-28 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:37:06 [end_date_ymd] => 2025-03-28 13:37:06 [RateCDR] => 1 ) [2025-03-28 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:37:06' and `end` < '2025-03-28 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:37:20] Production.INFO: count ==5090 [2025-03-28 13:37:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:37:06 - End Time 2025-03-28 13:37:06 [2025-03-28 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781859', 'tblTempUsageDetail_20' ) start [2025-03-28 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781859', 'tblTempUsageDetail_20' ) end [2025-03-28 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781859', 'tblTempVendorCDR_20' ) start [2025-03-28 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781859', 'tblTempVendorCDR_20' ) end [2025-03-28 13:37:22] Production.INFO: ProcessCDR(1,14781859,1,1,2) [2025-03-28 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781859', 'tblTempUsageDetail_20' ) start [2025-03-28 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781859', 'tblTempUsageDetail_20' ) end [2025-03-28 13:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:37:28] Production.INFO: ==2311== Releasing lock... [2025-03-28 13:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:37:28] Production.INFO: 66 MB #Memory Used# [2025-03-28 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:38:05 [end_date_ymd] => 2025-03-28 13:38:05 [RateCDR] => 1 ) [2025-03-28 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-28 10:38:05' and `end` < '2025-03-28 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-28 13:38:19] Production.INFO: count ==5117 [2025-03-28 13:38:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:38:05 - End Time 2025-03-28 13:38:05 [2025-03-28 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781864', 'tblTempUsageDetail_20' ) start [2025-03-28 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781864', 'tblTempUsageDetail_20' ) end [2025-03-28 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781864', 'tblTempVendorCDR_20' ) start [2025-03-28 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781864', 'tblTempVendorCDR_20' ) end [2025-03-28 13:38:21] Production.INFO: ProcessCDR(1,14781864,1,1,2) [2025-03-28 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781864', 'tblTempUsageDetail_20' ) start [2025-03-28 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781864', 'tblTempUsageDetail_20' ) end [2025-03-28 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:38:27] Production.INFO: ==2423== Releasing lock... [2025-03-28 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:38:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-28 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:39:06 [end_date_ymd] => 2025-03-28 13:39:06 [RateCDR] => 1 ) [2025-03-28 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:39:06' and `end` < '2025-03-28 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:39:19] Production.INFO: count ==5131 [2025-03-28 13:39:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:39:06 - End Time 2025-03-28 13:39:06 [2025-03-28 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781869', 'tblTempUsageDetail_20' ) start [2025-03-28 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781869', 'tblTempUsageDetail_20' ) end [2025-03-28 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781869', 'tblTempVendorCDR_20' ) start [2025-03-28 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781869', 'tblTempVendorCDR_20' ) end [2025-03-28 13:39:22] Production.INFO: ProcessCDR(1,14781869,1,1,2) [2025-03-28 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781869', 'tblTempUsageDetail_20' ) start [2025-03-28 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781869', 'tblTempUsageDetail_20' ) end [2025-03-28 13:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:39:28] Production.INFO: ==2529== Releasing lock... [2025-03-28 13:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:39:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:40:07 [end_date_ymd] => 2025-03-28 13:40:07 [RateCDR] => 1 ) [2025-03-28 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-28 10:40:07' and `end` < '2025-03-28 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-28 13:40:20] Production.INFO: count ==5156 [2025-03-28 13:40:23] Production.ERROR: pbx CDR StartTime 2025-03-28 10:40:07 - End Time 2025-03-28 13:40:07 [2025-03-28 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781875', 'tblTempUsageDetail_20' ) start [2025-03-28 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781875', 'tblTempUsageDetail_20' ) end [2025-03-28 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781875', 'tblTempVendorCDR_20' ) start [2025-03-28 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781875', 'tblTempVendorCDR_20' ) end [2025-03-28 13:40:23] Production.INFO: ProcessCDR(1,14781875,1,1,2) [2025-03-28 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781875', 'tblTempUsageDetail_20' ) start [2025-03-28 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781875', 'tblTempUsageDetail_20' ) end [2025-03-28 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:40:28] Production.INFO: ==2630== Releasing lock... [2025-03-28 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:40:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:41:06 [end_date_ymd] => 2025-03-28 13:41:06 [RateCDR] => 1 ) [2025-03-28 13:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:41:06' and `end` < '2025-03-28 13:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:41:20] Production.INFO: count ==5153 [2025-03-28 13:41:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:41:06 - End Time 2025-03-28 13:41:06 [2025-03-28 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781880', 'tblTempUsageDetail_20' ) start [2025-03-28 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781880', 'tblTempUsageDetail_20' ) end [2025-03-28 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781880', 'tblTempVendorCDR_20' ) start [2025-03-28 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781880', 'tblTempVendorCDR_20' ) end [2025-03-28 13:41:22] Production.INFO: ProcessCDR(1,14781880,1,1,2) [2025-03-28 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781880', 'tblTempUsageDetail_20' ) start [2025-03-28 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781880', 'tblTempUsageDetail_20' ) end [2025-03-28 13:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:41:28] Production.INFO: ==2732== Releasing lock... [2025-03-28 13:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:41:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:42:05 [end_date_ymd] => 2025-03-28 13:42:05 [RateCDR] => 1 ) [2025-03-28 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-28 10:42:05' and `end` < '2025-03-28 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-28 13:42:19] Production.INFO: count ==5168 [2025-03-28 13:42:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:42:05 - End Time 2025-03-28 13:42:05 [2025-03-28 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781885', 'tblTempUsageDetail_20' ) start [2025-03-28 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781885', 'tblTempUsageDetail_20' ) end [2025-03-28 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781885', 'tblTempVendorCDR_20' ) start [2025-03-28 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781885', 'tblTempVendorCDR_20' ) end [2025-03-28 13:42:22] Production.INFO: ProcessCDR(1,14781885,1,1,2) [2025-03-28 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781885', 'tblTempUsageDetail_20' ) start [2025-03-28 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781885', 'tblTempUsageDetail_20' ) end [2025-03-28 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:42:28] Production.INFO: ==2834== Releasing lock... [2025-03-28 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:42:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:43:06 [end_date_ymd] => 2025-03-28 13:43:06 [RateCDR] => 1 ) [2025-03-28 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:43:06' and `end` < '2025-03-28 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:43:20] Production.INFO: count ==5172 [2025-03-28 13:43:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:43:06 - End Time 2025-03-28 13:43:06 [2025-03-28 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781890', 'tblTempUsageDetail_20' ) start [2025-03-28 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781890', 'tblTempUsageDetail_20' ) end [2025-03-28 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781890', 'tblTempVendorCDR_20' ) start [2025-03-28 13:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781890', 'tblTempVendorCDR_20' ) end [2025-03-28 13:43:23] Production.INFO: ProcessCDR(1,14781890,1,1,2) [2025-03-28 13:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781890', 'tblTempUsageDetail_20' ) start [2025-03-28 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781890', 'tblTempUsageDetail_20' ) end [2025-03-28 13:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:43:28] Production.INFO: ==2946== Releasing lock... [2025-03-28 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:43:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:44:06 [end_date_ymd] => 2025-03-28 13:44:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:44:06' and `end` < '2025-03-28 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-28 13:44:20] Production.INFO: count ==5172 [2025-03-28 13:44:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:44:06 - End Time 2025-03-28 13:44:06 [2025-03-28 13:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781895', 'tblTempUsageDetail_20' ) start [2025-03-28 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781895', 'tblTempUsageDetail_20' ) end [2025-03-28 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781895', 'tblTempVendorCDR_20' ) start [2025-03-28 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781895', 'tblTempVendorCDR_20' ) end [2025-03-28 13:44:22] Production.INFO: ProcessCDR(1,14781895,1,1,2) [2025-03-28 13:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781895', 'tblTempUsageDetail_20' ) start [2025-03-28 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781895', 'tblTempUsageDetail_20' ) end [2025-03-28 13:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:44:28] Production.INFO: ==3050== Releasing lock... [2025-03-28 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:44:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:45:06 [end_date_ymd] => 2025-03-28 13:45:06 [RateCDR] => 1 ) [2025-03-28 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:45:06' and `end` < '2025-03-28 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:45:20] Production.INFO: count ==5193 [2025-03-28 13:45:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:45:06 - End Time 2025-03-28 13:45:06 [2025-03-28 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781900', 'tblTempUsageDetail_20' ) start [2025-03-28 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781900', 'tblTempUsageDetail_20' ) end [2025-03-28 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781900', 'tblTempVendorCDR_20' ) start [2025-03-28 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781900', 'tblTempVendorCDR_20' ) end [2025-03-28 13:45:22] Production.INFO: ProcessCDR(1,14781900,1,1,2) [2025-03-28 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781900', 'tblTempUsageDetail_20' ) start [2025-03-28 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781900', 'tblTempUsageDetail_20' ) end [2025-03-28 13:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:45:28] Production.INFO: ==3155== Releasing lock... [2025-03-28 13:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:45:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:46:06 [end_date_ymd] => 2025-03-28 13:46:06 [RateCDR] => 1 ) [2025-03-28 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:46:06' and `end` < '2025-03-28 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:46:19] Production.INFO: count ==5201 [2025-03-28 13:46:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:46:06 - End Time 2025-03-28 13:46:06 [2025-03-28 13:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781905', 'tblTempUsageDetail_20' ) start [2025-03-28 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781905', 'tblTempUsageDetail_20' ) end [2025-03-28 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781905', 'tblTempVendorCDR_20' ) start [2025-03-28 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781905', 'tblTempVendorCDR_20' ) end [2025-03-28 13:46:22] Production.INFO: ProcessCDR(1,14781905,1,1,2) [2025-03-28 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781905', 'tblTempUsageDetail_20' ) start [2025-03-28 13:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781905', 'tblTempUsageDetail_20' ) end [2025-03-28 13:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:46:28] Production.INFO: ==3264== Releasing lock... [2025-03-28 13:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:46:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:47:06 [end_date_ymd] => 2025-03-28 13:47:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:47:06' and `end` < '2025-03-28 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-28 13:47:20] Production.INFO: count ==5207 [2025-03-28 13:47:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:47:06 - End Time 2025-03-28 13:47:06 [2025-03-28 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781910', 'tblTempUsageDetail_20' ) start [2025-03-28 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781910', 'tblTempUsageDetail_20' ) end [2025-03-28 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781910', 'tblTempVendorCDR_20' ) start [2025-03-28 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781910', 'tblTempVendorCDR_20' ) end [2025-03-28 13:47:23] Production.INFO: ProcessCDR(1,14781910,1,1,2) [2025-03-28 13:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781910', 'tblTempUsageDetail_20' ) start [2025-03-28 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781910', 'tblTempUsageDetail_20' ) end [2025-03-28 13:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:47:28] Production.INFO: ==3371== Releasing lock... [2025-03-28 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:47:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:48:05 [end_date_ymd] => 2025-03-28 13:48:05 [RateCDR] => 1 ) [2025-03-28 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-28 10:48:05' and `end` < '2025-03-28 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-28 13:48:19] Production.INFO: count ==5210 [2025-03-28 13:48:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:48:05 - End Time 2025-03-28 13:48:05 [2025-03-28 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781915', 'tblTempUsageDetail_20' ) start [2025-03-28 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781915', 'tblTempUsageDetail_20' ) end [2025-03-28 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781915', 'tblTempVendorCDR_20' ) start [2025-03-28 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781915', 'tblTempVendorCDR_20' ) end [2025-03-28 13:48:22] Production.INFO: ProcessCDR(1,14781915,1,1,2) [2025-03-28 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781915', 'tblTempUsageDetail_20' ) start [2025-03-28 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781915', 'tblTempUsageDetail_20' ) end [2025-03-28 13:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:48:28] Production.INFO: ==3476== Releasing lock... [2025-03-28 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:48:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:49:06 [end_date_ymd] => 2025-03-28 13:49:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:49:06' and `end` < '2025-03-28 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-28 13:49:20] Production.INFO: count ==5215 [2025-03-28 13:49:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:49:06 - End Time 2025-03-28 13:49:06 [2025-03-28 13:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781920', 'tblTempUsageDetail_20' ) start [2025-03-28 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781920', 'tblTempUsageDetail_20' ) end [2025-03-28 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781920', 'tblTempVendorCDR_20' ) start [2025-03-28 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781920', 'tblTempVendorCDR_20' ) end [2025-03-28 13:49:23] Production.INFO: ProcessCDR(1,14781920,1,1,2) [2025-03-28 13:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781920', 'tblTempUsageDetail_20' ) start [2025-03-28 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781920', 'tblTempUsageDetail_20' ) end [2025-03-28 13:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:49:28] Production.INFO: ==3577== Releasing lock... [2025-03-28 13:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:49:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 13:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:50:07 [end_date_ymd] => 2025-03-28 13:50:07 [RateCDR] => 1 ) [2025-03-28 13:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:50:07' and `end` < '2025-03-28 13:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:50:21] Production.INFO: count ==5236 [2025-03-28 13:50:23] Production.ERROR: pbx CDR StartTime 2025-03-28 10:50:07 - End Time 2025-03-28 13:50:07 [2025-03-28 13:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781926', 'tblTempUsageDetail_20' ) start [2025-03-28 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781926', 'tblTempUsageDetail_20' ) end [2025-03-28 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781926', 'tblTempVendorCDR_20' ) start [2025-03-28 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781926', 'tblTempVendorCDR_20' ) end [2025-03-28 13:50:23] Production.INFO: ProcessCDR(1,14781926,1,1,2) [2025-03-28 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781926', 'tblTempUsageDetail_20' ) start [2025-03-28 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781926', 'tblTempUsageDetail_20' ) end [2025-03-28 13:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:50:30] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:50:30] Production.INFO: ==3681== Releasing lock... [2025-03-28 13:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:50:30] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 13:51:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:51:07 [end_date_ymd] => 2025-03-28 13:51:07 [RateCDR] => 1 ) [2025-03-28 13:51:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:51:07' and `end` < '2025-03-28 13:51:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:51:20] Production.INFO: count ==5245 [2025-03-28 13:51:23] Production.ERROR: pbx CDR StartTime 2025-03-28 10:51:07 - End Time 2025-03-28 13:51:07 [2025-03-28 13:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781931', 'tblTempUsageDetail_20' ) start [2025-03-28 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781931', 'tblTempUsageDetail_20' ) end [2025-03-28 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781931', 'tblTempVendorCDR_20' ) start [2025-03-28 13:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781931', 'tblTempVendorCDR_20' ) end [2025-03-28 13:51:23] Production.INFO: ProcessCDR(1,14781931,1,1,2) [2025-03-28 13:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781931', 'tblTempUsageDetail_20' ) start [2025-03-28 13:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781931', 'tblTempUsageDetail_20' ) end [2025-03-28 13:51:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:51:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:51:29] Production.INFO: ==3828== Releasing lock... [2025-03-28 13:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:51:29] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:52:06 [end_date_ymd] => 2025-03-28 13:52:06 [RateCDR] => 1 ) [2025-03-28 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:52:06' and `end` < '2025-03-28 13:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:52:20] Production.INFO: count ==5209 [2025-03-28 13:52:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:52:06 - End Time 2025-03-28 13:52:06 [2025-03-28 13:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781936', 'tblTempUsageDetail_20' ) start [2025-03-28 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781936', 'tblTempUsageDetail_20' ) end [2025-03-28 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781936', 'tblTempVendorCDR_20' ) start [2025-03-28 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781936', 'tblTempVendorCDR_20' ) end [2025-03-28 13:52:22] Production.INFO: ProcessCDR(1,14781936,1,1,2) [2025-03-28 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781936', 'tblTempUsageDetail_20' ) start [2025-03-28 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781936', 'tblTempUsageDetail_20' ) end [2025-03-28 13:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:52:28] Production.INFO: ==3929== Releasing lock... [2025-03-28 13:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:52:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:53:06 [end_date_ymd] => 2025-03-28 13:53:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:53:06' and `end` < '2025-03-28 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-28 13:53:19] Production.INFO: count ==5189 [2025-03-28 13:53:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:53:06 - End Time 2025-03-28 13:53:06 [2025-03-28 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781941', 'tblTempUsageDetail_20' ) start [2025-03-28 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781941', 'tblTempUsageDetail_20' ) end [2025-03-28 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781941', 'tblTempVendorCDR_20' ) start [2025-03-28 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781941', 'tblTempVendorCDR_20' ) end [2025-03-28 13:53:22] Production.INFO: ProcessCDR(1,14781941,1,1,2) [2025-03-28 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781941', 'tblTempUsageDetail_20' ) start [2025-03-28 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781941', 'tblTempUsageDetail_20' ) end [2025-03-28 13:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:53:28] Production.INFO: ==4032== Releasing lock... [2025-03-28 13:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:53:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:54:06 [end_date_ymd] => 2025-03-28 13:54:06 [RateCDR] => 1 ) [2025-03-28 13:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:54:06' and `end` < '2025-03-28 13:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:54:19] Production.INFO: count ==5202 [2025-03-28 13:54:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:54:06 - End Time 2025-03-28 13:54:06 [2025-03-28 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781946', 'tblTempUsageDetail_20' ) start [2025-03-28 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781946', 'tblTempUsageDetail_20' ) end [2025-03-28 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781946', 'tblTempVendorCDR_20' ) start [2025-03-28 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781946', 'tblTempVendorCDR_20' ) end [2025-03-28 13:54:22] Production.INFO: ProcessCDR(1,14781946,1,1,2) [2025-03-28 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781946', 'tblTempUsageDetail_20' ) start [2025-03-28 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781946', 'tblTempUsageDetail_20' ) end [2025-03-28 13:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:54:28] Production.INFO: ==4135== Releasing lock... [2025-03-28 13:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:54:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:55:05 [end_date_ymd] => 2025-03-28 13:55:05 [RateCDR] => 1 ) [2025-03-28 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 10:55:05' and `end` < '2025-03-28 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 13:55:19] Production.INFO: count ==5191 [2025-03-28 13:55:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:55:05 - End Time 2025-03-28 13:55:05 [2025-03-28 13:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781951', 'tblTempUsageDetail_20' ) start [2025-03-28 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781951', 'tblTempUsageDetail_20' ) end [2025-03-28 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781951', 'tblTempVendorCDR_20' ) start [2025-03-28 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781951', 'tblTempVendorCDR_20' ) end [2025-03-28 13:55:22] Production.INFO: ProcessCDR(1,14781951,1,1,2) [2025-03-28 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781951', 'tblTempUsageDetail_20' ) start [2025-03-28 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781951', 'tblTempUsageDetail_20' ) end [2025-03-28 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:55:28] Production.INFO: ==4234== Releasing lock... [2025-03-28 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:55:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:56:06 [end_date_ymd] => 2025-03-28 13:56:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:56:06' and `end` < '2025-03-28 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-28 13:56:20] Production.INFO: count ==5182 [2025-03-28 13:56:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:56:06 - End Time 2025-03-28 13:56:06 [2025-03-28 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781956', 'tblTempUsageDetail_20' ) start [2025-03-28 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781956', 'tblTempUsageDetail_20' ) end [2025-03-28 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781956', 'tblTempVendorCDR_20' ) start [2025-03-28 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781956', 'tblTempVendorCDR_20' ) end [2025-03-28 13:56:22] Production.INFO: ProcessCDR(1,14781956,1,1,2) [2025-03-28 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781956', 'tblTempUsageDetail_20' ) start [2025-03-28 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781956', 'tblTempUsageDetail_20' ) end [2025-03-28 13:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:56:28] Production.INFO: ==4335== Releasing lock... [2025-03-28 13:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:56:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:57:05 [end_date_ymd] => 2025-03-28 13:57:05 [RateCDR] => 1 ) [2025-03-28 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-28 10:57:05' and `end` < '2025-03-28 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-28 13:57:19] Production.INFO: count ==5191 [2025-03-28 13:57:21] Production.ERROR: pbx CDR StartTime 2025-03-28 10:57:05 - End Time 2025-03-28 13:57:05 [2025-03-28 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781961', 'tblTempUsageDetail_20' ) start [2025-03-28 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781961', 'tblTempUsageDetail_20' ) end [2025-03-28 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781961', 'tblTempVendorCDR_20' ) start [2025-03-28 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781961', 'tblTempVendorCDR_20' ) end [2025-03-28 13:57:22] Production.INFO: ProcessCDR(1,14781961,1,1,2) [2025-03-28 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781961', 'tblTempUsageDetail_20' ) start [2025-03-28 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781961', 'tblTempUsageDetail_20' ) end [2025-03-28 13:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:57:28] Production.INFO: ==4436== Releasing lock... [2025-03-28 13:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:57:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:58:06 [end_date_ymd] => 2025-03-28 13:58:06 [RateCDR] => 1 ) [2025-03-28 13: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-28 10:58:06' and `end` < '2025-03-28 13: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-28 13:58:20] Production.INFO: count ==5214 [2025-03-28 13:58:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:58:06 - End Time 2025-03-28 13:58:06 [2025-03-28 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781966', 'tblTempUsageDetail_20' ) start [2025-03-28 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781966', 'tblTempUsageDetail_20' ) end [2025-03-28 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781966', 'tblTempVendorCDR_20' ) start [2025-03-28 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781966', 'tblTempVendorCDR_20' ) end [2025-03-28 13:58:23] Production.INFO: ProcessCDR(1,14781966,1,1,2) [2025-03-28 13:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781966', 'tblTempUsageDetail_20' ) start [2025-03-28 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781966', 'tblTempUsageDetail_20' ) end [2025-03-28 13:58:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:58:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:58:29] Production.INFO: ==4544== Releasing lock... [2025-03-28 13:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:58:29] Production.INFO: 67 MB #Memory Used# [2025-03-28 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 10:59:06 [end_date_ymd] => 2025-03-28 13:59:06 [RateCDR] => 1 ) [2025-03-28 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-28 10:59:06' and `end` < '2025-03-28 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-28 13:59:19] Production.INFO: count ==5227 [2025-03-28 13:59:22] Production.ERROR: pbx CDR StartTime 2025-03-28 10:59:06 - End Time 2025-03-28 13:59:06 [2025-03-28 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781971', 'tblTempUsageDetail_20' ) start [2025-03-28 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781971', 'tblTempUsageDetail_20' ) end [2025-03-28 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781971', 'tblTempVendorCDR_20' ) start [2025-03-28 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781971', 'tblTempVendorCDR_20' ) end [2025-03-28 13:59:22] Production.INFO: ProcessCDR(1,14781971,1,1,2) [2025-03-28 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781971', 'tblTempUsageDetail_20' ) start [2025-03-28 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781971', 'tblTempUsageDetail_20' ) end [2025-03-28 13:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 13:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 13:59:28] Production.INFO: ==4651== Releasing lock... [2025-03-28 13:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 13:59:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:00:07 [end_date_ymd] => 2025-03-28 14:00:07 [RateCDR] => 1 ) [2025-03-28 14: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-28 11:00:07' and `end` < '2025-03-28 14: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-28 14:00:21] Production.INFO: count ==5226 [2025-03-28 14:00:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:00:07 - End Time 2025-03-28 14:00:07 [2025-03-28 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781977', 'tblTempUsageDetail_20' ) start [2025-03-28 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781977', 'tblTempUsageDetail_20' ) end [2025-03-28 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781977', 'tblTempVendorCDR_20' ) start [2025-03-28 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781977', 'tblTempVendorCDR_20' ) end [2025-03-28 14:00:23] Production.INFO: ProcessCDR(1,14781977,1,1,2) [2025-03-28 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781977', 'tblTempUsageDetail_20' ) start [2025-03-28 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781977', 'tblTempUsageDetail_20' ) end [2025-03-28 14:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:00:29] Production.INFO: ==4761== Releasing lock... [2025-03-28 14:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:00:29] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:01:06 [end_date_ymd] => 2025-03-28 14:01:06 [RateCDR] => 1 ) [2025-03-28 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-28 11:01:06' and `end` < '2025-03-28 14: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-28 14:01:19] Production.INFO: count ==5234 [2025-03-28 14:01:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:01:06 - End Time 2025-03-28 14:01:06 [2025-03-28 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781982', 'tblTempUsageDetail_20' ) start [2025-03-28 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781982', 'tblTempUsageDetail_20' ) end [2025-03-28 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781982', 'tblTempVendorCDR_20' ) start [2025-03-28 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781982', 'tblTempVendorCDR_20' ) end [2025-03-28 14:01:22] Production.INFO: ProcessCDR(1,14781982,1,1,2) [2025-03-28 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781982', 'tblTempUsageDetail_20' ) start [2025-03-28 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781982', 'tblTempUsageDetail_20' ) end [2025-03-28 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:01:28] Production.INFO: ==4873== Releasing lock... [2025-03-28 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:01:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:02:06 [end_date_ymd] => 2025-03-28 14:02:06 [RateCDR] => 1 ) [2025-03-28 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:02:06' and `end` < '2025-03-28 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:02:19] Production.INFO: count ==5248 [2025-03-28 14:02:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:02:06 - End Time 2025-03-28 14:02:06 [2025-03-28 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781987', 'tblTempUsageDetail_20' ) start [2025-03-28 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781987', 'tblTempUsageDetail_20' ) end [2025-03-28 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781987', 'tblTempVendorCDR_20' ) start [2025-03-28 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781987', 'tblTempVendorCDR_20' ) end [2025-03-28 14:02:22] Production.INFO: ProcessCDR(1,14781987,1,1,2) [2025-03-28 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781987', 'tblTempUsageDetail_20' ) start [2025-03-28 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781987', 'tblTempUsageDetail_20' ) end [2025-03-28 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:02:28] Production.INFO: ==4978== Releasing lock... [2025-03-28 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:02:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:03:05 [end_date_ymd] => 2025-03-28 14:03:05 [RateCDR] => 1 ) [2025-03-28 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:03:05' and `end` < '2025-03-28 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:03:19] Production.INFO: count ==5258 [2025-03-28 14:03:21] Production.ERROR: pbx CDR StartTime 2025-03-28 11:03:05 - End Time 2025-03-28 14:03:05 [2025-03-28 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781992', 'tblTempUsageDetail_20' ) start [2025-03-28 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781992', 'tblTempUsageDetail_20' ) end [2025-03-28 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781992', 'tblTempVendorCDR_20' ) start [2025-03-28 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781992', 'tblTempVendorCDR_20' ) end [2025-03-28 14:03:21] Production.INFO: ProcessCDR(1,14781992,1,1,2) [2025-03-28 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781992', 'tblTempUsageDetail_20' ) start [2025-03-28 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781992', 'tblTempUsageDetail_20' ) end [2025-03-28 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:03:27] Production.INFO: ==5080== Releasing lock... [2025-03-28 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:03:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:04:06 [end_date_ymd] => 2025-03-28 14:04:06 [RateCDR] => 1 ) [2025-03-28 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:04:06' and `end` < '2025-03-28 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:04:20] Production.INFO: count ==5251 [2025-03-28 14:04:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:04:06 - End Time 2025-03-28 14:04:06 [2025-03-28 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781997', 'tblTempUsageDetail_20' ) start [2025-03-28 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14781997', 'tblTempUsageDetail_20' ) end [2025-03-28 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781997', 'tblTempVendorCDR_20' ) start [2025-03-28 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14781997', 'tblTempVendorCDR_20' ) end [2025-03-28 14:04:22] Production.INFO: ProcessCDR(1,14781997,1,1,2) [2025-03-28 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14781997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14781997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14781997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14781997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781997', 'tblTempUsageDetail_20' ) start [2025-03-28 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14781997', 'tblTempUsageDetail_20' ) end [2025-03-28 14:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:04:28] Production.INFO: ==5193== Releasing lock... [2025-03-28 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:04:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:05:05 [end_date_ymd] => 2025-03-28 14:05:05 [RateCDR] => 1 ) [2025-03-28 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:05:05' and `end` < '2025-03-28 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:05:19] Production.INFO: count ==5226 [2025-03-28 14:05:21] Production.ERROR: pbx CDR StartTime 2025-03-28 11:05:05 - End Time 2025-03-28 14:05:05 [2025-03-28 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782002', 'tblTempUsageDetail_20' ) start [2025-03-28 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782002', 'tblTempUsageDetail_20' ) end [2025-03-28 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782002', 'tblTempVendorCDR_20' ) start [2025-03-28 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782002', 'tblTempVendorCDR_20' ) end [2025-03-28 14:05:22] Production.INFO: ProcessCDR(1,14782002,1,1,2) [2025-03-28 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782002', 'tblTempUsageDetail_20' ) start [2025-03-28 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782002', 'tblTempUsageDetail_20' ) end [2025-03-28 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:05:28] Production.INFO: ==5291== Releasing lock... [2025-03-28 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:05:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:06:06 [end_date_ymd] => 2025-03-28 14:06:06 [RateCDR] => 1 ) [2025-03-28 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:06:06' and `end` < '2025-03-28 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:06:20] Production.INFO: count ==5222 [2025-03-28 14:06:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:06:06 - End Time 2025-03-28 14:06:06 [2025-03-28 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782007', 'tblTempUsageDetail_20' ) start [2025-03-28 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782007', 'tblTempUsageDetail_20' ) end [2025-03-28 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782007', 'tblTempVendorCDR_20' ) start [2025-03-28 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782007', 'tblTempVendorCDR_20' ) end [2025-03-28 14:06:22] Production.INFO: ProcessCDR(1,14782007,1,1,2) [2025-03-28 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782007', 'tblTempUsageDetail_20' ) start [2025-03-28 14:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782007', 'tblTempUsageDetail_20' ) end [2025-03-28 14:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:06:28] Production.INFO: ==5426== Releasing lock... [2025-03-28 14:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:06:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:07:06 [end_date_ymd] => 2025-03-28 14:07:06 [RateCDR] => 1 ) [2025-03-28 14:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:07:06' and `end` < '2025-03-28 14:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:07:19] Production.INFO: count ==5205 [2025-03-28 14:07:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:07:06 - End Time 2025-03-28 14:07:06 [2025-03-28 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782012', 'tblTempUsageDetail_20' ) start [2025-03-28 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782012', 'tblTempUsageDetail_20' ) end [2025-03-28 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782012', 'tblTempVendorCDR_20' ) start [2025-03-28 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782012', 'tblTempVendorCDR_20' ) end [2025-03-28 14:07:22] Production.INFO: ProcessCDR(1,14782012,1,1,2) [2025-03-28 14:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782012', 'tblTempUsageDetail_20' ) start [2025-03-28 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782012', 'tblTempUsageDetail_20' ) end [2025-03-28 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:07:28] Production.INFO: ==5528== Releasing lock... [2025-03-28 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:07:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:08:06 [end_date_ymd] => 2025-03-28 14:08:06 [RateCDR] => 1 ) [2025-03-28 14: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-28 11:08:06' and `end` < '2025-03-28 14: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-28 14:08:20] Production.INFO: count ==5206 [2025-03-28 14:08:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:08:06 - End Time 2025-03-28 14:08:06 [2025-03-28 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782017', 'tblTempUsageDetail_20' ) start [2025-03-28 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782017', 'tblTempUsageDetail_20' ) end [2025-03-28 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782017', 'tblTempVendorCDR_20' ) start [2025-03-28 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782017', 'tblTempVendorCDR_20' ) end [2025-03-28 14:08:22] Production.INFO: ProcessCDR(1,14782017,1,1,2) [2025-03-28 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782017', 'tblTempUsageDetail_20' ) start [2025-03-28 14:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782017', 'tblTempUsageDetail_20' ) end [2025-03-28 14:08:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:08:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:08:29] Production.INFO: ==5632== Releasing lock... [2025-03-28 14:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:08:29] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:09:05 [end_date_ymd] => 2025-03-28 14:09:05 [RateCDR] => 1 ) [2025-03-28 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:09:05' and `end` < '2025-03-28 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:09:19] Production.INFO: count ==5194 [2025-03-28 14:09:21] Production.ERROR: pbx CDR StartTime 2025-03-28 11:09:05 - End Time 2025-03-28 14:09:05 [2025-03-28 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782022', 'tblTempUsageDetail_20' ) start [2025-03-28 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782022', 'tblTempUsageDetail_20' ) end [2025-03-28 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782022', 'tblTempVendorCDR_20' ) start [2025-03-28 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782022', 'tblTempVendorCDR_20' ) end [2025-03-28 14:09:22] Production.INFO: ProcessCDR(1,14782022,1,1,2) [2025-03-28 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782022', 'tblTempUsageDetail_20' ) start [2025-03-28 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782022', 'tblTempUsageDetail_20' ) end [2025-03-28 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:09:27] Production.INFO: ==5726== Releasing lock... [2025-03-28 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:09:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:10:07 [end_date_ymd] => 2025-03-28 14:10:07 [RateCDR] => 1 ) [2025-03-28 14:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:10:07' and `end` < '2025-03-28 14:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:10:21] Production.INFO: count ==5184 [2025-03-28 14:10:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:10:07 - End Time 2025-03-28 14:10:07 [2025-03-28 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782027', 'tblTempUsageDetail_20' ) start [2025-03-28 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782027', 'tblTempUsageDetail_20' ) end [2025-03-28 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782027', 'tblTempVendorCDR_20' ) start [2025-03-28 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782027', 'tblTempVendorCDR_20' ) end [2025-03-28 14:10:24] Production.INFO: ProcessCDR(1,14782027,1,1,2) [2025-03-28 14:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782027', 'tblTempUsageDetail_20' ) start [2025-03-28 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782027', 'tblTempUsageDetail_20' ) end [2025-03-28 14:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:10:29] Production.INFO: ==5821== Releasing lock... [2025-03-28 14:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:10:29] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:11:06 [end_date_ymd] => 2025-03-28 14:11:06 [RateCDR] => 1 ) [2025-03-28 14:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:11:06' and `end` < '2025-03-28 14:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:11:19] Production.INFO: count ==5181 [2025-03-28 14:11:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:11:06 - End Time 2025-03-28 14:11:06 [2025-03-28 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782033', 'tblTempUsageDetail_20' ) start [2025-03-28 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782033', 'tblTempUsageDetail_20' ) end [2025-03-28 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782033', 'tblTempVendorCDR_20' ) start [2025-03-28 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782033', 'tblTempVendorCDR_20' ) end [2025-03-28 14:11:22] Production.INFO: ProcessCDR(1,14782033,1,1,2) [2025-03-28 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782033', 'tblTempUsageDetail_20' ) start [2025-03-28 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782033', 'tblTempUsageDetail_20' ) end [2025-03-28 14:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:11:28] Production.INFO: ==5914== Releasing lock... [2025-03-28 14:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:11:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:12:06 [end_date_ymd] => 2025-03-28 14:12:06 [RateCDR] => 1 ) [2025-03-28 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:12:06' and `end` < '2025-03-28 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:12:20] Production.INFO: count ==5185 [2025-03-28 14:12:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:12:06 - End Time 2025-03-28 14:12:06 [2025-03-28 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782038', 'tblTempUsageDetail_20' ) start [2025-03-28 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782038', 'tblTempUsageDetail_20' ) end [2025-03-28 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782038', 'tblTempVendorCDR_20' ) start [2025-03-28 14:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782038', 'tblTempVendorCDR_20' ) end [2025-03-28 14:12:23] Production.INFO: ProcessCDR(1,14782038,1,1,2) [2025-03-28 14:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782038', 'tblTempUsageDetail_20' ) start [2025-03-28 14:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782038', 'tblTempUsageDetail_20' ) end [2025-03-28 14:12:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:12:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:12:29] Production.INFO: ==6000== Releasing lock... [2025-03-28 14:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:12:29] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:13:06 [end_date_ymd] => 2025-03-28 14:13:06 [RateCDR] => 1 ) [2025-03-28 14:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:13:06' and `end` < '2025-03-28 14:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:13:19] Production.INFO: count ==5196 [2025-03-28 14:13:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:13:06 - End Time 2025-03-28 14:13:06 [2025-03-28 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782043', 'tblTempUsageDetail_20' ) start [2025-03-28 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782043', 'tblTempUsageDetail_20' ) end [2025-03-28 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782043', 'tblTempVendorCDR_20' ) start [2025-03-28 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782043', 'tblTempVendorCDR_20' ) end [2025-03-28 14:13:22] Production.INFO: ProcessCDR(1,14782043,1,1,2) [2025-03-28 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782043', 'tblTempUsageDetail_20' ) start [2025-03-28 14:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782043', 'tblTempUsageDetail_20' ) end [2025-03-28 14:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:13:28] Production.INFO: ==6086== Releasing lock... [2025-03-28 14:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:13:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:14:06 [end_date_ymd] => 2025-03-28 14:14:06 [RateCDR] => 1 ) [2025-03-28 14: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-28 11:14:06' and `end` < '2025-03-28 14: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-28 14:14:19] Production.INFO: count ==5191 [2025-03-28 14:14:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:14:06 - End Time 2025-03-28 14:14:06 [2025-03-28 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782048', 'tblTempUsageDetail_20' ) start [2025-03-28 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782048', 'tblTempUsageDetail_20' ) end [2025-03-28 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782048', 'tblTempVendorCDR_20' ) start [2025-03-28 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782048', 'tblTempVendorCDR_20' ) end [2025-03-28 14:14:22] Production.INFO: ProcessCDR(1,14782048,1,1,2) [2025-03-28 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782048', 'tblTempUsageDetail_20' ) start [2025-03-28 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782048', 'tblTempUsageDetail_20' ) end [2025-03-28 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:14:27] Production.INFO: ==6175== Releasing lock... [2025-03-28 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:14:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:15:06 [end_date_ymd] => 2025-03-28 14:15:06 [RateCDR] => 1 ) [2025-03-28 14:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:15:06' and `end` < '2025-03-28 14:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:15:19] Production.INFO: count ==5186 [2025-03-28 14:15:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:15:06 - End Time 2025-03-28 14:15:06 [2025-03-28 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782053', 'tblTempUsageDetail_20' ) start [2025-03-28 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782053', 'tblTempUsageDetail_20' ) end [2025-03-28 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782053', 'tblTempVendorCDR_20' ) start [2025-03-28 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782053', 'tblTempVendorCDR_20' ) end [2025-03-28 14:15:22] Production.INFO: ProcessCDR(1,14782053,1,1,2) [2025-03-28 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782053', 'tblTempUsageDetail_20' ) start [2025-03-28 14:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782053', 'tblTempUsageDetail_20' ) end [2025-03-28 14:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:15:28] Production.INFO: ==6264== Releasing lock... [2025-03-28 14:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:15:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:16:06 [end_date_ymd] => 2025-03-28 14:16:06 [RateCDR] => 1 ) [2025-03-28 14:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:16:06' and `end` < '2025-03-28 14:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:16:20] Production.INFO: count ==5195 [2025-03-28 14:16:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:16:06 - End Time 2025-03-28 14:16:06 [2025-03-28 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782058', 'tblTempUsageDetail_20' ) start [2025-03-28 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782058', 'tblTempUsageDetail_20' ) end [2025-03-28 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782058', 'tblTempVendorCDR_20' ) start [2025-03-28 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782058', 'tblTempVendorCDR_20' ) end [2025-03-28 14:16:22] Production.INFO: ProcessCDR(1,14782058,1,1,2) [2025-03-28 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782058', 'tblTempUsageDetail_20' ) start [2025-03-28 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782058', 'tblTempUsageDetail_20' ) end [2025-03-28 14:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:16:28] Production.INFO: ==6357== Releasing lock... [2025-03-28 14:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:16:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:17:06 [end_date_ymd] => 2025-03-28 14:17:06 [RateCDR] => 1 ) [2025-03-28 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:17:06' and `end` < '2025-03-28 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:17:20] Production.INFO: count ==5210 [2025-03-28 14:17:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:17:06 - End Time 2025-03-28 14:17:06 [2025-03-28 14:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782063', 'tblTempUsageDetail_20' ) start [2025-03-28 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782063', 'tblTempUsageDetail_20' ) end [2025-03-28 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782063', 'tblTempVendorCDR_20' ) start [2025-03-28 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782063', 'tblTempVendorCDR_20' ) end [2025-03-28 14:17:23] Production.INFO: ProcessCDR(1,14782063,1,1,2) [2025-03-28 14:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782063', 'tblTempUsageDetail_20' ) start [2025-03-28 14:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782063', 'tblTempUsageDetail_20' ) end [2025-03-28 14:17:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:17:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:17:29] Production.INFO: ==6446== Releasing lock... [2025-03-28 14:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:17:29] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:18:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:18:06 [end_date_ymd] => 2025-03-28 14:18:06 [RateCDR] => 1 ) [2025-03-28 14:18: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-28 11:18:06' and `end` < '2025-03-28 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-28 14:18:20] Production.INFO: count ==5238 [2025-03-28 14:18:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:18:06 - End Time 2025-03-28 14:18:06 [2025-03-28 14:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782068', 'tblTempUsageDetail_20' ) start [2025-03-28 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782068', 'tblTempUsageDetail_20' ) end [2025-03-28 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782068', 'tblTempVendorCDR_20' ) start [2025-03-28 14:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782068', 'tblTempVendorCDR_20' ) end [2025-03-28 14:18:23] Production.INFO: ProcessCDR(1,14782068,1,1,2) [2025-03-28 14:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782068', 'tblTempUsageDetail_20' ) start [2025-03-28 14:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782068', 'tblTempUsageDetail_20' ) end [2025-03-28 14:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:18:28] Production.INFO: ==6550== Releasing lock... [2025-03-28 14:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:18:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:19:06 [end_date_ymd] => 2025-03-28 14:19:06 [RateCDR] => 1 ) [2025-03-28 14:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:19:06' and `end` < '2025-03-28 14:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:19:20] Production.INFO: count ==5197 [2025-03-28 14:19:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:19:06 - End Time 2025-03-28 14:19:06 [2025-03-28 14:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782073', 'tblTempUsageDetail_20' ) start [2025-03-28 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782073', 'tblTempUsageDetail_20' ) end [2025-03-28 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782073', 'tblTempVendorCDR_20' ) start [2025-03-28 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782073', 'tblTempVendorCDR_20' ) end [2025-03-28 14:19:22] Production.INFO: ProcessCDR(1,14782073,1,1,2) [2025-03-28 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782073', 'tblTempUsageDetail_20' ) start [2025-03-28 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782073', 'tblTempUsageDetail_20' ) end [2025-03-28 14:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:19:28] Production.INFO: ==6659== Releasing lock... [2025-03-28 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:19:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:20:07 [end_date_ymd] => 2025-03-28 14:20:07 [RateCDR] => 1 ) [2025-03-28 14: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-28 11:20:07' and `end` < '2025-03-28 14: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-28 14:20:20] Production.INFO: count ==5202 [2025-03-28 14:20:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:20:07 - End Time 2025-03-28 14:20:07 [2025-03-28 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782078', 'tblTempUsageDetail_20' ) start [2025-03-28 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782078', 'tblTempUsageDetail_20' ) end [2025-03-28 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782078', 'tblTempVendorCDR_20' ) start [2025-03-28 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782078', 'tblTempVendorCDR_20' ) end [2025-03-28 14:20:23] Production.INFO: ProcessCDR(1,14782078,1,1,2) [2025-03-28 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782078', 'tblTempUsageDetail_20' ) start [2025-03-28 14:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782078', 'tblTempUsageDetail_20' ) end [2025-03-28 14:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:20:30] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:20:30] Production.INFO: ==6772== Releasing lock... [2025-03-28 14:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:20:30] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:21:06 [end_date_ymd] => 2025-03-28 14:21:06 [RateCDR] => 1 ) [2025-03-28 14:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:21:06' and `end` < '2025-03-28 14:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:21:20] Production.INFO: count ==5135 [2025-03-28 14:21:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:21:06 - End Time 2025-03-28 14:21:06 [2025-03-28 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782084', 'tblTempUsageDetail_20' ) start [2025-03-28 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782084', 'tblTempUsageDetail_20' ) end [2025-03-28 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782084', 'tblTempVendorCDR_20' ) start [2025-03-28 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782084', 'tblTempVendorCDR_20' ) end [2025-03-28 14:21:22] Production.INFO: ProcessCDR(1,14782084,1,1,2) [2025-03-28 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782084', 'tblTempUsageDetail_20' ) start [2025-03-28 14:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782084', 'tblTempUsageDetail_20' ) end [2025-03-28 14:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:21:28] Production.INFO: ==6929== Releasing lock... [2025-03-28 14:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:21:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:22:06 [end_date_ymd] => 2025-03-28 14:22:06 [RateCDR] => 1 ) [2025-03-28 14: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-28 11:22:06' and `end` < '2025-03-28 14: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-28 14:22:19] Production.INFO: count ==5104 [2025-03-28 14:22:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:22:06 - End Time 2025-03-28 14:22:06 [2025-03-28 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782089', 'tblTempUsageDetail_20' ) start [2025-03-28 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782089', 'tblTempUsageDetail_20' ) end [2025-03-28 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782089', 'tblTempVendorCDR_20' ) start [2025-03-28 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782089', 'tblTempVendorCDR_20' ) end [2025-03-28 14:22:22] Production.INFO: ProcessCDR(1,14782089,1,1,2) [2025-03-28 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782089', 'tblTempUsageDetail_20' ) start [2025-03-28 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782089', 'tblTempUsageDetail_20' ) end [2025-03-28 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:22:27] Production.INFO: ==7045== Releasing lock... [2025-03-28 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:22:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-28 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:23:06 [end_date_ymd] => 2025-03-28 14:23:06 [RateCDR] => 1 ) [2025-03-28 14:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:23:06' and `end` < '2025-03-28 14:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:23:20] Production.INFO: count ==5083 [2025-03-28 14:23:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:23:06 - End Time 2025-03-28 14:23:06 [2025-03-28 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782094', 'tblTempUsageDetail_20' ) start [2025-03-28 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782094', 'tblTempUsageDetail_20' ) end [2025-03-28 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782094', 'tblTempVendorCDR_20' ) start [2025-03-28 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782094', 'tblTempVendorCDR_20' ) end [2025-03-28 14:23:22] Production.INFO: ProcessCDR(1,14782094,1,1,2) [2025-03-28 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782094', 'tblTempUsageDetail_20' ) start [2025-03-28 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782094', 'tblTempUsageDetail_20' ) end [2025-03-28 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:23:26] Production.INFO: ==7155== Releasing lock... [2025-03-28 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:23:26] Production.INFO: 66 MB #Memory Used# [2025-03-28 14:24:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:24:07 [end_date_ymd] => 2025-03-28 14:24:07 [RateCDR] => 1 ) [2025-03-28 14:24:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:24:07' and `end` < '2025-03-28 14:24:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:24:20] Production.INFO: count ==5073 [2025-03-28 14:24:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:24:07 - End Time 2025-03-28 14:24:07 [2025-03-28 14:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782099', 'tblTempUsageDetail_20' ) start [2025-03-28 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782099', 'tblTempUsageDetail_20' ) end [2025-03-28 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782099', 'tblTempVendorCDR_20' ) start [2025-03-28 14:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782099', 'tblTempVendorCDR_20' ) end [2025-03-28 14:24:23] Production.INFO: ProcessCDR(1,14782099,1,1,2) [2025-03-28 14:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782099', 'tblTempUsageDetail_20' ) start [2025-03-28 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782099', 'tblTempUsageDetail_20' ) end [2025-03-28 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:24:27] Production.INFO: ==7267== Releasing lock... [2025-03-28 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:24:27] Production.INFO: 66 MB #Memory Used# [2025-03-28 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:25:05 [end_date_ymd] => 2025-03-28 14:25:05 [RateCDR] => 1 ) [2025-03-28 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:25:05' and `end` < '2025-03-28 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:25:19] Production.INFO: count ==5052 [2025-03-28 14:25:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:25:05 - End Time 2025-03-28 14:25:05 [2025-03-28 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782104', 'tblTempUsageDetail_20' ) start [2025-03-28 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782104', 'tblTempUsageDetail_20' ) end [2025-03-28 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782104', 'tblTempVendorCDR_20' ) start [2025-03-28 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782104', 'tblTempVendorCDR_20' ) end [2025-03-28 14:25:22] Production.INFO: ProcessCDR(1,14782104,1,1,2) [2025-03-28 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782104', 'tblTempUsageDetail_20' ) start [2025-03-28 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782104', 'tblTempUsageDetail_20' ) end [2025-03-28 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:25:28] Production.INFO: ==7373== Releasing lock... [2025-03-28 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:25:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-28 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:26:05 [end_date_ymd] => 2025-03-28 14:26:05 [RateCDR] => 1 ) [2025-03-28 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-28 11:26:05' and `end` < '2025-03-28 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-28 14:26:19] Production.INFO: count ==5093 [2025-03-28 14:26:21] Production.ERROR: pbx CDR StartTime 2025-03-28 11:26:05 - End Time 2025-03-28 14:26:05 [2025-03-28 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782109', 'tblTempUsageDetail_20' ) start [2025-03-28 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782109', 'tblTempUsageDetail_20' ) end [2025-03-28 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782109', 'tblTempVendorCDR_20' ) start [2025-03-28 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782109', 'tblTempVendorCDR_20' ) end [2025-03-28 14:26:22] Production.INFO: ProcessCDR(1,14782109,1,1,2) [2025-03-28 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782109', 'tblTempUsageDetail_20' ) start [2025-03-28 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782109', 'tblTempUsageDetail_20' ) end [2025-03-28 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:26:28] Production.INFO: ==7485== Releasing lock... [2025-03-28 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:26:28] Production.INFO: 66 MB #Memory Used# [2025-03-28 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:27:06 [end_date_ymd] => 2025-03-28 14:27:06 [RateCDR] => 1 ) [2025-03-28 14:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:27:06' and `end` < '2025-03-28 14:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:27:19] Production.INFO: count ==5086 [2025-03-28 14:27:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:27:06 - End Time 2025-03-28 14:27:06 [2025-03-28 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782114', 'tblTempUsageDetail_20' ) start [2025-03-28 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782114', 'tblTempUsageDetail_20' ) end [2025-03-28 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782114', 'tblTempVendorCDR_20' ) start [2025-03-28 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782114', 'tblTempVendorCDR_20' ) end [2025-03-28 14:27:22] Production.INFO: ProcessCDR(1,14782114,1,1,2) [2025-03-28 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782114', 'tblTempUsageDetail_20' ) start [2025-03-28 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782114', 'tblTempUsageDetail_20' ) end [2025-03-28 14:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:27:28] Production.INFO: ==7593== Releasing lock... [2025-03-28 14:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:27:28] Production.INFO: 66 MB #Memory Used# [2025-03-28 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:28:06 [end_date_ymd] => 2025-03-28 14:28:06 [RateCDR] => 1 ) [2025-03-28 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:28:06' and `end` < '2025-03-28 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:28:20] Production.INFO: count ==5099 [2025-03-28 14:28:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:28:06 - End Time 2025-03-28 14:28:06 [2025-03-28 14:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782119', 'tblTempUsageDetail_20' ) start [2025-03-28 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782119', 'tblTempUsageDetail_20' ) end [2025-03-28 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782119', 'tblTempVendorCDR_20' ) start [2025-03-28 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782119', 'tblTempVendorCDR_20' ) end [2025-03-28 14:28:23] Production.INFO: ProcessCDR(1,14782119,1,1,2) [2025-03-28 14:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782119', 'tblTempUsageDetail_20' ) start [2025-03-28 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782119', 'tblTempUsageDetail_20' ) end [2025-03-28 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:28:28] Production.INFO: ==7704== Releasing lock... [2025-03-28 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:28:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-28 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:29:06 [end_date_ymd] => 2025-03-28 14:29:06 [RateCDR] => 1 ) [2025-03-28 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-28 11:29:06' and `end` < '2025-03-28 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-28 14:29:20] Production.INFO: count ==5105 [2025-03-28 14:29:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:29:06 - End Time 2025-03-28 14:29:06 [2025-03-28 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782124', 'tblTempUsageDetail_20' ) start [2025-03-28 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782124', 'tblTempUsageDetail_20' ) end [2025-03-28 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782124', 'tblTempVendorCDR_20' ) start [2025-03-28 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782124', 'tblTempVendorCDR_20' ) end [2025-03-28 14:29:22] Production.INFO: ProcessCDR(1,14782124,1,1,2) [2025-03-28 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782124', 'tblTempUsageDetail_20' ) start [2025-03-28 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782124', 'tblTempUsageDetail_20' ) end [2025-03-28 14:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:29:28] Production.INFO: ==7810== Releasing lock... [2025-03-28 14:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:29:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-28 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:30:06 [end_date_ymd] => 2025-03-28 14:30:06 [RateCDR] => 1 ) [2025-03-28 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-28 11:30:06' and `end` < '2025-03-28 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-28 14:30:20] Production.INFO: count ==5162 [2025-03-28 14:30:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:30:06 - End Time 2025-03-28 14:30:06 [2025-03-28 14:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782130', 'tblTempUsageDetail_20' ) start [2025-03-28 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782130', 'tblTempUsageDetail_20' ) end [2025-03-28 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782130', 'tblTempVendorCDR_20' ) start [2025-03-28 14:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782130', 'tblTempVendorCDR_20' ) end [2025-03-28 14:30:23] Production.INFO: ProcessCDR(1,14782130,1,1,2) [2025-03-28 14:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782130', 'tblTempUsageDetail_20' ) start [2025-03-28 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782130', 'tblTempUsageDetail_20' ) end [2025-03-28 14:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:30:29] Production.INFO: ==7921== Releasing lock... [2025-03-28 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:30:29] Production.INFO: 66.75 MB #Memory Used# [2025-03-28 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:31:06 [end_date_ymd] => 2025-03-28 14:31:06 [RateCDR] => 1 ) [2025-03-28 14: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-28 11:31:06' and `end` < '2025-03-28 14: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-28 14:31:19] Production.INFO: count ==5229 [2025-03-28 14:31:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:31:06 - End Time 2025-03-28 14:31:06 [2025-03-28 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782135', 'tblTempUsageDetail_20' ) start [2025-03-28 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782135', 'tblTempUsageDetail_20' ) end [2025-03-28 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782135', 'tblTempVendorCDR_20' ) start [2025-03-28 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782135', 'tblTempVendorCDR_20' ) end [2025-03-28 14:31:22] Production.INFO: ProcessCDR(1,14782135,1,1,2) [2025-03-28 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782135', 'tblTempUsageDetail_20' ) start [2025-03-28 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782135', 'tblTempUsageDetail_20' ) end [2025-03-28 14:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:31:28] Production.INFO: ==8029== Releasing lock... [2025-03-28 14:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:31:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:32:05 [end_date_ymd] => 2025-03-28 14:32:05 [RateCDR] => 1 ) [2025-03-28 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-28 11:32:05' and `end` < '2025-03-28 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-28 14:32:19] Production.INFO: count ==5233 [2025-03-28 14:32:21] Production.ERROR: pbx CDR StartTime 2025-03-28 11:32:05 - End Time 2025-03-28 14:32:05 [2025-03-28 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782140', 'tblTempUsageDetail_20' ) start [2025-03-28 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782140', 'tblTempUsageDetail_20' ) end [2025-03-28 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782140', 'tblTempVendorCDR_20' ) start [2025-03-28 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782140', 'tblTempVendorCDR_20' ) end [2025-03-28 14:32:22] Production.INFO: ProcessCDR(1,14782140,1,1,2) [2025-03-28 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782140', 'tblTempUsageDetail_20' ) start [2025-03-28 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782140', 'tblTempUsageDetail_20' ) end [2025-03-28 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:32:28] Production.INFO: ==8135== Releasing lock... [2025-03-28 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:32:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:33:06 [end_date_ymd] => 2025-03-28 14:33:06 [RateCDR] => 1 ) [2025-03-28 14: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-28 11:33:06' and `end` < '2025-03-28 14: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-28 14:33:20] Production.INFO: count ==5243 [2025-03-28 14:33:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:33:06 - End Time 2025-03-28 14:33:06 [2025-03-28 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782145', 'tblTempUsageDetail_20' ) start [2025-03-28 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782145', 'tblTempUsageDetail_20' ) end [2025-03-28 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782145', 'tblTempVendorCDR_20' ) start [2025-03-28 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782145', 'tblTempVendorCDR_20' ) end [2025-03-28 14:33:22] Production.INFO: ProcessCDR(1,14782145,1,1,2) [2025-03-28 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782145', 'tblTempUsageDetail_20' ) start [2025-03-28 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782145', 'tblTempUsageDetail_20' ) end [2025-03-28 14:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:33:28] Production.INFO: ==8250== Releasing lock... [2025-03-28 14:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:33:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:34:05 [end_date_ymd] => 2025-03-28 14:34:05 [RateCDR] => 1 ) [2025-03-28 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-28 11:34:05' and `end` < '2025-03-28 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-28 14:34:19] Production.INFO: count ==5234 [2025-03-28 14:34:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:34:05 - End Time 2025-03-28 14:34:05 [2025-03-28 14:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782150', 'tblTempUsageDetail_20' ) start [2025-03-28 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782150', 'tblTempUsageDetail_20' ) end [2025-03-28 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782150', 'tblTempVendorCDR_20' ) start [2025-03-28 14:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782150', 'tblTempVendorCDR_20' ) end [2025-03-28 14:34:22] Production.INFO: ProcessCDR(1,14782150,1,1,2) [2025-03-28 14:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782150', 'tblTempUsageDetail_20' ) start [2025-03-28 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782150', 'tblTempUsageDetail_20' ) end [2025-03-28 14:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:34:28] Production.INFO: ==8357== Releasing lock... [2025-03-28 14:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:34:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:35:06 [end_date_ymd] => 2025-03-28 14:35:06 [RateCDR] => 1 ) [2025-03-28 14:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:35:06' and `end` < '2025-03-28 14:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:35:19] Production.INFO: count ==5215 [2025-03-28 14:35:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:35:06 - End Time 2025-03-28 14:35:06 [2025-03-28 14:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782155', 'tblTempUsageDetail_20' ) start [2025-03-28 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782155', 'tblTempUsageDetail_20' ) end [2025-03-28 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782155', 'tblTempVendorCDR_20' ) start [2025-03-28 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782155', 'tblTempVendorCDR_20' ) end [2025-03-28 14:35:22] Production.INFO: ProcessCDR(1,14782155,1,1,2) [2025-03-28 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782155', 'tblTempUsageDetail_20' ) start [2025-03-28 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782155', 'tblTempUsageDetail_20' ) end [2025-03-28 14:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:35:28] Production.INFO: ==8472== Releasing lock... [2025-03-28 14:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:35:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:36:05 [end_date_ymd] => 2025-03-28 14:36:05 [RateCDR] => 1 ) [2025-03-28 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:36:05' and `end` < '2025-03-28 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:36:19] Production.INFO: count ==5215 [2025-03-28 14:36:21] Production.ERROR: pbx CDR StartTime 2025-03-28 11:36:05 - End Time 2025-03-28 14:36:05 [2025-03-28 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782160', 'tblTempUsageDetail_20' ) start [2025-03-28 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782160', 'tblTempUsageDetail_20' ) end [2025-03-28 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782160', 'tblTempVendorCDR_20' ) start [2025-03-28 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782160', 'tblTempVendorCDR_20' ) end [2025-03-28 14:36:22] Production.INFO: ProcessCDR(1,14782160,1,1,2) [2025-03-28 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782160', 'tblTempUsageDetail_20' ) start [2025-03-28 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782160', 'tblTempUsageDetail_20' ) end [2025-03-28 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:36:27] Production.INFO: ==8580== Releasing lock... [2025-03-28 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:36:27] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:37:06 [end_date_ymd] => 2025-03-28 14:37:06 [RateCDR] => 1 ) [2025-03-28 14:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:37:06' and `end` < '2025-03-28 14:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:37:20] Production.INFO: count ==5217 [2025-03-28 14:37:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:37:06 - End Time 2025-03-28 14:37:06 [2025-03-28 14:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782165', 'tblTempUsageDetail_20' ) start [2025-03-28 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782165', 'tblTempUsageDetail_20' ) end [2025-03-28 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782165', 'tblTempVendorCDR_20' ) start [2025-03-28 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782165', 'tblTempVendorCDR_20' ) end [2025-03-28 14:37:22] Production.INFO: ProcessCDR(1,14782165,1,1,2) [2025-03-28 14:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782165', 'tblTempUsageDetail_20' ) start [2025-03-28 14:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782165', 'tblTempUsageDetail_20' ) end [2025-03-28 14:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:37:28] Production.INFO: ==8724== Releasing lock... [2025-03-28 14:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:37:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:38:05 [end_date_ymd] => 2025-03-28 14:38:05 [RateCDR] => 1 ) [2025-03-28 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:38:05' and `end` < '2025-03-28 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:38:19] Production.INFO: count ==5213 [2025-03-28 14:38:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:38:05 - End Time 2025-03-28 14:38:05 [2025-03-28 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782170', 'tblTempUsageDetail_20' ) start [2025-03-28 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782170', 'tblTempUsageDetail_20' ) end [2025-03-28 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782170', 'tblTempVendorCDR_20' ) start [2025-03-28 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782170', 'tblTempVendorCDR_20' ) end [2025-03-28 14:38:22] Production.INFO: ProcessCDR(1,14782170,1,1,2) [2025-03-28 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782170', 'tblTempUsageDetail_20' ) start [2025-03-28 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782170', 'tblTempUsageDetail_20' ) end [2025-03-28 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:38:27] Production.INFO: ==8833== Releasing lock... [2025-03-28 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:38:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:39:06 [end_date_ymd] => 2025-03-28 14:39:06 [RateCDR] => 1 ) [2025-03-28 14:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:39:06' and `end` < '2025-03-28 14:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:39:20] Production.INFO: count ==5238 [2025-03-28 14:39:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:39:06 - End Time 2025-03-28 14:39:06 [2025-03-28 14:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782175', 'tblTempUsageDetail_20' ) start [2025-03-28 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782175', 'tblTempUsageDetail_20' ) end [2025-03-28 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782175', 'tblTempVendorCDR_20' ) start [2025-03-28 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782175', 'tblTempVendorCDR_20' ) end [2025-03-28 14:39:23] Production.INFO: ProcessCDR(1,14782175,1,1,2) [2025-03-28 14:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782175', 'tblTempUsageDetail_20' ) start [2025-03-28 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782175', 'tblTempUsageDetail_20' ) end [2025-03-28 14:39:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:39:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:39:29] Production.INFO: ==8942== Releasing lock... [2025-03-28 14:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:39:29] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:40:06 [end_date_ymd] => 2025-03-28 14:40:06 [RateCDR] => 1 ) [2025-03-28 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-28 11:40:06' and `end` < '2025-03-28 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-28 14:40:21] Production.INFO: count ==5242 [2025-03-28 14:40:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:40:06 - End Time 2025-03-28 14:40:06 [2025-03-28 14:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782180', 'tblTempUsageDetail_20' ) start [2025-03-28 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782180', 'tblTempUsageDetail_20' ) end [2025-03-28 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782180', 'tblTempVendorCDR_20' ) start [2025-03-28 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782180', 'tblTempVendorCDR_20' ) end [2025-03-28 14:40:23] Production.INFO: ProcessCDR(1,14782180,1,1,2) [2025-03-28 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782180', 'tblTempUsageDetail_20' ) start [2025-03-28 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782180', 'tblTempUsageDetail_20' ) end [2025-03-28 14:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:40:29] Production.INFO: ==9044== Releasing lock... [2025-03-28 14:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:40:29] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:41:06 [end_date_ymd] => 2025-03-28 14:41:06 [RateCDR] => 1 ) [2025-03-28 14: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-28 11:41:06' and `end` < '2025-03-28 14: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-28 14:41:20] Production.INFO: count ==5241 [2025-03-28 14:41:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:41:06 - End Time 2025-03-28 14:41:06 [2025-03-28 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782186', 'tblTempUsageDetail_20' ) start [2025-03-28 14:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782186', 'tblTempUsageDetail_20' ) end [2025-03-28 14:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782186', 'tblTempVendorCDR_20' ) start [2025-03-28 14:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782186', 'tblTempVendorCDR_20' ) end [2025-03-28 14:41:23] Production.INFO: ProcessCDR(1,14782186,1,1,2) [2025-03-28 14:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782186', 'tblTempUsageDetail_20' ) start [2025-03-28 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782186', 'tblTempUsageDetail_20' ) end [2025-03-28 14:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:41:28] Production.INFO: ==9142== Releasing lock... [2025-03-28 14:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:41:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:42:06 [end_date_ymd] => 2025-03-28 14:42:06 [RateCDR] => 1 ) [2025-03-28 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:42:06' and `end` < '2025-03-28 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:42:20] Production.INFO: count ==5242 [2025-03-28 14:42:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:42:06 - End Time 2025-03-28 14:42:06 [2025-03-28 14:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782191', 'tblTempUsageDetail_20' ) start [2025-03-28 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782191', 'tblTempUsageDetail_20' ) end [2025-03-28 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782191', 'tblTempVendorCDR_20' ) start [2025-03-28 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782191', 'tblTempVendorCDR_20' ) end [2025-03-28 14:42:22] Production.INFO: ProcessCDR(1,14782191,1,1,2) [2025-03-28 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782191', 'tblTempUsageDetail_20' ) start [2025-03-28 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782191', 'tblTempUsageDetail_20' ) end [2025-03-28 14:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:42:28] Production.INFO: ==9231== Releasing lock... [2025-03-28 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:42:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:43:05 [end_date_ymd] => 2025-03-28 14:43:05 [RateCDR] => 1 ) [2025-03-28 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-28 11:43:05' and `end` < '2025-03-28 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-28 14:43:19] Production.INFO: count ==5255 [2025-03-28 14:43:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:43:05 - End Time 2025-03-28 14:43:05 [2025-03-28 14:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782196', 'tblTempUsageDetail_20' ) start [2025-03-28 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782196', 'tblTempUsageDetail_20' ) end [2025-03-28 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782196', 'tblTempVendorCDR_20' ) start [2025-03-28 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782196', 'tblTempVendorCDR_20' ) end [2025-03-28 14:43:22] Production.INFO: ProcessCDR(1,14782196,1,1,2) [2025-03-28 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782196', 'tblTempUsageDetail_20' ) start [2025-03-28 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782196', 'tblTempUsageDetail_20' ) end [2025-03-28 14:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:43:28] Production.INFO: ==9315== Releasing lock... [2025-03-28 14:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:43:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:44:06 [end_date_ymd] => 2025-03-28 14:44:06 [RateCDR] => 1 ) [2025-03-28 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-28 11:44:06' and `end` < '2025-03-28 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-28 14:44:20] Production.INFO: count ==5245 [2025-03-28 14:44:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:44:06 - End Time 2025-03-28 14:44:06 [2025-03-28 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782201', 'tblTempUsageDetail_20' ) start [2025-03-28 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782201', 'tblTempUsageDetail_20' ) end [2025-03-28 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782201', 'tblTempVendorCDR_20' ) start [2025-03-28 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782201', 'tblTempVendorCDR_20' ) end [2025-03-28 14:44:23] Production.INFO: ProcessCDR(1,14782201,1,1,2) [2025-03-28 14:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782201', 'tblTempUsageDetail_20' ) start [2025-03-28 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782201', 'tblTempUsageDetail_20' ) end [2025-03-28 14:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:44:28] Production.INFO: ==9399== Releasing lock... [2025-03-28 14:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:44:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:45:05 [end_date_ymd] => 2025-03-28 14:45:05 [RateCDR] => 1 ) [2025-03-28 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-28 11:45:05' and `end` < '2025-03-28 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-28 14:45:19] Production.INFO: count ==5245 [2025-03-28 14:45:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:45:05 - End Time 2025-03-28 14:45:05 [2025-03-28 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782206', 'tblTempUsageDetail_20' ) start [2025-03-28 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782206', 'tblTempUsageDetail_20' ) end [2025-03-28 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782206', 'tblTempVendorCDR_20' ) start [2025-03-28 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782206', 'tblTempVendorCDR_20' ) end [2025-03-28 14:45:22] Production.INFO: ProcessCDR(1,14782206,1,1,2) [2025-03-28 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782206', 'tblTempUsageDetail_20' ) start [2025-03-28 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782206', 'tblTempUsageDetail_20' ) end [2025-03-28 14:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:45:28] Production.INFO: ==9486== Releasing lock... [2025-03-28 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:45:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:46:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:46:07 [end_date_ymd] => 2025-03-28 14:46:07 [RateCDR] => 1 ) [2025-03-28 14:46:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:46:07' and `end` < '2025-03-28 14:46:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:46:21] Production.INFO: count ==5245 [2025-03-28 14:46:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:46:07 - End Time 2025-03-28 14:46:07 [2025-03-28 14:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782211', 'tblTempUsageDetail_20' ) start [2025-03-28 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782211', 'tblTempUsageDetail_20' ) end [2025-03-28 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782211', 'tblTempVendorCDR_20' ) start [2025-03-28 14:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782211', 'tblTempVendorCDR_20' ) end [2025-03-28 14:46:23] Production.INFO: ProcessCDR(1,14782211,1,1,2) [2025-03-28 14:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782211', 'tblTempUsageDetail_20' ) start [2025-03-28 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782211', 'tblTempUsageDetail_20' ) end [2025-03-28 14:46:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:46:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:46:29] Production.INFO: ==9576== Releasing lock... [2025-03-28 14:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:46:29] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:47:05 [end_date_ymd] => 2025-03-28 14:47:05 [RateCDR] => 1 ) [2025-03-28 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-28 11:47:05' and `end` < '2025-03-28 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-28 14:47:19] Production.INFO: count ==5244 [2025-03-28 14:47:21] Production.ERROR: pbx CDR StartTime 2025-03-28 11:47:05 - End Time 2025-03-28 14:47:05 [2025-03-28 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782216', 'tblTempUsageDetail_20' ) start [2025-03-28 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782216', 'tblTempUsageDetail_20' ) end [2025-03-28 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782216', 'tblTempVendorCDR_20' ) start [2025-03-28 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782216', 'tblTempVendorCDR_20' ) end [2025-03-28 14:47:22] Production.INFO: ProcessCDR(1,14782216,1,1,2) [2025-03-28 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782216', 'tblTempUsageDetail_20' ) start [2025-03-28 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782216', 'tblTempUsageDetail_20' ) end [2025-03-28 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:47:28] Production.INFO: ==9661== Releasing lock... [2025-03-28 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:47:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:48:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:48:07 [end_date_ymd] => 2025-03-28 14:48:07 [RateCDR] => 1 ) [2025-03-28 14:48:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:48:07' and `end` < '2025-03-28 14:48:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:48:20] Production.INFO: count ==5255 [2025-03-28 14:48:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:48:07 - End Time 2025-03-28 14:48:07 [2025-03-28 14:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782221', 'tblTempUsageDetail_20' ) start [2025-03-28 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782221', 'tblTempUsageDetail_20' ) end [2025-03-28 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782221', 'tblTempVendorCDR_20' ) start [2025-03-28 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782221', 'tblTempVendorCDR_20' ) end [2025-03-28 14:48:23] Production.INFO: ProcessCDR(1,14782221,1,1,2) [2025-03-28 14:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782221', 'tblTempUsageDetail_20' ) start [2025-03-28 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782221', 'tblTempUsageDetail_20' ) end [2025-03-28 14:48:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:48:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:48:29] Production.INFO: ==9752== Releasing lock... [2025-03-28 14:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:48:29] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:49:06 [end_date_ymd] => 2025-03-28 14:49:06 [RateCDR] => 1 ) [2025-03-28 14: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-28 11:49:06' and `end` < '2025-03-28 14: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-28 14:49:20] Production.INFO: count ==5278 [2025-03-28 14:49:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:49:06 - End Time 2025-03-28 14:49:06 [2025-03-28 14:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782226', 'tblTempUsageDetail_20' ) start [2025-03-28 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782226', 'tblTempUsageDetail_20' ) end [2025-03-28 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782226', 'tblTempVendorCDR_20' ) start [2025-03-28 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782226', 'tblTempVendorCDR_20' ) end [2025-03-28 14:49:22] Production.INFO: ProcessCDR(1,14782226,1,1,2) [2025-03-28 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782226', 'tblTempUsageDetail_20' ) start [2025-03-28 14:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782226', 'tblTempUsageDetail_20' ) end [2025-03-28 14:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:49:28] Production.INFO: ==9881== Releasing lock... [2025-03-28 14:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:49:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-28 14:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:50:07 [end_date_ymd] => 2025-03-28 14:50:07 [RateCDR] => 1 ) [2025-03-28 14:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:50:07' and `end` < '2025-03-28 14:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:50:21] Production.INFO: count ==5272 [2025-03-28 14:50:23] Production.ERROR: pbx CDR StartTime 2025-03-28 11:50:07 - End Time 2025-03-28 14:50:07 [2025-03-28 14:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782232', 'tblTempUsageDetail_20' ) start [2025-03-28 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782232', 'tblTempUsageDetail_20' ) end [2025-03-28 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782232', 'tblTempVendorCDR_20' ) start [2025-03-28 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782232', 'tblTempVendorCDR_20' ) end [2025-03-28 14:50:24] Production.INFO: ProcessCDR(1,14782232,1,1,2) [2025-03-28 14:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782232', 'tblTempUsageDetail_20' ) start [2025-03-28 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782232', 'tblTempUsageDetail_20' ) end [2025-03-28 14:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:50:30] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:50:30] Production.INFO: ==9967== Releasing lock... [2025-03-28 14:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:50:30] Production.INFO: 67.5 MB #Memory Used# [2025-03-28 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:51:05 [end_date_ymd] => 2025-03-28 14:51:05 [RateCDR] => 1 ) [2025-03-28 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-28 11:51:05' and `end` < '2025-03-28 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-28 14:51:19] Production.INFO: count ==5279 [2025-03-28 14:51:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:51:05 - End Time 2025-03-28 14:51:05 [2025-03-28 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782237', 'tblTempUsageDetail_20' ) start [2025-03-28 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782237', 'tblTempUsageDetail_20' ) end [2025-03-28 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782237', 'tblTempVendorCDR_20' ) start [2025-03-28 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782237', 'tblTempVendorCDR_20' ) end [2025-03-28 14:51:22] Production.INFO: ProcessCDR(1,14782237,1,1,2) [2025-03-28 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782237', 'tblTempUsageDetail_20' ) start [2025-03-28 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782237', 'tblTempUsageDetail_20' ) end [2025-03-28 14:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:51:28] Production.INFO: ==10077== Releasing lock... [2025-03-28 14:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:51:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-28 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:52:05 [end_date_ymd] => 2025-03-28 14:52:05 [RateCDR] => 1 ) [2025-03-28 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:52:05' and `end` < '2025-03-28 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:52:19] Production.INFO: count ==5305 [2025-03-28 14:52:21] Production.ERROR: pbx CDR StartTime 2025-03-28 11:52:05 - End Time 2025-03-28 14:52:05 [2025-03-28 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782242', 'tblTempUsageDetail_20' ) start [2025-03-28 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782242', 'tblTempUsageDetail_20' ) end [2025-03-28 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782242', 'tblTempVendorCDR_20' ) start [2025-03-28 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782242', 'tblTempVendorCDR_20' ) end [2025-03-28 14:52:21] Production.INFO: ProcessCDR(1,14782242,1,1,2) [2025-03-28 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782242', 'tblTempUsageDetail_20' ) start [2025-03-28 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782242', 'tblTempUsageDetail_20' ) end [2025-03-28 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:52:27] Production.INFO: ==10200== Releasing lock... [2025-03-28 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:52:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:53:06 [end_date_ymd] => 2025-03-28 14:53:06 [RateCDR] => 1 ) [2025-03-28 14: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-28 11:53:06' and `end` < '2025-03-28 14: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-28 14:53:19] Production.INFO: count ==5306 [2025-03-28 14:53:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:53:06 - End Time 2025-03-28 14:53:06 [2025-03-28 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782247', 'tblTempUsageDetail_20' ) start [2025-03-28 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782247', 'tblTempUsageDetail_20' ) end [2025-03-28 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782247', 'tblTempVendorCDR_20' ) start [2025-03-28 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782247', 'tblTempVendorCDR_20' ) end [2025-03-28 14:53:22] Production.INFO: ProcessCDR(1,14782247,1,1,2) [2025-03-28 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782247', 'tblTempUsageDetail_20' ) start [2025-03-28 14:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782247', 'tblTempUsageDetail_20' ) end [2025-03-28 14:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:53:28] Production.INFO: ==10287== Releasing lock... [2025-03-28 14:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:53:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:54:05 [end_date_ymd] => 2025-03-28 14:54:05 [RateCDR] => 1 ) [2025-03-28 14: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-28 11:54:05' and `end` < '2025-03-28 14: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-28 14:54:19] Production.INFO: count ==5318 [2025-03-28 14:54:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:54:05 - End Time 2025-03-28 14:54:05 [2025-03-28 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782252', 'tblTempUsageDetail_20' ) start [2025-03-28 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782252', 'tblTempUsageDetail_20' ) end [2025-03-28 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782252', 'tblTempVendorCDR_20' ) start [2025-03-28 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782252', 'tblTempVendorCDR_20' ) end [2025-03-28 14:54:22] Production.INFO: ProcessCDR(1,14782252,1,1,2) [2025-03-28 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782252', 'tblTempUsageDetail_20' ) start [2025-03-28 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782252', 'tblTempUsageDetail_20' ) end [2025-03-28 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:54:28] Production.INFO: ==10374== Releasing lock... [2025-03-28 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:54:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:55:06 [end_date_ymd] => 2025-03-28 14:55:06 [RateCDR] => 1 ) [2025-03-28 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:55:06' and `end` < '2025-03-28 14:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:55:20] Production.INFO: count ==5295 [2025-03-28 14:55:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:55:06 - End Time 2025-03-28 14:55:06 [2025-03-28 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782257', 'tblTempUsageDetail_20' ) start [2025-03-28 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782257', 'tblTempUsageDetail_20' ) end [2025-03-28 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782257', 'tblTempVendorCDR_20' ) start [2025-03-28 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782257', 'tblTempVendorCDR_20' ) end [2025-03-28 14:55:22] Production.INFO: ProcessCDR(1,14782257,1,1,2) [2025-03-28 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782257', 'tblTempUsageDetail_20' ) start [2025-03-28 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782257', 'tblTempUsageDetail_20' ) end [2025-03-28 14:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:55:28] Production.INFO: ==10463== Releasing lock... [2025-03-28 14:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:55:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:56:06 [end_date_ymd] => 2025-03-28 14:56:06 [RateCDR] => 1 ) [2025-03-28 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-28 11:56:06' and `end` < '2025-03-28 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-28 14:56:20] Production.INFO: count ==5289 [2025-03-28 14:56:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:56:06 - End Time 2025-03-28 14:56:06 [2025-03-28 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782262', 'tblTempUsageDetail_20' ) start [2025-03-28 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782262', 'tblTempUsageDetail_20' ) end [2025-03-28 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782262', 'tblTempVendorCDR_20' ) start [2025-03-28 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782262', 'tblTempVendorCDR_20' ) end [2025-03-28 14:56:23] Production.INFO: ProcessCDR(1,14782262,1,1,2) [2025-03-28 14:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782262', 'tblTempUsageDetail_20' ) start [2025-03-28 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782262', 'tblTempUsageDetail_20' ) end [2025-03-28 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:56:28] Production.INFO: ==10549== Releasing lock... [2025-03-28 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:56:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-28 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:57:06 [end_date_ymd] => 2025-03-28 14:57:06 [RateCDR] => 1 ) [2025-03-28 14:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:57:06' and `end` < '2025-03-28 14:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:57:20] Production.INFO: count ==5298 [2025-03-28 14:57:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:57:06 - End Time 2025-03-28 14:57:06 [2025-03-28 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782267', 'tblTempUsageDetail_20' ) start [2025-03-28 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782267', 'tblTempUsageDetail_20' ) end [2025-03-28 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782267', 'tblTempVendorCDR_20' ) start [2025-03-28 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782267', 'tblTempVendorCDR_20' ) end [2025-03-28 14:57:22] Production.INFO: ProcessCDR(1,14782267,1,1,2) [2025-03-28 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782267', 'tblTempUsageDetail_20' ) start [2025-03-28 14:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782267', 'tblTempUsageDetail_20' ) end [2025-03-28 14:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:57:28] Production.INFO: ==10633== Releasing lock... [2025-03-28 14:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:57:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:58:06 [end_date_ymd] => 2025-03-28 14:58:06 [RateCDR] => 1 ) [2025-03-28 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:58:06' and `end` < '2025-03-28 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:58:20] Production.INFO: count ==5288 [2025-03-28 14:58:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:58:06 - End Time 2025-03-28 14:58:06 [2025-03-28 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782272', 'tblTempUsageDetail_20' ) start [2025-03-28 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782272', 'tblTempUsageDetail_20' ) end [2025-03-28 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782272', 'tblTempVendorCDR_20' ) start [2025-03-28 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782272', 'tblTempVendorCDR_20' ) end [2025-03-28 14:58:22] Production.INFO: ProcessCDR(1,14782272,1,1,2) [2025-03-28 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782272', 'tblTempUsageDetail_20' ) start [2025-03-28 14:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782272', 'tblTempUsageDetail_20' ) end [2025-03-28 14:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:58:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:58:29] Production.INFO: ==10725== Releasing lock... [2025-03-28 14:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:58:29] Production.INFO: 67.5 MB #Memory Used# [2025-03-28 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 11:59:06 [end_date_ymd] => 2025-03-28 14:59:06 [RateCDR] => 1 ) [2025-03-28 14:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 11:59:06' and `end` < '2025-03-28 14:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 14:59:19] Production.INFO: count ==5260 [2025-03-28 14:59:22] Production.ERROR: pbx CDR StartTime 2025-03-28 11:59:06 - End Time 2025-03-28 14:59:06 [2025-03-28 14:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782277', 'tblTempUsageDetail_20' ) start [2025-03-28 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782277', 'tblTempUsageDetail_20' ) end [2025-03-28 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782277', 'tblTempVendorCDR_20' ) start [2025-03-28 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782277', 'tblTempVendorCDR_20' ) end [2025-03-28 14:59:22] Production.INFO: ProcessCDR(1,14782277,1,1,2) [2025-03-28 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 14:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782277', 'tblTempUsageDetail_20' ) start [2025-03-28 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782277', 'tblTempUsageDetail_20' ) end [2025-03-28 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 14:59:27] Production.INFO: ==10808== Releasing lock... [2025-03-28 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 14:59:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:00:06 [end_date_ymd] => 2025-03-28 15:00:06 [RateCDR] => 1 ) [2025-03-28 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:00:06' and `end` < '2025-03-28 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:00:20] Production.INFO: count ==5285 [2025-03-28 15:00:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:00:06 - End Time 2025-03-28 15:00:06 [2025-03-28 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782282', 'tblTempUsageDetail_20' ) start [2025-03-28 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782282', 'tblTempUsageDetail_20' ) end [2025-03-28 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782282', 'tblTempVendorCDR_20' ) start [2025-03-28 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782282', 'tblTempVendorCDR_20' ) end [2025-03-28 15:00:22] Production.INFO: ProcessCDR(1,14782282,1,1,2) [2025-03-28 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782282', 'tblTempUsageDetail_20' ) start [2025-03-28 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782282', 'tblTempUsageDetail_20' ) end [2025-03-28 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:00:28] Production.INFO: ==10908== Releasing lock... [2025-03-28 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:00:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-28 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:01:06 [end_date_ymd] => 2025-03-28 15:01:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:01:06' and `end` < '2025-03-28 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-28 15:01:20] Production.INFO: count ==5321 [2025-03-28 15:01:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:01:06 - End Time 2025-03-28 15:01:06 [2025-03-28 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782288', 'tblTempUsageDetail_20' ) start [2025-03-28 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782288', 'tblTempUsageDetail_20' ) end [2025-03-28 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782288', 'tblTempVendorCDR_20' ) start [2025-03-28 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782288', 'tblTempVendorCDR_20' ) end [2025-03-28 15:01:22] Production.INFO: ProcessCDR(1,14782288,1,1,2) [2025-03-28 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782288', 'tblTempUsageDetail_20' ) start [2025-03-28 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782288', 'tblTempUsageDetail_20' ) end [2025-03-28 15:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:01:28] Production.INFO: ==11087== Releasing lock... [2025-03-28 15:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:01:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:02:05 [end_date_ymd] => 2025-03-28 15:02:05 [RateCDR] => 1 ) [2025-03-28 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-28 12:02:05' and `end` < '2025-03-28 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-28 15:02:19] Production.INFO: count ==5346 [2025-03-28 15:02:21] Production.ERROR: pbx CDR StartTime 2025-03-28 12:02:05 - End Time 2025-03-28 15:02:05 [2025-03-28 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782293', 'tblTempUsageDetail_20' ) start [2025-03-28 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782293', 'tblTempUsageDetail_20' ) end [2025-03-28 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782293', 'tblTempVendorCDR_20' ) start [2025-03-28 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782293', 'tblTempVendorCDR_20' ) end [2025-03-28 15:02:21] Production.INFO: ProcessCDR(1,14782293,1,1,2) [2025-03-28 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782293', 'tblTempUsageDetail_20' ) start [2025-03-28 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782293', 'tblTempUsageDetail_20' ) end [2025-03-28 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:02:28] Production.INFO: ==11175== Releasing lock... [2025-03-28 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:02:28] Production.INFO: 68 MB #Memory Used# [2025-03-28 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:03:05 [end_date_ymd] => 2025-03-28 15:03:05 [RateCDR] => 1 ) [2025-03-28 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-28 12:03:05' and `end` < '2025-03-28 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-28 15:03:19] Production.INFO: count ==5338 [2025-03-28 15:03:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:03:05 - End Time 2025-03-28 15:03:05 [2025-03-28 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782298', 'tblTempUsageDetail_20' ) start [2025-03-28 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782298', 'tblTempUsageDetail_20' ) end [2025-03-28 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782298', 'tblTempVendorCDR_20' ) start [2025-03-28 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782298', 'tblTempVendorCDR_20' ) end [2025-03-28 15:03:22] Production.INFO: ProcessCDR(1,14782298,1,1,2) [2025-03-28 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782298', 'tblTempUsageDetail_20' ) start [2025-03-28 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782298', 'tblTempUsageDetail_20' ) end [2025-03-28 15:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:03:26] Production.INFO: ==11261== Releasing lock... [2025-03-28 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:03:26] Production.INFO: 68 MB #Memory Used# [2025-03-28 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:04:06 [end_date_ymd] => 2025-03-28 15:04:06 [RateCDR] => 1 ) [2025-03-28 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:04:06' and `end` < '2025-03-28 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:04:19] Production.INFO: count ==5331 [2025-03-28 15:04:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:04:06 - End Time 2025-03-28 15:04:06 [2025-03-28 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782303', 'tblTempUsageDetail_20' ) start [2025-03-28 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782303', 'tblTempUsageDetail_20' ) end [2025-03-28 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782303', 'tblTempVendorCDR_20' ) start [2025-03-28 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782303', 'tblTempVendorCDR_20' ) end [2025-03-28 15:04:22] Production.INFO: ProcessCDR(1,14782303,1,1,2) [2025-03-28 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782303', 'tblTempUsageDetail_20' ) start [2025-03-28 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782303', 'tblTempUsageDetail_20' ) end [2025-03-28 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:04:28] Production.INFO: ==11345== Releasing lock... [2025-03-28 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:04:28] Production.INFO: 68 MB #Memory Used# [2025-03-28 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:05:05 [end_date_ymd] => 2025-03-28 15:05:05 [RateCDR] => 1 ) [2025-03-28 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-28 12:05:05' and `end` < '2025-03-28 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-28 15:05:19] Production.INFO: count ==5329 [2025-03-28 15:05:21] Production.ERROR: pbx CDR StartTime 2025-03-28 12:05:05 - End Time 2025-03-28 15:05:05 [2025-03-28 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782308', 'tblTempUsageDetail_20' ) start [2025-03-28 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782308', 'tblTempUsageDetail_20' ) end [2025-03-28 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782308', 'tblTempVendorCDR_20' ) start [2025-03-28 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782308', 'tblTempVendorCDR_20' ) end [2025-03-28 15:05:21] Production.INFO: ProcessCDR(1,14782308,1,1,2) [2025-03-28 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782308', 'tblTempUsageDetail_20' ) start [2025-03-28 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782308', 'tblTempUsageDetail_20' ) end [2025-03-28 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:05:27] Production.INFO: ==11520== Releasing lock... [2025-03-28 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:05:27] Production.INFO: 68 MB #Memory Used# [2025-03-28 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:06:05 [end_date_ymd] => 2025-03-28 15:06:05 [RateCDR] => 1 ) [2025-03-28 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:06:05' and `end` < '2025-03-28 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:06:19] Production.INFO: count ==5340 [2025-03-28 15:06:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:06:05 - End Time 2025-03-28 15:06:05 [2025-03-28 15:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782313', 'tblTempUsageDetail_20' ) start [2025-03-28 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782313', 'tblTempUsageDetail_20' ) end [2025-03-28 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782313', 'tblTempVendorCDR_20' ) start [2025-03-28 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782313', 'tblTempVendorCDR_20' ) end [2025-03-28 15:06:22] Production.INFO: ProcessCDR(1,14782313,1,1,2) [2025-03-28 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782313', 'tblTempUsageDetail_20' ) start [2025-03-28 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782313', 'tblTempUsageDetail_20' ) end [2025-03-28 15:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:06:28] Production.INFO: ==11605== Releasing lock... [2025-03-28 15:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:06:28] Production.INFO: 68 MB #Memory Used# [2025-03-28 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:07:06 [end_date_ymd] => 2025-03-28 15:07:06 [RateCDR] => 1 ) [2025-03-28 15:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:07:06' and `end` < '2025-03-28 15:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:07:20] Production.INFO: count ==5322 [2025-03-28 15:07:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:07:06 - End Time 2025-03-28 15:07:06 [2025-03-28 15:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782318', 'tblTempUsageDetail_20' ) start [2025-03-28 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782318', 'tblTempUsageDetail_20' ) end [2025-03-28 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782318', 'tblTempVendorCDR_20' ) start [2025-03-28 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782318', 'tblTempVendorCDR_20' ) end [2025-03-28 15:07:22] Production.INFO: ProcessCDR(1,14782318,1,1,2) [2025-03-28 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782318', 'tblTempUsageDetail_20' ) start [2025-03-28 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782318', 'tblTempUsageDetail_20' ) end [2025-03-28 15:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:07:28] Production.INFO: ==11696== Releasing lock... [2025-03-28 15:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:07:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:08:05 [end_date_ymd] => 2025-03-28 15:08:05 [RateCDR] => 1 ) [2025-03-28 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:08:05' and `end` < '2025-03-28 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:08:19] Production.INFO: count ==5328 [2025-03-28 15:08:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:08:05 - End Time 2025-03-28 15:08:05 [2025-03-28 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782323', 'tblTempUsageDetail_20' ) start [2025-03-28 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782323', 'tblTempUsageDetail_20' ) end [2025-03-28 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782323', 'tblTempVendorCDR_20' ) start [2025-03-28 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782323', 'tblTempVendorCDR_20' ) end [2025-03-28 15:08:22] Production.INFO: ProcessCDR(1,14782323,1,1,2) [2025-03-28 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782323', 'tblTempUsageDetail_20' ) start [2025-03-28 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782323', 'tblTempUsageDetail_20' ) end [2025-03-28 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:08:27] Production.INFO: ==11899== Releasing lock... [2025-03-28 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:08:27] Production.INFO: 68 MB #Memory Used# [2025-03-28 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:09:05 [end_date_ymd] => 2025-03-28 15:09:05 [RateCDR] => 1 ) [2025-03-28 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:09:05' and `end` < '2025-03-28 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:09:19] Production.INFO: count ==5329 [2025-03-28 15:09:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:09:05 - End Time 2025-03-28 15:09:05 [2025-03-28 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782328', 'tblTempUsageDetail_20' ) start [2025-03-28 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782328', 'tblTempUsageDetail_20' ) end [2025-03-28 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782328', 'tblTempVendorCDR_20' ) start [2025-03-28 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782328', 'tblTempVendorCDR_20' ) end [2025-03-28 15:09:22] Production.INFO: ProcessCDR(1,14782328,1,1,2) [2025-03-28 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782328', 'tblTempUsageDetail_20' ) start [2025-03-28 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782328', 'tblTempUsageDetail_20' ) end [2025-03-28 15:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:09:28] Production.INFO: ==11984== Releasing lock... [2025-03-28 15:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:09:28] Production.INFO: 68 MB #Memory Used# [2025-03-28 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:10:07 [end_date_ymd] => 2025-03-28 15:10:07 [RateCDR] => 1 ) [2025-03-28 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-28 12:10:07' and `end` < '2025-03-28 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-28 15:10:21] Production.INFO: count ==5357 [2025-03-28 15:10:24] Production.ERROR: pbx CDR StartTime 2025-03-28 12:10:07 - End Time 2025-03-28 15:10:07 [2025-03-28 15:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782334', 'tblTempUsageDetail_20' ) start [2025-03-28 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782334', 'tblTempUsageDetail_20' ) end [2025-03-28 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782334', 'tblTempVendorCDR_20' ) start [2025-03-28 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782334', 'tblTempVendorCDR_20' ) end [2025-03-28 15:10:24] Production.INFO: ProcessCDR(1,14782334,1,1,2) [2025-03-28 15:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782334', 'tblTempUsageDetail_20' ) start [2025-03-28 15:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782334', 'tblTempUsageDetail_20' ) end [2025-03-28 15:10:30] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:10:30] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:10:30] Production.INFO: ==12096== Releasing lock... [2025-03-28 15:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:10:30] Production.INFO: 68 MB #Memory Used# [2025-03-28 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:11:06 [end_date_ymd] => 2025-03-28 15:11:06 [RateCDR] => 1 ) [2025-03-28 15:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:11:06' and `end` < '2025-03-28 15:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:11:20] Production.INFO: count ==5395 [2025-03-28 15:11:23] Production.ERROR: pbx CDR StartTime 2025-03-28 12:11:06 - End Time 2025-03-28 15:11:06 [2025-03-28 15:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782339', 'tblTempUsageDetail_20' ) start [2025-03-28 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782339', 'tblTempUsageDetail_20' ) end [2025-03-28 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782339', 'tblTempVendorCDR_20' ) start [2025-03-28 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782339', 'tblTempVendorCDR_20' ) end [2025-03-28 15:11:23] Production.INFO: ProcessCDR(1,14782339,1,1,2) [2025-03-28 15:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782339', 'tblTempUsageDetail_20' ) start [2025-03-28 15:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782339', 'tblTempUsageDetail_20' ) end [2025-03-28 15:11:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:11:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:11:29] Production.INFO: ==12186== Releasing lock... [2025-03-28 15:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:11:29] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:12:06 [end_date_ymd] => 2025-03-28 15:12:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:12:06' and `end` < '2025-03-28 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-28 15:12:20] Production.INFO: count ==5364 [2025-03-28 15:12:23] Production.ERROR: pbx CDR StartTime 2025-03-28 12:12:06 - End Time 2025-03-28 15:12:06 [2025-03-28 15:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782344', 'tblTempUsageDetail_20' ) start [2025-03-28 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782344', 'tblTempUsageDetail_20' ) end [2025-03-28 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782344', 'tblTempVendorCDR_20' ) start [2025-03-28 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782344', 'tblTempVendorCDR_20' ) end [2025-03-28 15:12:23] Production.INFO: ProcessCDR(1,14782344,1,1,2) [2025-03-28 15:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782344', 'tblTempUsageDetail_20' ) start [2025-03-28 15:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782344', 'tblTempUsageDetail_20' ) end [2025-03-28 15:12:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:12:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:12:29] Production.INFO: ==12365== Releasing lock... [2025-03-28 15:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:12:29] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:13:05 [end_date_ymd] => 2025-03-28 15:13:05 [RateCDR] => 1 ) [2025-03-28 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:13:05' and `end` < '2025-03-28 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:13:19] Production.INFO: count ==5377 [2025-03-28 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-28 12:13:05 - End Time 2025-03-28 15:13:05 [2025-03-28 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782349', 'tblTempUsageDetail_20' ) start [2025-03-28 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782349', 'tblTempUsageDetail_20' ) end [2025-03-28 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782349', 'tblTempVendorCDR_20' ) start [2025-03-28 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782349', 'tblTempVendorCDR_20' ) end [2025-03-28 15:13:22] Production.INFO: ProcessCDR(1,14782349,1,1,2) [2025-03-28 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782349', 'tblTempUsageDetail_20' ) start [2025-03-28 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782349', 'tblTempUsageDetail_20' ) end [2025-03-28 15:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:13:28] Production.INFO: ==12467== Releasing lock... [2025-03-28 15:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:13:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:14:05 [end_date_ymd] => 2025-03-28 15:14:05 [RateCDR] => 1 ) [2025-03-28 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-28 12:14:05' and `end` < '2025-03-28 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-28 15:14:18] Production.INFO: count ==5394 [2025-03-28 15:14:21] Production.ERROR: pbx CDR StartTime 2025-03-28 12:14:05 - End Time 2025-03-28 15:14:05 [2025-03-28 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782354', 'tblTempUsageDetail_20' ) start [2025-03-28 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782354', 'tblTempUsageDetail_20' ) end [2025-03-28 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782354', 'tblTempVendorCDR_20' ) start [2025-03-28 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782354', 'tblTempVendorCDR_20' ) end [2025-03-28 15:14:21] Production.INFO: ProcessCDR(1,14782354,1,1,2) [2025-03-28 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782354', 'tblTempUsageDetail_20' ) start [2025-03-28 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782354', 'tblTempUsageDetail_20' ) end [2025-03-28 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:14:27] Production.INFO: ==12559== Releasing lock... [2025-03-28 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:14:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:15:05 [end_date_ymd] => 2025-03-28 15:15:05 [RateCDR] => 1 ) [2025-03-28 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:15:05' and `end` < '2025-03-28 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:15:19] Production.INFO: count ==5394 [2025-03-28 15:15:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:15:05 - End Time 2025-03-28 15:15:05 [2025-03-28 15:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782359', 'tblTempUsageDetail_20' ) start [2025-03-28 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782359', 'tblTempUsageDetail_20' ) end [2025-03-28 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782359', 'tblTempVendorCDR_20' ) start [2025-03-28 15:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782359', 'tblTempVendorCDR_20' ) end [2025-03-28 15:15:22] Production.INFO: ProcessCDR(1,14782359,1,1,2) [2025-03-28 15:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782359', 'tblTempUsageDetail_20' ) start [2025-03-28 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782359', 'tblTempUsageDetail_20' ) end [2025-03-28 15:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:15:28] Production.INFO: ==12741== Releasing lock... [2025-03-28 15:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:15:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:16:05 [end_date_ymd] => 2025-03-28 15:16:05 [RateCDR] => 1 ) [2025-03-28 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-28 12:16:05' and `end` < '2025-03-28 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-28 15:16:19] Production.INFO: count ==5405 [2025-03-28 15:16:21] Production.ERROR: pbx CDR StartTime 2025-03-28 12:16:05 - End Time 2025-03-28 15:16:05 [2025-03-28 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782364', 'tblTempUsageDetail_20' ) start [2025-03-28 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782364', 'tblTempUsageDetail_20' ) end [2025-03-28 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782364', 'tblTempVendorCDR_20' ) start [2025-03-28 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782364', 'tblTempVendorCDR_20' ) end [2025-03-28 15:16:22] Production.INFO: ProcessCDR(1,14782364,1,1,2) [2025-03-28 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782364', 'tblTempUsageDetail_20' ) start [2025-03-28 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782364', 'tblTempUsageDetail_20' ) end [2025-03-28 15:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:16:28] Production.INFO: ==12841== Releasing lock... [2025-03-28 15:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:16:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:17:06 [end_date_ymd] => 2025-03-28 15:17:06 [RateCDR] => 1 ) [2025-03-28 15:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:17:06' and `end` < '2025-03-28 15:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:17:19] Production.INFO: count ==5424 [2025-03-28 15:17:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:17:06 - End Time 2025-03-28 15:17:06 [2025-03-28 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782369', 'tblTempUsageDetail_20' ) start [2025-03-28 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782369', 'tblTempUsageDetail_20' ) end [2025-03-28 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782369', 'tblTempVendorCDR_20' ) start [2025-03-28 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782369', 'tblTempVendorCDR_20' ) end [2025-03-28 15:17:22] Production.INFO: ProcessCDR(1,14782369,1,1,2) [2025-03-28 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782369', 'tblTempUsageDetail_20' ) start [2025-03-28 15:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782369', 'tblTempUsageDetail_20' ) end [2025-03-28 15:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:17:28] Production.INFO: ==12941== Releasing lock... [2025-03-28 15:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:17:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:18:05 [end_date_ymd] => 2025-03-28 15:18:05 [RateCDR] => 1 ) [2025-03-28 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:18:05' and `end` < '2025-03-28 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:18:19] Production.INFO: count ==5418 [2025-03-28 15:18:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:18:05 - End Time 2025-03-28 15:18:05 [2025-03-28 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782374', 'tblTempUsageDetail_20' ) start [2025-03-28 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782374', 'tblTempUsageDetail_20' ) end [2025-03-28 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782374', 'tblTempVendorCDR_20' ) start [2025-03-28 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782374', 'tblTempVendorCDR_20' ) end [2025-03-28 15:18:22] Production.INFO: ProcessCDR(1,14782374,1,1,2) [2025-03-28 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782374', 'tblTempUsageDetail_20' ) start [2025-03-28 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782374', 'tblTempUsageDetail_20' ) end [2025-03-28 15:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:18:28] Production.INFO: ==13037== Releasing lock... [2025-03-28 15:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:18:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:19:05 [end_date_ymd] => 2025-03-28 15:19:05 [RateCDR] => 1 ) [2025-03-28 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-28 12:19:05' and `end` < '2025-03-28 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-28 15:19:19] Production.INFO: count ==5427 [2025-03-28 15:19:21] Production.ERROR: pbx CDR StartTime 2025-03-28 12:19:05 - End Time 2025-03-28 15:19:05 [2025-03-28 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782379', 'tblTempUsageDetail_20' ) start [2025-03-28 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782379', 'tblTempUsageDetail_20' ) end [2025-03-28 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782379', 'tblTempVendorCDR_20' ) start [2025-03-28 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782379', 'tblTempVendorCDR_20' ) end [2025-03-28 15:19:21] Production.INFO: ProcessCDR(1,14782379,1,1,2) [2025-03-28 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782379', 'tblTempUsageDetail_20' ) start [2025-03-28 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782379', 'tblTempUsageDetail_20' ) end [2025-03-28 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:19:27] Production.INFO: ==13139== Releasing lock... [2025-03-28 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:19:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:20:07 [end_date_ymd] => 2025-03-28 15:20:07 [RateCDR] => 1 ) [2025-03-28 15: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-28 12:20:07' and `end` < '2025-03-28 15: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-28 15:20:20] Production.INFO: count ==5428 [2025-03-28 15:20:23] Production.ERROR: pbx CDR StartTime 2025-03-28 12:20:07 - End Time 2025-03-28 15:20:07 [2025-03-28 15:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782384', 'tblTempUsageDetail_20' ) start [2025-03-28 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782384', 'tblTempUsageDetail_20' ) end [2025-03-28 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782384', 'tblTempVendorCDR_20' ) start [2025-03-28 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782384', 'tblTempVendorCDR_20' ) end [2025-03-28 15:20:23] Production.INFO: ProcessCDR(1,14782384,1,1,2) [2025-03-28 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782384', 'tblTempUsageDetail_20' ) start [2025-03-28 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782384', 'tblTempUsageDetail_20' ) end [2025-03-28 15:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:20:29] Production.INFO: ==13240== Releasing lock... [2025-03-28 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:20:29] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:21:06 [end_date_ymd] => 2025-03-28 15:21:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:21:06' and `end` < '2025-03-28 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-28 15:21:19] Production.INFO: count ==5413 [2025-03-28 15:21:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:21:06 - End Time 2025-03-28 15:21:06 [2025-03-28 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782390', 'tblTempUsageDetail_20' ) start [2025-03-28 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782390', 'tblTempUsageDetail_20' ) end [2025-03-28 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782390', 'tblTempVendorCDR_20' ) start [2025-03-28 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782390', 'tblTempVendorCDR_20' ) end [2025-03-28 15:21:22] Production.INFO: ProcessCDR(1,14782390,1,1,2) [2025-03-28 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782390', 'tblTempUsageDetail_20' ) start [2025-03-28 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782390', 'tblTempUsageDetail_20' ) end [2025-03-28 15:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:21:28] Production.INFO: ==13340== Releasing lock... [2025-03-28 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:21:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:22:06 [end_date_ymd] => 2025-03-28 15:22:06 [RateCDR] => 1 ) [2025-03-28 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:22:06' and `end` < '2025-03-28 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:22:20] Production.INFO: count ==5417 [2025-03-28 15:22:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:22:06 - End Time 2025-03-28 15:22:06 [2025-03-28 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782395', 'tblTempUsageDetail_20' ) start [2025-03-28 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782395', 'tblTempUsageDetail_20' ) end [2025-03-28 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782395', 'tblTempVendorCDR_20' ) start [2025-03-28 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782395', 'tblTempVendorCDR_20' ) end [2025-03-28 15:22:23] Production.INFO: ProcessCDR(1,14782395,1,1,2) [2025-03-28 15:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782395', 'tblTempUsageDetail_20' ) start [2025-03-28 15:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782395', 'tblTempUsageDetail_20' ) end [2025-03-28 15:22:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:22:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:22:29] Production.INFO: ==13434== Releasing lock... [2025-03-28 15:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:22:29] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:23:06 [end_date_ymd] => 2025-03-28 15:23:06 [RateCDR] => 1 ) [2025-03-28 15: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-28 12:23:06' and `end` < '2025-03-28 15: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-28 15:23:19] Production.INFO: count ==5420 [2025-03-28 15:23:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:23:06 - End Time 2025-03-28 15:23:06 [2025-03-28 15:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782400', 'tblTempUsageDetail_20' ) start [2025-03-28 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782400', 'tblTempUsageDetail_20' ) end [2025-03-28 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782400', 'tblTempVendorCDR_20' ) start [2025-03-28 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782400', 'tblTempVendorCDR_20' ) end [2025-03-28 15:23:22] Production.INFO: ProcessCDR(1,14782400,1,1,2) [2025-03-28 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782400', 'tblTempUsageDetail_20' ) start [2025-03-28 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782400', 'tblTempUsageDetail_20' ) end [2025-03-28 15:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:23:28] Production.INFO: ==13571== Releasing lock... [2025-03-28 15:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:23:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:24:06 [end_date_ymd] => 2025-03-28 15:24:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:24:06' and `end` < '2025-03-28 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-28 15:24:19] Production.INFO: count ==5418 [2025-03-28 15:24:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:24:06 - End Time 2025-03-28 15:24:06 [2025-03-28 15:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782405', 'tblTempUsageDetail_20' ) start [2025-03-28 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782405', 'tblTempUsageDetail_20' ) end [2025-03-28 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782405', 'tblTempVendorCDR_20' ) start [2025-03-28 15:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782405', 'tblTempVendorCDR_20' ) end [2025-03-28 15:24:22] Production.INFO: ProcessCDR(1,14782405,1,1,2) [2025-03-28 15:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782405', 'tblTempUsageDetail_20' ) start [2025-03-28 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782405', 'tblTempUsageDetail_20' ) end [2025-03-28 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:24:28] Production.INFO: ==13668== Releasing lock... [2025-03-28 15:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:24:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:25:05 [end_date_ymd] => 2025-03-28 15:25:05 [RateCDR] => 1 ) [2025-03-28 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-28 12:25:05' and `end` < '2025-03-28 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-28 15:25:19] Production.INFO: count ==5412 [2025-03-28 15:25:21] Production.ERROR: pbx CDR StartTime 2025-03-28 12:25:05 - End Time 2025-03-28 15:25:05 [2025-03-28 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782410', 'tblTempUsageDetail_20' ) start [2025-03-28 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782410', 'tblTempUsageDetail_20' ) end [2025-03-28 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782410', 'tblTempVendorCDR_20' ) start [2025-03-28 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782410', 'tblTempVendorCDR_20' ) end [2025-03-28 15:25:22] Production.INFO: ProcessCDR(1,14782410,1,1,2) [2025-03-28 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782410', 'tblTempUsageDetail_20' ) start [2025-03-28 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782410', 'tblTempUsageDetail_20' ) end [2025-03-28 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:25:27] Production.INFO: ==13766== Releasing lock... [2025-03-28 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:25:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:26:05 [end_date_ymd] => 2025-03-28 15:26:05 [RateCDR] => 1 ) [2025-03-28 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:26:05' and `end` < '2025-03-28 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:26:19] Production.INFO: count ==5408 [2025-03-28 15:26:21] Production.ERROR: pbx CDR StartTime 2025-03-28 12:26:05 - End Time 2025-03-28 15:26:05 [2025-03-28 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782415', 'tblTempUsageDetail_20' ) start [2025-03-28 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782415', 'tblTempUsageDetail_20' ) end [2025-03-28 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782415', 'tblTempVendorCDR_20' ) start [2025-03-28 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782415', 'tblTempVendorCDR_20' ) end [2025-03-28 15:26:21] Production.INFO: ProcessCDR(1,14782415,1,1,2) [2025-03-28 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782415', 'tblTempUsageDetail_20' ) start [2025-03-28 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782415', 'tblTempUsageDetail_20' ) end [2025-03-28 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:26:27] Production.INFO: ==13865== Releasing lock... [2025-03-28 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:26:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:27:06 [end_date_ymd] => 2025-03-28 15:27:06 [RateCDR] => 1 ) [2025-03-28 15:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:27:06' and `end` < '2025-03-28 15:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:27:20] Production.INFO: count ==5420 [2025-03-28 15:27:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:27:06 - End Time 2025-03-28 15:27:06 [2025-03-28 15:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782420', 'tblTempUsageDetail_20' ) start [2025-03-28 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782420', 'tblTempUsageDetail_20' ) end [2025-03-28 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782420', 'tblTempVendorCDR_20' ) start [2025-03-28 15:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782420', 'tblTempVendorCDR_20' ) end [2025-03-28 15:27:22] Production.INFO: ProcessCDR(1,14782420,1,1,2) [2025-03-28 15:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782420', 'tblTempUsageDetail_20' ) start [2025-03-28 15:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782420', 'tblTempUsageDetail_20' ) end [2025-03-28 15:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:27:28] Production.INFO: ==13966== Releasing lock... [2025-03-28 15:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:27:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:28:05 [end_date_ymd] => 2025-03-28 15:28:05 [RateCDR] => 1 ) [2025-03-28 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-28 12:28:05' and `end` < '2025-03-28 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-28 15:28:19] Production.INFO: count ==5433 [2025-03-28 15:28:21] Production.ERROR: pbx CDR StartTime 2025-03-28 12:28:05 - End Time 2025-03-28 15:28:05 [2025-03-28 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782425', 'tblTempUsageDetail_20' ) start [2025-03-28 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782425', 'tblTempUsageDetail_20' ) end [2025-03-28 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782425', 'tblTempVendorCDR_20' ) start [2025-03-28 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782425', 'tblTempVendorCDR_20' ) end [2025-03-28 15:28:22] Production.INFO: ProcessCDR(1,14782425,1,1,2) [2025-03-28 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782425', 'tblTempUsageDetail_20' ) start [2025-03-28 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782425', 'tblTempUsageDetail_20' ) end [2025-03-28 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:28:27] Production.INFO: ==14065== Releasing lock... [2025-03-28 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:28:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-28 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:29:06 [end_date_ymd] => 2025-03-28 15:29:06 [RateCDR] => 1 ) [2025-03-28 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:29:06' and `end` < '2025-03-28 15:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:29:20] Production.INFO: count ==5436 [2025-03-28 15:29:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:29:06 - End Time 2025-03-28 15:29:06 [2025-03-28 15:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782430', 'tblTempUsageDetail_20' ) start [2025-03-28 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782430', 'tblTempUsageDetail_20' ) end [2025-03-28 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782430', 'tblTempVendorCDR_20' ) start [2025-03-28 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782430', 'tblTempVendorCDR_20' ) end [2025-03-28 15:29:22] Production.INFO: ProcessCDR(1,14782430,1,1,2) [2025-03-28 15:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782430', 'tblTempUsageDetail_20' ) start [2025-03-28 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782430', 'tblTempUsageDetail_20' ) end [2025-03-28 15:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:29:28] Production.INFO: ==14162== Releasing lock... [2025-03-28 15:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:29:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-28 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:30:06 [end_date_ymd] => 2025-03-28 15:30:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:30:06' and `end` < '2025-03-28 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-28 15:30:20] Production.INFO: count ==5411 [2025-03-28 15:30:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:30:06 - End Time 2025-03-28 15:30:06 [2025-03-28 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782436', 'tblTempUsageDetail_20' ) start [2025-03-28 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782436', 'tblTempUsageDetail_20' ) end [2025-03-28 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782436', 'tblTempVendorCDR_20' ) start [2025-03-28 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782436', 'tblTempVendorCDR_20' ) end [2025-03-28 15:30:23] Production.INFO: ProcessCDR(1,14782436,1,1,2) [2025-03-28 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782436', 'tblTempUsageDetail_20' ) start [2025-03-28 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782436', 'tblTempUsageDetail_20' ) end [2025-03-28 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:30:28] Production.INFO: ==14264== Releasing lock... [2025-03-28 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:30:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:31:06 [end_date_ymd] => 2025-03-28 15:31:06 [RateCDR] => 1 ) [2025-03-28 15:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:31:06' and `end` < '2025-03-28 15:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:31:20] Production.INFO: count ==5399 [2025-03-28 15:31:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:31:06 - End Time 2025-03-28 15:31:06 [2025-03-28 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782441', 'tblTempUsageDetail_20' ) start [2025-03-28 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782441', 'tblTempUsageDetail_20' ) end [2025-03-28 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782441', 'tblTempVendorCDR_20' ) start [2025-03-28 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782441', 'tblTempVendorCDR_20' ) end [2025-03-28 15:31:23] Production.INFO: ProcessCDR(1,14782441,1,1,2) [2025-03-28 15:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782441', 'tblTempUsageDetail_20' ) start [2025-03-28 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782441', 'tblTempUsageDetail_20' ) end [2025-03-28 15:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:31:28] Production.INFO: ==14365== Releasing lock... [2025-03-28 15:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:31:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:32:06 [end_date_ymd] => 2025-03-28 15:32:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:32:06' and `end` < '2025-03-28 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-28 15:32:19] Production.INFO: count ==5392 [2025-03-28 15:32:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:32:06 - End Time 2025-03-28 15:32:06 [2025-03-28 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782446', 'tblTempUsageDetail_20' ) start [2025-03-28 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782446', 'tblTempUsageDetail_20' ) end [2025-03-28 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782446', 'tblTempVendorCDR_20' ) start [2025-03-28 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782446', 'tblTempVendorCDR_20' ) end [2025-03-28 15:32:22] Production.INFO: ProcessCDR(1,14782446,1,1,2) [2025-03-28 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782446', 'tblTempUsageDetail_20' ) start [2025-03-28 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782446', 'tblTempUsageDetail_20' ) end [2025-03-28 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:32:28] Production.INFO: ==14461== Releasing lock... [2025-03-28 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:32:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:33:06 [end_date_ymd] => 2025-03-28 15:33:06 [RateCDR] => 1 ) [2025-03-28 15:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:33:06' and `end` < '2025-03-28 15:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:33:20] Production.INFO: count ==5384 [2025-03-28 15:33:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:33:06 - End Time 2025-03-28 15:33:06 [2025-03-28 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782451', 'tblTempUsageDetail_20' ) start [2025-03-28 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782451', 'tblTempUsageDetail_20' ) end [2025-03-28 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782451', 'tblTempVendorCDR_20' ) start [2025-03-28 15:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782451', 'tblTempVendorCDR_20' ) end [2025-03-28 15:33:23] Production.INFO: ProcessCDR(1,14782451,1,1,2) [2025-03-28 15:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782451', 'tblTempUsageDetail_20' ) start [2025-03-28 15:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782451', 'tblTempUsageDetail_20' ) end [2025-03-28 15:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:33:28] Production.INFO: ==14559== Releasing lock... [2025-03-28 15:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:33:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:34:06 [end_date_ymd] => 2025-03-28 15:34:06 [RateCDR] => 1 ) [2025-03-28 15:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:34:06' and `end` < '2025-03-28 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:34:19] Production.INFO: count ==5390 [2025-03-28 15:34:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:34:06 - End Time 2025-03-28 15:34:06 [2025-03-28 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782456', 'tblTempUsageDetail_20' ) start [2025-03-28 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782456', 'tblTempUsageDetail_20' ) end [2025-03-28 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782456', 'tblTempVendorCDR_20' ) start [2025-03-28 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782456', 'tblTempVendorCDR_20' ) end [2025-03-28 15:34:22] Production.INFO: ProcessCDR(1,14782456,1,1,2) [2025-03-28 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782456', 'tblTempUsageDetail_20' ) start [2025-03-28 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782456', 'tblTempUsageDetail_20' ) end [2025-03-28 15:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:34:28] Production.INFO: ==14650== Releasing lock... [2025-03-28 15:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:34:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:35:06 [end_date_ymd] => 2025-03-28 15:35:06 [RateCDR] => 1 ) [2025-03-28 15: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-28 12:35:06' and `end` < '2025-03-28 15: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-28 15:35:20] Production.INFO: count ==5386 [2025-03-28 15:35:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:35:06 - End Time 2025-03-28 15:35:06 [2025-03-28 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782461', 'tblTempUsageDetail_20' ) start [2025-03-28 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782461', 'tblTempUsageDetail_20' ) end [2025-03-28 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782461', 'tblTempVendorCDR_20' ) start [2025-03-28 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782461', 'tblTempVendorCDR_20' ) end [2025-03-28 15:35:22] Production.INFO: ProcessCDR(1,14782461,1,1,2) [2025-03-28 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782461', 'tblTempUsageDetail_20' ) start [2025-03-28 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782461', 'tblTempUsageDetail_20' ) end [2025-03-28 15:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:35:28] Production.INFO: ==14760== Releasing lock... [2025-03-28 15:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:35:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:36:06 [end_date_ymd] => 2025-03-28 15:36:06 [RateCDR] => 1 ) [2025-03-28 15:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:36:06' and `end` < '2025-03-28 15:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:36:20] Production.INFO: count ==5363 [2025-03-28 15:36:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:36:06 - End Time 2025-03-28 15:36:06 [2025-03-28 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782466', 'tblTempUsageDetail_20' ) start [2025-03-28 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782466', 'tblTempUsageDetail_20' ) end [2025-03-28 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782466', 'tblTempVendorCDR_20' ) start [2025-03-28 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782466', 'tblTempVendorCDR_20' ) end [2025-03-28 15:36:23] Production.INFO: ProcessCDR(1,14782466,1,1,2) [2025-03-28 15:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782466', 'tblTempUsageDetail_20' ) start [2025-03-28 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782466', 'tblTempUsageDetail_20' ) end [2025-03-28 15:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:36:28] Production.INFO: ==14855== Releasing lock... [2025-03-28 15:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:36:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:37:06 [end_date_ymd] => 2025-03-28 15:37:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:37:06' and `end` < '2025-03-28 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-28 15:37:20] Production.INFO: count ==5356 [2025-03-28 15:37:23] Production.ERROR: pbx CDR StartTime 2025-03-28 12:37:06 - End Time 2025-03-28 15:37:06 [2025-03-28 15:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782471', 'tblTempUsageDetail_20' ) start [2025-03-28 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782471', 'tblTempUsageDetail_20' ) end [2025-03-28 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782471', 'tblTempVendorCDR_20' ) start [2025-03-28 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782471', 'tblTempVendorCDR_20' ) end [2025-03-28 15:37:23] Production.INFO: ProcessCDR(1,14782471,1,1,2) [2025-03-28 15:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782471', 'tblTempUsageDetail_20' ) start [2025-03-28 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782471', 'tblTempUsageDetail_20' ) end [2025-03-28 15:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:37:28] Production.INFO: ==14951== Releasing lock... [2025-03-28 15:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:37:28] Production.INFO: 68 MB #Memory Used# [2025-03-28 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:38:05 [end_date_ymd] => 2025-03-28 15:38:05 [RateCDR] => 1 ) [2025-03-28 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-28 12:38:05' and `end` < '2025-03-28 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-28 15:38:19] Production.INFO: count ==5354 [2025-03-28 15:38:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:38:05 - End Time 2025-03-28 15:38:05 [2025-03-28 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782476', 'tblTempUsageDetail_20' ) start [2025-03-28 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782476', 'tblTempUsageDetail_20' ) end [2025-03-28 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782476', 'tblTempVendorCDR_20' ) start [2025-03-28 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782476', 'tblTempVendorCDR_20' ) end [2025-03-28 15:38:22] Production.INFO: ProcessCDR(1,14782476,1,1,2) [2025-03-28 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782476', 'tblTempUsageDetail_20' ) start [2025-03-28 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782476', 'tblTempUsageDetail_20' ) end [2025-03-28 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:38:27] Production.INFO: ==15046== Releasing lock... [2025-03-28 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:38:27] Production.INFO: 68 MB #Memory Used# [2025-03-28 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:39:06 [end_date_ymd] => 2025-03-28 15:39:06 [RateCDR] => 1 ) [2025-03-28 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:39:06' and `end` < '2025-03-28 15:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:39:20] Production.INFO: count ==5378 [2025-03-28 15:39:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:39:06 - End Time 2025-03-28 15:39:06 [2025-03-28 15:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782481', 'tblTempUsageDetail_20' ) start [2025-03-28 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782481', 'tblTempUsageDetail_20' ) end [2025-03-28 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782481', 'tblTempVendorCDR_20' ) start [2025-03-28 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782481', 'tblTempVendorCDR_20' ) end [2025-03-28 15:39:23] Production.INFO: ProcessCDR(1,14782481,1,1,2) [2025-03-28 15:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782481', 'tblTempUsageDetail_20' ) start [2025-03-28 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782481', 'tblTempUsageDetail_20' ) end [2025-03-28 15:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:39:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:39:29] Production.INFO: ==15183== Releasing lock... [2025-03-28 15:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:39:29] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:40:06 [end_date_ymd] => 2025-03-28 15:40:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:40:06' and `end` < '2025-03-28 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-28 15:40:20] Production.INFO: count ==5344 [2025-03-28 15:40:23] Production.ERROR: pbx CDR StartTime 2025-03-28 12:40:06 - End Time 2025-03-28 15:40:06 [2025-03-28 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782487', 'tblTempUsageDetail_20' ) start [2025-03-28 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782487', 'tblTempUsageDetail_20' ) end [2025-03-28 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782487', 'tblTempVendorCDR_20' ) start [2025-03-28 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782487', 'tblTempVendorCDR_20' ) end [2025-03-28 15:40:23] Production.INFO: ProcessCDR(1,14782487,1,1,2) [2025-03-28 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782487', 'tblTempUsageDetail_20' ) start [2025-03-28 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782487', 'tblTempUsageDetail_20' ) end [2025-03-28 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:40:28] Production.INFO: ==15275== Releasing lock... [2025-03-28 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:40:28] Production.INFO: 68 MB #Memory Used# [2025-03-28 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:41:06 [end_date_ymd] => 2025-03-28 15:41:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:41:06' and `end` < '2025-03-28 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-28 15:41:20] Production.INFO: count ==5368 [2025-03-28 15:41:23] Production.ERROR: pbx CDR StartTime 2025-03-28 12:41:06 - End Time 2025-03-28 15:41:06 [2025-03-28 15:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782492', 'tblTempUsageDetail_20' ) start [2025-03-28 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782492', 'tblTempUsageDetail_20' ) end [2025-03-28 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782492', 'tblTempVendorCDR_20' ) start [2025-03-28 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782492', 'tblTempVendorCDR_20' ) end [2025-03-28 15:41:23] Production.INFO: ProcessCDR(1,14782492,1,1,2) [2025-03-28 15:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782492', 'tblTempUsageDetail_20' ) start [2025-03-28 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782492', 'tblTempUsageDetail_20' ) end [2025-03-28 15:41:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:41:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:41:29] Production.INFO: ==15370== Releasing lock... [2025-03-28 15:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:41:29] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:42:06 [end_date_ymd] => 2025-03-28 15:42:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:42:06' and `end` < '2025-03-28 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-28 15:42:20] Production.INFO: count ==5426 [2025-03-28 15:42:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:42:06 - End Time 2025-03-28 15:42:06 [2025-03-28 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782497', 'tblTempUsageDetail_20' ) start [2025-03-28 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782497', 'tblTempUsageDetail_20' ) end [2025-03-28 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782497', 'tblTempVendorCDR_20' ) start [2025-03-28 15:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782497', 'tblTempVendorCDR_20' ) end [2025-03-28 15:42:23] Production.INFO: ProcessCDR(1,14782497,1,1,2) [2025-03-28 15:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782497', 'tblTempUsageDetail_20' ) start [2025-03-28 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782497', 'tblTempUsageDetail_20' ) end [2025-03-28 15:42:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:42:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:42:29] Production.INFO: ==15468== Releasing lock... [2025-03-28 15:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:42:29] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:43:06 [end_date_ymd] => 2025-03-28 15:43:06 [RateCDR] => 1 ) [2025-03-28 15:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:43:06' and `end` < '2025-03-28 15:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:43:19] Production.INFO: count ==5476 [2025-03-28 15:43:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:43:06 - End Time 2025-03-28 15:43:06 [2025-03-28 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782502', 'tblTempUsageDetail_20' ) start [2025-03-28 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782502', 'tblTempUsageDetail_20' ) end [2025-03-28 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782502', 'tblTempVendorCDR_20' ) start [2025-03-28 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782502', 'tblTempVendorCDR_20' ) end [2025-03-28 15:43:22] Production.INFO: ProcessCDR(1,14782502,1,1,2) [2025-03-28 15:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782502', 'tblTempUsageDetail_20' ) start [2025-03-28 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782502', 'tblTempUsageDetail_20' ) end [2025-03-28 15:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:43:28] Production.INFO: ==15559== Releasing lock... [2025-03-28 15:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:43:28] Production.INFO: 69 MB #Memory Used# [2025-03-28 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:44:05 [end_date_ymd] => 2025-03-28 15:44:05 [RateCDR] => 1 ) [2025-03-28 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:44:05' and `end` < '2025-03-28 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:44:19] Production.INFO: count ==5476 [2025-03-28 15:44:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:44:05 - End Time 2025-03-28 15:44:05 [2025-03-28 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782507', 'tblTempUsageDetail_20' ) start [2025-03-28 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782507', 'tblTempUsageDetail_20' ) end [2025-03-28 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782507', 'tblTempVendorCDR_20' ) start [2025-03-28 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782507', 'tblTempVendorCDR_20' ) end [2025-03-28 15:44:22] Production.INFO: ProcessCDR(1,14782507,1,1,2) [2025-03-28 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782507', 'tblTempUsageDetail_20' ) start [2025-03-28 15:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782507', 'tblTempUsageDetail_20' ) end [2025-03-28 15:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:44:28] Production.INFO: ==15649== Releasing lock... [2025-03-28 15:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:44:28] Production.INFO: 69 MB #Memory Used# [2025-03-28 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:45:06 [end_date_ymd] => 2025-03-28 15:45:06 [RateCDR] => 1 ) [2025-03-28 15:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:45:06' and `end` < '2025-03-28 15:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:45:20] Production.INFO: count ==5475 [2025-03-28 15:45:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:45:06 - End Time 2025-03-28 15:45:06 [2025-03-28 15:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782512', 'tblTempUsageDetail_20' ) start [2025-03-28 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782512', 'tblTempUsageDetail_20' ) end [2025-03-28 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782512', 'tblTempVendorCDR_20' ) start [2025-03-28 15:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782512', 'tblTempVendorCDR_20' ) end [2025-03-28 15:45:23] Production.INFO: ProcessCDR(1,14782512,1,1,2) [2025-03-28 15:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782512', 'tblTempUsageDetail_20' ) start [2025-03-28 15:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782512', 'tblTempUsageDetail_20' ) end [2025-03-28 15:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:45:28] Production.INFO: ==15743== Releasing lock... [2025-03-28 15:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:45:28] Production.INFO: 69 MB #Memory Used# [2025-03-28 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:46:06 [end_date_ymd] => 2025-03-28 15:46:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:46:06' and `end` < '2025-03-28 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-28 15:46:19] Production.INFO: count ==5470 [2025-03-28 15:46:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:46:06 - End Time 2025-03-28 15:46:06 [2025-03-28 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782517', 'tblTempUsageDetail_20' ) start [2025-03-28 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782517', 'tblTempUsageDetail_20' ) end [2025-03-28 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782517', 'tblTempVendorCDR_20' ) start [2025-03-28 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782517', 'tblTempVendorCDR_20' ) end [2025-03-28 15:46:22] Production.INFO: ProcessCDR(1,14782517,1,1,2) [2025-03-28 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782517', 'tblTempUsageDetail_20' ) start [2025-03-28 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782517', 'tblTempUsageDetail_20' ) end [2025-03-28 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:46:28] Production.INFO: ==15830== Releasing lock... [2025-03-28 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:46:28] Production.INFO: 69 MB #Memory Used# [2025-03-28 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:47:06 [end_date_ymd] => 2025-03-28 15:47:06 [RateCDR] => 1 ) [2025-03-28 15:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:47:06' and `end` < '2025-03-28 15:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:47:20] Production.INFO: count ==5472 [2025-03-28 15:47:23] Production.ERROR: pbx CDR StartTime 2025-03-28 12:47:06 - End Time 2025-03-28 15:47:06 [2025-03-28 15:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782522', 'tblTempUsageDetail_20' ) start [2025-03-28 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782522', 'tblTempUsageDetail_20' ) end [2025-03-28 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782522', 'tblTempVendorCDR_20' ) start [2025-03-28 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782522', 'tblTempVendorCDR_20' ) end [2025-03-28 15:47:23] Production.INFO: ProcessCDR(1,14782522,1,1,2) [2025-03-28 15:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782522', 'tblTempUsageDetail_20' ) start [2025-03-28 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782522', 'tblTempUsageDetail_20' ) end [2025-03-28 15:47:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:47:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:47:29] Production.INFO: ==15921== Releasing lock... [2025-03-28 15:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:47:29] Production.INFO: 69 MB #Memory Used# [2025-03-28 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:48:05 [end_date_ymd] => 2025-03-28 15:48:05 [RateCDR] => 1 ) [2025-03-28 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-28 12:48:05' and `end` < '2025-03-28 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-28 15:48:19] Production.INFO: count ==5465 [2025-03-28 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-28 12:48:05 - End Time 2025-03-28 15:48:05 [2025-03-28 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782527', 'tblTempUsageDetail_20' ) start [2025-03-28 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782527', 'tblTempUsageDetail_20' ) end [2025-03-28 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782527', 'tblTempVendorCDR_20' ) start [2025-03-28 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782527', 'tblTempVendorCDR_20' ) end [2025-03-28 15:48:22] Production.INFO: ProcessCDR(1,14782527,1,1,2) [2025-03-28 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782527', 'tblTempUsageDetail_20' ) start [2025-03-28 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782527', 'tblTempUsageDetail_20' ) end [2025-03-28 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:48:27] Production.INFO: ==16010== Releasing lock... [2025-03-28 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:48:27] Production.INFO: 69 MB #Memory Used# [2025-03-28 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:49:06 [end_date_ymd] => 2025-03-28 15:49:06 [RateCDR] => 1 ) [2025-03-28 15:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:49:06' and `end` < '2025-03-28 15:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:49:20] Production.INFO: count ==5464 [2025-03-28 15:49:23] Production.ERROR: pbx CDR StartTime 2025-03-28 12:49:06 - End Time 2025-03-28 15:49:06 [2025-03-28 15:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782532', 'tblTempUsageDetail_20' ) start [2025-03-28 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782532', 'tblTempUsageDetail_20' ) end [2025-03-28 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782532', 'tblTempVendorCDR_20' ) start [2025-03-28 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782532', 'tblTempVendorCDR_20' ) end [2025-03-28 15:49:23] Production.INFO: ProcessCDR(1,14782532,1,1,2) [2025-03-28 15:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782532', 'tblTempUsageDetail_20' ) start [2025-03-28 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782532', 'tblTempUsageDetail_20' ) end [2025-03-28 15:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:49:29] Production.INFO: ==16099== Releasing lock... [2025-03-28 15:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:49:29] Production.INFO: 69 MB #Memory Used# [2025-03-28 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:50:06 [end_date_ymd] => 2025-03-28 15:50:06 [RateCDR] => 1 ) [2025-03-28 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:50:06' and `end` < '2025-03-28 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:50:20] Production.INFO: count ==5474 [2025-03-28 15:50:23] Production.ERROR: pbx CDR StartTime 2025-03-28 12:50:06 - End Time 2025-03-28 15:50:06 [2025-03-28 15:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782538', 'tblTempUsageDetail_20' ) start [2025-03-28 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782538', 'tblTempUsageDetail_20' ) end [2025-03-28 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782538', 'tblTempVendorCDR_20' ) start [2025-03-28 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782538', 'tblTempVendorCDR_20' ) end [2025-03-28 15:50:23] Production.INFO: ProcessCDR(1,14782538,1,1,2) [2025-03-28 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782538', 'tblTempUsageDetail_20' ) start [2025-03-28 15:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782538', 'tblTempUsageDetail_20' ) end [2025-03-28 15:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:50:29] Production.INFO: ==16192== Releasing lock... [2025-03-28 15:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:50:29] Production.INFO: 69 MB #Memory Used# [2025-03-28 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:51:06 [end_date_ymd] => 2025-03-28 15:51:06 [RateCDR] => 1 ) [2025-03-28 15:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:51:06' and `end` < '2025-03-28 15:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:51:20] Production.INFO: count ==5522 [2025-03-28 15:51:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:51:06 - End Time 2025-03-28 15:51:06 [2025-03-28 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782543', 'tblTempUsageDetail_20' ) start [2025-03-28 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782543', 'tblTempUsageDetail_20' ) end [2025-03-28 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782543', 'tblTempVendorCDR_20' ) start [2025-03-28 15:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782543', 'tblTempVendorCDR_20' ) end [2025-03-28 15:51:23] Production.INFO: ProcessCDR(1,14782543,1,1,2) [2025-03-28 15:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782543', 'tblTempUsageDetail_20' ) start [2025-03-28 15:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782543', 'tblTempUsageDetail_20' ) end [2025-03-28 15:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:51:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:51:29] Production.INFO: ==16291== Releasing lock... [2025-03-28 15:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:51:29] Production.INFO: 69.25 MB #Memory Used# [2025-03-28 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:52:05 [end_date_ymd] => 2025-03-28 15:52:05 [RateCDR] => 1 ) [2025-03-28 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:52:05' and `end` < '2025-03-28 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:52:19] Production.INFO: count ==5509 [2025-03-28 15:52:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:52:05 - End Time 2025-03-28 15:52:05 [2025-03-28 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782548', 'tblTempUsageDetail_20' ) start [2025-03-28 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782548', 'tblTempUsageDetail_20' ) end [2025-03-28 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782548', 'tblTempVendorCDR_20' ) start [2025-03-28 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782548', 'tblTempVendorCDR_20' ) end [2025-03-28 15:52:22] Production.INFO: ProcessCDR(1,14782548,1,1,2) [2025-03-28 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782548', 'tblTempUsageDetail_20' ) start [2025-03-28 15:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782548', 'tblTempUsageDetail_20' ) end [2025-03-28 15:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:52:28] Production.INFO: ==16381== Releasing lock... [2025-03-28 15:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:52:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-28 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:53:06 [end_date_ymd] => 2025-03-28 15:53:06 [RateCDR] => 1 ) [2025-03-28 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:53:06' and `end` < '2025-03-28 15:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:53:20] Production.INFO: count ==5523 [2025-03-28 15:53:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:53:06 - End Time 2025-03-28 15:53:06 [2025-03-28 15:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782553', 'tblTempUsageDetail_20' ) start [2025-03-28 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782553', 'tblTempUsageDetail_20' ) end [2025-03-28 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782553', 'tblTempVendorCDR_20' ) start [2025-03-28 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782553', 'tblTempVendorCDR_20' ) end [2025-03-28 15:53:23] Production.INFO: ProcessCDR(1,14782553,1,1,2) [2025-03-28 15:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782553', 'tblTempUsageDetail_20' ) start [2025-03-28 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782553', 'tblTempUsageDetail_20' ) end [2025-03-28 15:53:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:53:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:53:28] Production.INFO: ==16470== Releasing lock... [2025-03-28 15:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:53:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-28 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:54:05 [end_date_ymd] => 2025-03-28 15:54:05 [RateCDR] => 1 ) [2025-03-28 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-28 12:54:05' and `end` < '2025-03-28 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-28 15:54:19] Production.INFO: count ==5522 [2025-03-28 15:54:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:54:05 - End Time 2025-03-28 15:54:05 [2025-03-28 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782558', 'tblTempUsageDetail_20' ) start [2025-03-28 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782558', 'tblTempUsageDetail_20' ) end [2025-03-28 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782558', 'tblTempVendorCDR_20' ) start [2025-03-28 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782558', 'tblTempVendorCDR_20' ) end [2025-03-28 15:54:22] Production.INFO: ProcessCDR(1,14782558,1,1,2) [2025-03-28 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782558', 'tblTempUsageDetail_20' ) start [2025-03-28 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782558', 'tblTempUsageDetail_20' ) end [2025-03-28 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:54:27] Production.INFO: ==16596== Releasing lock... [2025-03-28 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:54:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-28 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:55:06 [end_date_ymd] => 2025-03-28 15:55:06 [RateCDR] => 1 ) [2025-03-28 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:55:06' and `end` < '2025-03-28 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:55:20] Production.INFO: count ==5519 [2025-03-28 15:55:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:55:06 - End Time 2025-03-28 15:55:06 [2025-03-28 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782563', 'tblTempUsageDetail_20' ) start [2025-03-28 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782563', 'tblTempUsageDetail_20' ) end [2025-03-28 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782563', 'tblTempVendorCDR_20' ) start [2025-03-28 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782563', 'tblTempVendorCDR_20' ) end [2025-03-28 15:55:22] Production.INFO: ProcessCDR(1,14782563,1,1,2) [2025-03-28 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782563', 'tblTempUsageDetail_20' ) start [2025-03-28 15:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782563', 'tblTempUsageDetail_20' ) end [2025-03-28 15:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:55:28] Production.INFO: ==16692== Releasing lock... [2025-03-28 15:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:55:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-28 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:56:05 [end_date_ymd] => 2025-03-28 15:56:05 [RateCDR] => 1 ) [2025-03-28 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-28 12:56:05' and `end` < '2025-03-28 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-28 15:56:19] Production.INFO: count ==5517 [2025-03-28 15:56:21] Production.ERROR: pbx CDR StartTime 2025-03-28 12:56:05 - End Time 2025-03-28 15:56:05 [2025-03-28 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782568', 'tblTempUsageDetail_20' ) start [2025-03-28 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782568', 'tblTempUsageDetail_20' ) end [2025-03-28 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782568', 'tblTempVendorCDR_20' ) start [2025-03-28 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782568', 'tblTempVendorCDR_20' ) end [2025-03-28 15:56:22] Production.INFO: ProcessCDR(1,14782568,1,1,2) [2025-03-28 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782568', 'tblTempUsageDetail_20' ) start [2025-03-28 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782568', 'tblTempUsageDetail_20' ) end [2025-03-28 15:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:56:28] Production.INFO: ==16784== Releasing lock... [2025-03-28 15:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:56:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-28 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:57:06 [end_date_ymd] => 2025-03-28 15:57:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:57:06' and `end` < '2025-03-28 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-28 15:57:20] Production.INFO: count ==5511 [2025-03-28 15:57:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:57:06 - End Time 2025-03-28 15:57:06 [2025-03-28 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782573', 'tblTempUsageDetail_20' ) start [2025-03-28 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782573', 'tblTempUsageDetail_20' ) end [2025-03-28 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782573', 'tblTempVendorCDR_20' ) start [2025-03-28 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782573', 'tblTempVendorCDR_20' ) end [2025-03-28 15:57:23] Production.INFO: ProcessCDR(1,14782573,1,1,2) [2025-03-28 15:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782573', 'tblTempUsageDetail_20' ) start [2025-03-28 15:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782573', 'tblTempUsageDetail_20' ) end [2025-03-28 15:57:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:57:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:57:29] Production.INFO: ==16872== Releasing lock... [2025-03-28 15:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:57:29] Production.INFO: 69.25 MB #Memory Used# [2025-03-28 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:58:06 [end_date_ymd] => 2025-03-28 15:58:06 [RateCDR] => 1 ) [2025-03-28 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 12:58:06' and `end` < '2025-03-28 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 15:58:19] Production.INFO: count ==5525 [2025-03-28 15:58:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:58:06 - End Time 2025-03-28 15:58:06 [2025-03-28 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782578', 'tblTempUsageDetail_20' ) start [2025-03-28 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782578', 'tblTempUsageDetail_20' ) end [2025-03-28 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782578', 'tblTempVendorCDR_20' ) start [2025-03-28 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782578', 'tblTempVendorCDR_20' ) end [2025-03-28 15:58:22] Production.INFO: ProcessCDR(1,14782578,1,1,2) [2025-03-28 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782578', 'tblTempUsageDetail_20' ) start [2025-03-28 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782578', 'tblTempUsageDetail_20' ) end [2025-03-28 15:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:58:28] Production.INFO: ==16963== Releasing lock... [2025-03-28 15:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:58:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-28 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 12:59:06 [end_date_ymd] => 2025-03-28 15:59:06 [RateCDR] => 1 ) [2025-03-28 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-28 12:59:06' and `end` < '2025-03-28 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-28 15:59:20] Production.INFO: count ==5519 [2025-03-28 15:59:22] Production.ERROR: pbx CDR StartTime 2025-03-28 12:59:06 - End Time 2025-03-28 15:59:06 [2025-03-28 15:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782583', 'tblTempUsageDetail_20' ) start [2025-03-28 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782583', 'tblTempUsageDetail_20' ) end [2025-03-28 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782583', 'tblTempVendorCDR_20' ) start [2025-03-28 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782583', 'tblTempVendorCDR_20' ) end [2025-03-28 15:59:22] Production.INFO: ProcessCDR(1,14782583,1,1,2) [2025-03-28 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 15:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782583', 'tblTempUsageDetail_20' ) start [2025-03-28 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782583', 'tblTempUsageDetail_20' ) end [2025-03-28 15:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 15:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 15:59:28] Production.INFO: ==17046== Releasing lock... [2025-03-28 15:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 15:59:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-28 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:00:07 [end_date_ymd] => 2025-03-28 16:00:07 [RateCDR] => 1 ) [2025-03-28 16:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:00:07' and `end` < '2025-03-28 16:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:00:20] Production.INFO: count ==5525 [2025-03-28 16:00:23] Production.ERROR: pbx CDR StartTime 2025-03-28 13:00:07 - End Time 2025-03-28 16:00:07 [2025-03-28 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782589', 'tblTempUsageDetail_20' ) start [2025-03-28 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782589', 'tblTempUsageDetail_20' ) end [2025-03-28 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782589', 'tblTempVendorCDR_20' ) start [2025-03-28 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782589', 'tblTempVendorCDR_20' ) end [2025-03-28 16:00:23] Production.INFO: ProcessCDR(1,14782589,1,1,2) [2025-03-28 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782589', 'tblTempUsageDetail_20' ) start [2025-03-28 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782589', 'tblTempUsageDetail_20' ) end [2025-03-28 16:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:00:29] Production.INFO: ==17136== Releasing lock... [2025-03-28 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:00:29] Production.INFO: 69.25 MB #Memory Used# [2025-03-28 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:01:06 [end_date_ymd] => 2025-03-28 16:01:06 [RateCDR] => 1 ) [2025-03-28 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-28 13:01:06' and `end` < '2025-03-28 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-28 16:01:20] Production.INFO: count ==5545 [2025-03-28 16:01:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:01:06 - End Time 2025-03-28 16:01:06 [2025-03-28 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782594', 'tblTempUsageDetail_20' ) start [2025-03-28 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782594', 'tblTempUsageDetail_20' ) end [2025-03-28 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782594', 'tblTempVendorCDR_20' ) start [2025-03-28 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782594', 'tblTempVendorCDR_20' ) end [2025-03-28 16:01:22] Production.INFO: ProcessCDR(1,14782594,1,1,2) [2025-03-28 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782594', 'tblTempUsageDetail_20' ) start [2025-03-28 16:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782594', 'tblTempUsageDetail_20' ) end [2025-03-28 16:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:01:28] Production.INFO: ==17237== Releasing lock... [2025-03-28 16:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:01:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-28 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:02:05 [end_date_ymd] => 2025-03-28 16:02:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:02:05' and `end` < '2025-03-28 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-28 16:02:19] Production.INFO: count ==5529 [2025-03-28 16:02:21] Production.ERROR: pbx CDR StartTime 2025-03-28 13:02:05 - End Time 2025-03-28 16:02:05 [2025-03-28 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782599', 'tblTempUsageDetail_20' ) start [2025-03-28 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782599', 'tblTempUsageDetail_20' ) end [2025-03-28 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782599', 'tblTempVendorCDR_20' ) start [2025-03-28 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782599', 'tblTempVendorCDR_20' ) end [2025-03-28 16:02:22] Production.INFO: ProcessCDR(1,14782599,1,1,2) [2025-03-28 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782599', 'tblTempUsageDetail_20' ) start [2025-03-28 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782599', 'tblTempUsageDetail_20' ) end [2025-03-28 16:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:02:28] Production.INFO: ==17324== Releasing lock... [2025-03-28 16:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:02:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-28 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:03:06 [end_date_ymd] => 2025-03-28 16:03:06 [RateCDR] => 1 ) [2025-03-28 16:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:03:06' and `end` < '2025-03-28 16:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:03:20] Production.INFO: count ==5543 [2025-03-28 16:03:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:03:06 - End Time 2025-03-28 16:03:06 [2025-03-28 16:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782604', 'tblTempUsageDetail_20' ) start [2025-03-28 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782604', 'tblTempUsageDetail_20' ) end [2025-03-28 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782604', 'tblTempVendorCDR_20' ) start [2025-03-28 16:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782604', 'tblTempVendorCDR_20' ) end [2025-03-28 16:03:22] Production.INFO: ProcessCDR(1,14782604,1,1,2) [2025-03-28 16:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782604', 'tblTempUsageDetail_20' ) start [2025-03-28 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782604', 'tblTempUsageDetail_20' ) end [2025-03-28 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:03:27] Production.INFO: ==17412== Releasing lock... [2025-03-28 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:03:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-28 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:04:06 [end_date_ymd] => 2025-03-28 16:04:06 [RateCDR] => 1 ) [2025-03-28 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:04:06' and `end` < '2025-03-28 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:04:20] Production.INFO: count ==5552 [2025-03-28 16:04:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:04:06 - End Time 2025-03-28 16:04:06 [2025-03-28 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782609', 'tblTempUsageDetail_20' ) start [2025-03-28 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782609', 'tblTempUsageDetail_20' ) end [2025-03-28 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782609', 'tblTempVendorCDR_20' ) start [2025-03-28 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782609', 'tblTempVendorCDR_20' ) end [2025-03-28 16:04:23] Production.INFO: ProcessCDR(1,14782609,1,1,2) [2025-03-28 16:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782609', 'tblTempUsageDetail_20' ) start [2025-03-28 16:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782609', 'tblTempUsageDetail_20' ) end [2025-03-28 16:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:04:28] Production.INFO: ==17498== Releasing lock... [2025-03-28 16:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:04:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-28 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:05:06 [end_date_ymd] => 2025-03-28 16:05:06 [RateCDR] => 1 ) [2025-03-28 16:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:05:06' and `end` < '2025-03-28 16:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:05:20] Production.INFO: count ==5576 [2025-03-28 16:05:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:05:06 - End Time 2025-03-28 16:05:06 [2025-03-28 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782614', 'tblTempUsageDetail_20' ) start [2025-03-28 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782614', 'tblTempUsageDetail_20' ) end [2025-03-28 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782614', 'tblTempVendorCDR_20' ) start [2025-03-28 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782614', 'tblTempVendorCDR_20' ) end [2025-03-28 16:05:23] Production.INFO: ProcessCDR(1,14782614,1,1,2) [2025-03-28 16:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782614', 'tblTempUsageDetail_20' ) start [2025-03-28 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782614', 'tblTempUsageDetail_20' ) end [2025-03-28 16:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:05:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:05:29] Production.INFO: ==17585== Releasing lock... [2025-03-28 16:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:05:29] Production.INFO: 69.75 MB #Memory Used# [2025-03-28 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:06:06 [end_date_ymd] => 2025-03-28 16:06:06 [RateCDR] => 1 ) [2025-03-28 16:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:06:06' and `end` < '2025-03-28 16:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:06:20] Production.INFO: count ==5575 [2025-03-28 16:06:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:06:06 - End Time 2025-03-28 16:06:06 [2025-03-28 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782619', 'tblTempUsageDetail_20' ) start [2025-03-28 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782619', 'tblTempUsageDetail_20' ) end [2025-03-28 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782619', 'tblTempVendorCDR_20' ) start [2025-03-28 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782619', 'tblTempVendorCDR_20' ) end [2025-03-28 16:06:23] Production.INFO: ProcessCDR(1,14782619,1,1,2) [2025-03-28 16:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782619', 'tblTempUsageDetail_20' ) start [2025-03-28 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782619', 'tblTempUsageDetail_20' ) end [2025-03-28 16:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:06:28] Production.INFO: ==17672== Releasing lock... [2025-03-28 16:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:06:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-28 16:07:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:07:07 [end_date_ymd] => 2025-03-28 16:07:07 [RateCDR] => 1 ) [2025-03-28 16:07: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-28 13:07:07' and `end` < '2025-03-28 16:07: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-28 16:07:20] Production.INFO: count ==5584 [2025-03-28 16:07:23] Production.ERROR: pbx CDR StartTime 2025-03-28 13:07:07 - End Time 2025-03-28 16:07:07 [2025-03-28 16:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782624', 'tblTempUsageDetail_20' ) start [2025-03-28 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782624', 'tblTempUsageDetail_20' ) end [2025-03-28 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782624', 'tblTempVendorCDR_20' ) start [2025-03-28 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782624', 'tblTempVendorCDR_20' ) end [2025-03-28 16:07:23] Production.INFO: ProcessCDR(1,14782624,1,1,2) [2025-03-28 16:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782624', 'tblTempUsageDetail_20' ) start [2025-03-28 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782624', 'tblTempUsageDetail_20' ) end [2025-03-28 16:07:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:07:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:07:29] Production.INFO: ==17759== Releasing lock... [2025-03-28 16:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:07:29] Production.INFO: 69.75 MB #Memory Used# [2025-03-28 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:08:06 [end_date_ymd] => 2025-03-28 16:08:06 [RateCDR] => 1 ) [2025-03-28 16:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:08:06' and `end` < '2025-03-28 16:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:08:20] Production.INFO: count ==5573 [2025-03-28 16:08:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:08:06 - End Time 2025-03-28 16:08:06 [2025-03-28 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782629', 'tblTempUsageDetail_20' ) start [2025-03-28 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782629', 'tblTempUsageDetail_20' ) end [2025-03-28 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782629', 'tblTempVendorCDR_20' ) start [2025-03-28 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782629', 'tblTempVendorCDR_20' ) end [2025-03-28 16:08:23] Production.INFO: ProcessCDR(1,14782629,1,1,2) [2025-03-28 16:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782629', 'tblTempUsageDetail_20' ) start [2025-03-28 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782629', 'tblTempUsageDetail_20' ) end [2025-03-28 16:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:08:28] Production.INFO: ==17852== Releasing lock... [2025-03-28 16:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:08:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-28 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:09:06 [end_date_ymd] => 2025-03-28 16:09:06 [RateCDR] => 1 ) [2025-03-28 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-28 13:09:06' and `end` < '2025-03-28 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-28 16:09:20] Production.INFO: count ==5569 [2025-03-28 16:09:23] Production.ERROR: pbx CDR StartTime 2025-03-28 13:09:06 - End Time 2025-03-28 16:09:06 [2025-03-28 16:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782634', 'tblTempUsageDetail_20' ) start [2025-03-28 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782634', 'tblTempUsageDetail_20' ) end [2025-03-28 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782634', 'tblTempVendorCDR_20' ) start [2025-03-28 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782634', 'tblTempVendorCDR_20' ) end [2025-03-28 16:09:23] Production.INFO: ProcessCDR(1,14782634,1,1,2) [2025-03-28 16:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782634', 'tblTempUsageDetail_20' ) start [2025-03-28 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782634', 'tblTempUsageDetail_20' ) end [2025-03-28 16:09:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:09:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:09:30] Production.INFO: ==17943== Releasing lock... [2025-03-28 16:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:09:30] Production.INFO: 69.75 MB #Memory Used# [2025-03-28 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:10:07 [end_date_ymd] => 2025-03-28 16:10:07 [RateCDR] => 1 ) [2025-03-28 16:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:10:07' and `end` < '2025-03-28 16:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:10:20] Production.INFO: count ==5572 [2025-03-28 16:10:23] Production.ERROR: pbx CDR StartTime 2025-03-28 13:10:07 - End Time 2025-03-28 16:10:07 [2025-03-28 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782640', 'tblTempUsageDetail_20' ) start [2025-03-28 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782640', 'tblTempUsageDetail_20' ) end [2025-03-28 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782640', 'tblTempVendorCDR_20' ) start [2025-03-28 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782640', 'tblTempVendorCDR_20' ) end [2025-03-28 16:10:23] Production.INFO: ProcessCDR(1,14782640,1,1,2) [2025-03-28 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782640', 'tblTempUsageDetail_20' ) start [2025-03-28 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782640', 'tblTempUsageDetail_20' ) end [2025-03-28 16:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:10:29] Production.INFO: ==18072== Releasing lock... [2025-03-28 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:10:29] Production.INFO: 69.75 MB #Memory Used# [2025-03-28 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:11:06 [end_date_ymd] => 2025-03-28 16:11:06 [RateCDR] => 1 ) [2025-03-28 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-28 13:11:06' and `end` < '2025-03-28 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-28 16:11:20] Production.INFO: count ==5617 [2025-03-28 16:11:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:11:06 - End Time 2025-03-28 16:11:06 [2025-03-28 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782645', 'tblTempUsageDetail_20' ) start [2025-03-28 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782645', 'tblTempUsageDetail_20' ) end [2025-03-28 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782645', 'tblTempVendorCDR_20' ) start [2025-03-28 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782645', 'tblTempVendorCDR_20' ) end [2025-03-28 16:11:23] Production.INFO: ProcessCDR(1,14782645,1,1,2) [2025-03-28 16:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782645', 'tblTempUsageDetail_20' ) start [2025-03-28 16:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782645', 'tblTempUsageDetail_20' ) end [2025-03-28 16:11:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:11:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:11:29] Production.INFO: ==18160== Releasing lock... [2025-03-28 16:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:11:29] Production.INFO: 70 MB #Memory Used# [2025-03-28 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:12:06 [end_date_ymd] => 2025-03-28 16:12:06 [RateCDR] => 1 ) [2025-03-28 16: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-28 13:12:06' and `end` < '2025-03-28 16: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-28 16:12:20] Production.INFO: count ==5610 [2025-03-28 16:12:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:12:06 - End Time 2025-03-28 16:12:06 [2025-03-28 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782650', 'tblTempUsageDetail_20' ) start [2025-03-28 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782650', 'tblTempUsageDetail_20' ) end [2025-03-28 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782650', 'tblTempVendorCDR_20' ) start [2025-03-28 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782650', 'tblTempVendorCDR_20' ) end [2025-03-28 16:12:22] Production.INFO: ProcessCDR(1,14782650,1,1,2) [2025-03-28 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782650', 'tblTempUsageDetail_20' ) start [2025-03-28 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782650', 'tblTempUsageDetail_20' ) end [2025-03-28 16:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:12:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:12:29] Production.INFO: ==18247== Releasing lock... [2025-03-28 16:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:12:29] Production.INFO: 70 MB #Memory Used# [2025-03-28 16:13:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:13:07 [end_date_ymd] => 2025-03-28 16:13:07 [RateCDR] => 1 ) [2025-03-28 16:13:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:13:07' and `end` < '2025-03-28 16:13:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:13:21] Production.INFO: count ==5594 [2025-03-28 16:13:23] Production.ERROR: pbx CDR StartTime 2025-03-28 13:13:07 - End Time 2025-03-28 16:13:07 [2025-03-28 16:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782655', 'tblTempUsageDetail_20' ) start [2025-03-28 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782655', 'tblTempUsageDetail_20' ) end [2025-03-28 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782655', 'tblTempVendorCDR_20' ) start [2025-03-28 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782655', 'tblTempVendorCDR_20' ) end [2025-03-28 16:13:24] Production.INFO: ProcessCDR(1,14782655,1,1,2) [2025-03-28 16:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782655', 'tblTempUsageDetail_20' ) start [2025-03-28 16:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782655', 'tblTempUsageDetail_20' ) end [2025-03-28 16:13:30] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:13:30] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:13:30] Production.INFO: ==18332== Releasing lock... [2025-03-28 16:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:13:30] Production.INFO: 69.75 MB #Memory Used# [2025-03-28 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:14:06 [end_date_ymd] => 2025-03-28 16:14:06 [RateCDR] => 1 ) [2025-03-28 16:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:14:06' and `end` < '2025-03-28 16:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:14:20] Production.INFO: count ==5602 [2025-03-28 16:14:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:14:06 - End Time 2025-03-28 16:14:06 [2025-03-28 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782660', 'tblTempUsageDetail_20' ) start [2025-03-28 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782660', 'tblTempUsageDetail_20' ) end [2025-03-28 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782660', 'tblTempVendorCDR_20' ) start [2025-03-28 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782660', 'tblTempVendorCDR_20' ) end [2025-03-28 16:14:22] Production.INFO: ProcessCDR(1,14782660,1,1,2) [2025-03-28 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782660', 'tblTempUsageDetail_20' ) start [2025-03-28 16:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782660', 'tblTempUsageDetail_20' ) end [2025-03-28 16:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:14:28] Production.INFO: ==18418== Releasing lock... [2025-03-28 16:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:14:28] Production.INFO: 70 MB #Memory Used# [2025-03-28 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:15:06 [end_date_ymd] => 2025-03-28 16:15:06 [RateCDR] => 1 ) [2025-03-28 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-28 13:15:06' and `end` < '2025-03-28 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-28 16:15:20] Production.INFO: count ==5567 [2025-03-28 16:15:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:15:06 - End Time 2025-03-28 16:15:06 [2025-03-28 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782665', 'tblTempUsageDetail_20' ) start [2025-03-28 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782665', 'tblTempUsageDetail_20' ) end [2025-03-28 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782665', 'tblTempVendorCDR_20' ) start [2025-03-28 16:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782665', 'tblTempVendorCDR_20' ) end [2025-03-28 16:15:23] Production.INFO: ProcessCDR(1,14782665,1,1,2) [2025-03-28 16:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782665', 'tblTempUsageDetail_20' ) start [2025-03-28 16:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782665', 'tblTempUsageDetail_20' ) end [2025-03-28 16:15:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:15:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:15:29] Production.INFO: ==18505== Releasing lock... [2025-03-28 16:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:15:29] Production.INFO: 69.75 MB #Memory Used# [2025-03-28 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:16:05 [end_date_ymd] => 2025-03-28 16:16:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:16:05' and `end` < '2025-03-28 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-28 16:16:20] Production.INFO: count ==5547 [2025-03-28 16:16:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:16:05 - End Time 2025-03-28 16:16:05 [2025-03-28 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782670', 'tblTempUsageDetail_20' ) start [2025-03-28 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782670', 'tblTempUsageDetail_20' ) end [2025-03-28 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782670', 'tblTempVendorCDR_20' ) start [2025-03-28 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782670', 'tblTempVendorCDR_20' ) end [2025-03-28 16:16:22] Production.INFO: ProcessCDR(1,14782670,1,1,2) [2025-03-28 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782670', 'tblTempUsageDetail_20' ) start [2025-03-28 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782670', 'tblTempUsageDetail_20' ) end [2025-03-28 16:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:16:28] Production.INFO: ==18593== Releasing lock... [2025-03-28 16:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:16:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-28 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:17:05 [end_date_ymd] => 2025-03-28 16:17:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:17:05' and `end` < '2025-03-28 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-28 16:17:19] Production.INFO: count ==5540 [2025-03-28 16:17:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:17:05 - End Time 2025-03-28 16:17:05 [2025-03-28 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782675', 'tblTempUsageDetail_20' ) start [2025-03-28 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782675', 'tblTempUsageDetail_20' ) end [2025-03-28 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782675', 'tblTempVendorCDR_20' ) start [2025-03-28 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782675', 'tblTempVendorCDR_20' ) end [2025-03-28 16:17:22] Production.INFO: ProcessCDR(1,14782675,1,1,2) [2025-03-28 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782675', 'tblTempUsageDetail_20' ) start [2025-03-28 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782675', 'tblTempUsageDetail_20' ) end [2025-03-28 16:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:17:28] Production.INFO: ==18689== Releasing lock... [2025-03-28 16:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:17:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-28 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:18:06 [end_date_ymd] => 2025-03-28 16:18:06 [RateCDR] => 1 ) [2025-03-28 16:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:18:06' and `end` < '2025-03-28 16:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:18:20] Production.INFO: count ==5531 [2025-03-28 16:18:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:18:06 - End Time 2025-03-28 16:18:06 [2025-03-28 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782680', 'tblTempUsageDetail_20' ) start [2025-03-28 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782680', 'tblTempUsageDetail_20' ) end [2025-03-28 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782680', 'tblTempVendorCDR_20' ) start [2025-03-28 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782680', 'tblTempVendorCDR_20' ) end [2025-03-28 16:18:22] Production.INFO: ProcessCDR(1,14782680,1,1,2) [2025-03-28 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782680', 'tblTempUsageDetail_20' ) start [2025-03-28 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782680', 'tblTempUsageDetail_20' ) end [2025-03-28 16:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:18:28] Production.INFO: ==18776== Releasing lock... [2025-03-28 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:18:28] Production.INFO: 69.75 MB #Memory Used# [2025-03-28 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:19:05 [end_date_ymd] => 2025-03-28 16:19:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:19:05' and `end` < '2025-03-28 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-28 16:19:19] Production.INFO: count ==5502 [2025-03-28 16:19:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:19:05 - End Time 2025-03-28 16:19:05 [2025-03-28 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782685', 'tblTempUsageDetail_20' ) start [2025-03-28 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782685', 'tblTempUsageDetail_20' ) end [2025-03-28 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782685', 'tblTempVendorCDR_20' ) start [2025-03-28 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782685', 'tblTempVendorCDR_20' ) end [2025-03-28 16:19:22] Production.INFO: ProcessCDR(1,14782685,1,1,2) [2025-03-28 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782685', 'tblTempUsageDetail_20' ) start [2025-03-28 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782685', 'tblTempUsageDetail_20' ) end [2025-03-28 16:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:19:28] Production.INFO: ==18861== Releasing lock... [2025-03-28 16:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:19:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-28 16:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:20:07 [end_date_ymd] => 2025-03-28 16:20:07 [RateCDR] => 1 ) [2025-03-28 16:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:20:07' and `end` < '2025-03-28 16:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:20:21] Production.INFO: count ==5493 [2025-03-28 16:20:24] Production.ERROR: pbx CDR StartTime 2025-03-28 13:20:07 - End Time 2025-03-28 16:20:07 [2025-03-28 16:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782691', 'tblTempUsageDetail_20' ) start [2025-03-28 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782691', 'tblTempUsageDetail_20' ) end [2025-03-28 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782691', 'tblTempVendorCDR_20' ) start [2025-03-28 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782691', 'tblTempVendorCDR_20' ) end [2025-03-28 16:20:24] Production.INFO: ProcessCDR(1,14782691,1,1,2) [2025-03-28 16:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782691', 'tblTempUsageDetail_20' ) start [2025-03-28 16:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782691', 'tblTempUsageDetail_20' ) end [2025-03-28 16:20:30] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:20:30] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:20:30] Production.INFO: ==18954== Releasing lock... [2025-03-28 16:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:20:30] Production.INFO: 69 MB #Memory Used# [2025-03-28 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:21:05 [end_date_ymd] => 2025-03-28 16:21:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:21:05' and `end` < '2025-03-28 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-28 16:21:19] Production.INFO: count ==5479 [2025-03-28 16:21:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:21:05 - End Time 2025-03-28 16:21:05 [2025-03-28 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782696', 'tblTempUsageDetail_20' ) start [2025-03-28 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782696', 'tblTempUsageDetail_20' ) end [2025-03-28 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782696', 'tblTempVendorCDR_20' ) start [2025-03-28 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782696', 'tblTempVendorCDR_20' ) end [2025-03-28 16:21:22] Production.INFO: ProcessCDR(1,14782696,1,1,2) [2025-03-28 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782696', 'tblTempUsageDetail_20' ) start [2025-03-28 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782696', 'tblTempUsageDetail_20' ) end [2025-03-28 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:21:26] Production.INFO: ==19044== Releasing lock... [2025-03-28 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:21:26] Production.INFO: 69 MB #Memory Used# [2025-03-28 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:22:05 [end_date_ymd] => 2025-03-28 16:22:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:22:05' and `end` < '2025-03-28 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-28 16:22:19] Production.INFO: count ==5463 [2025-03-28 16:22:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:22:05 - End Time 2025-03-28 16:22:05 [2025-03-28 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782701', 'tblTempUsageDetail_20' ) start [2025-03-28 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782701', 'tblTempUsageDetail_20' ) end [2025-03-28 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782701', 'tblTempVendorCDR_20' ) start [2025-03-28 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782701', 'tblTempVendorCDR_20' ) end [2025-03-28 16:22:22] Production.INFO: ProcessCDR(1,14782701,1,1,2) [2025-03-28 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782701', 'tblTempUsageDetail_20' ) start [2025-03-28 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782701', 'tblTempUsageDetail_20' ) end [2025-03-28 16:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:22:28] Production.INFO: ==19136== Releasing lock... [2025-03-28 16:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:22:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-28 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:23:05 [end_date_ymd] => 2025-03-28 16:23:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:23:05' and `end` < '2025-03-28 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-28 16:23:19] Production.INFO: count ==5454 [2025-03-28 16:23:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:23:05 - End Time 2025-03-28 16:23:05 [2025-03-28 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782706', 'tblTempUsageDetail_20' ) start [2025-03-28 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782706', 'tblTempUsageDetail_20' ) end [2025-03-28 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782706', 'tblTempVendorCDR_20' ) start [2025-03-28 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782706', 'tblTempVendorCDR_20' ) end [2025-03-28 16:23:22] Production.INFO: ProcessCDR(1,14782706,1,1,2) [2025-03-28 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782706', 'tblTempUsageDetail_20' ) start [2025-03-28 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782706', 'tblTempUsageDetail_20' ) end [2025-03-28 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:23:27] Production.INFO: ==19223== Releasing lock... [2025-03-28 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:23:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-28 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:24:06 [end_date_ymd] => 2025-03-28 16:24:06 [RateCDR] => 1 ) [2025-03-28 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-28 13:24:06' and `end` < '2025-03-28 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-28 16:24:19] Production.INFO: count ==5439 [2025-03-28 16:24:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:24:06 - End Time 2025-03-28 16:24:06 [2025-03-28 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782711', 'tblTempUsageDetail_20' ) start [2025-03-28 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782711', 'tblTempUsageDetail_20' ) end [2025-03-28 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782711', 'tblTempVendorCDR_20' ) start [2025-03-28 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782711', 'tblTempVendorCDR_20' ) end [2025-03-28 16:24:22] Production.INFO: ProcessCDR(1,14782711,1,1,2) [2025-03-28 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782711', 'tblTempUsageDetail_20' ) start [2025-03-28 16:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782711', 'tblTempUsageDetail_20' ) end [2025-03-28 16:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:24:28] Production.INFO: ==19309== Releasing lock... [2025-03-28 16:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:24:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-28 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:25:06 [end_date_ymd] => 2025-03-28 16:25:06 [RateCDR] => 1 ) [2025-03-28 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:25:06' and `end` < '2025-03-28 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:25:19] Production.INFO: count ==5417 [2025-03-28 16:25:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:25:06 - End Time 2025-03-28 16:25:06 [2025-03-28 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782716', 'tblTempUsageDetail_20' ) start [2025-03-28 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782716', 'tblTempUsageDetail_20' ) end [2025-03-28 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782716', 'tblTempVendorCDR_20' ) start [2025-03-28 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782716', 'tblTempVendorCDR_20' ) end [2025-03-28 16:25:22] Production.INFO: ProcessCDR(1,14782716,1,1,2) [2025-03-28 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782716', 'tblTempUsageDetail_20' ) start [2025-03-28 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782716', 'tblTempUsageDetail_20' ) end [2025-03-28 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:25:28] Production.INFO: ==19433== Releasing lock... [2025-03-28 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:25:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:26:05 [end_date_ymd] => 2025-03-28 16:26:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:26:05' and `end` < '2025-03-28 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-28 16:26:19] Production.INFO: count ==5413 [2025-03-28 16:26:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:26:05 - End Time 2025-03-28 16:26:05 [2025-03-28 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782721', 'tblTempUsageDetail_20' ) start [2025-03-28 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782721', 'tblTempUsageDetail_20' ) end [2025-03-28 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782721', 'tblTempVendorCDR_20' ) start [2025-03-28 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782721', 'tblTempVendorCDR_20' ) end [2025-03-28 16:26:22] Production.INFO: ProcessCDR(1,14782721,1,1,2) [2025-03-28 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782721', 'tblTempUsageDetail_20' ) start [2025-03-28 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782721', 'tblTempUsageDetail_20' ) end [2025-03-28 16:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:26:28] Production.INFO: ==19524== Releasing lock... [2025-03-28 16:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:26:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:27:05 [end_date_ymd] => 2025-03-28 16:27:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:27:05' and `end` < '2025-03-28 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-28 16:27:19] Production.INFO: count ==5403 [2025-03-28 16:27:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:27:05 - End Time 2025-03-28 16:27:05 [2025-03-28 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782726', 'tblTempUsageDetail_20' ) start [2025-03-28 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782726', 'tblTempUsageDetail_20' ) end [2025-03-28 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782726', 'tblTempVendorCDR_20' ) start [2025-03-28 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782726', 'tblTempVendorCDR_20' ) end [2025-03-28 16:27:22] Production.INFO: ProcessCDR(1,14782726,1,1,2) [2025-03-28 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782726', 'tblTempUsageDetail_20' ) start [2025-03-28 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782726', 'tblTempUsageDetail_20' ) end [2025-03-28 16:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:27:28] Production.INFO: ==19612== Releasing lock... [2025-03-28 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:27:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:28:06 [end_date_ymd] => 2025-03-28 16:28:06 [RateCDR] => 1 ) [2025-03-28 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-28 13:28:06' and `end` < '2025-03-28 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-28 16:28:19] Production.INFO: count ==5390 [2025-03-28 16:28:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:28:06 - End Time 2025-03-28 16:28:06 [2025-03-28 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782731', 'tblTempUsageDetail_20' ) start [2025-03-28 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782731', 'tblTempUsageDetail_20' ) end [2025-03-28 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782731', 'tblTempVendorCDR_20' ) start [2025-03-28 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782731', 'tblTempVendorCDR_20' ) end [2025-03-28 16:28:22] Production.INFO: ProcessCDR(1,14782731,1,1,2) [2025-03-28 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782731', 'tblTempUsageDetail_20' ) start [2025-03-28 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782731', 'tblTempUsageDetail_20' ) end [2025-03-28 16:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:28:28] Production.INFO: ==19698== Releasing lock... [2025-03-28 16:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:28:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:29:06 [end_date_ymd] => 2025-03-28 16:29:06 [RateCDR] => 1 ) [2025-03-28 16:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:29:06' and `end` < '2025-03-28 16:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:29:20] Production.INFO: count ==5401 [2025-03-28 16:29:23] Production.ERROR: pbx CDR StartTime 2025-03-28 13:29:06 - End Time 2025-03-28 16:29:06 [2025-03-28 16:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782736', 'tblTempUsageDetail_20' ) start [2025-03-28 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782736', 'tblTempUsageDetail_20' ) end [2025-03-28 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782736', 'tblTempVendorCDR_20' ) start [2025-03-28 16:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782736', 'tblTempVendorCDR_20' ) end [2025-03-28 16:29:23] Production.INFO: ProcessCDR(1,14782736,1,1,2) [2025-03-28 16:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782736', 'tblTempUsageDetail_20' ) start [2025-03-28 16:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782736', 'tblTempUsageDetail_20' ) end [2025-03-28 16:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:29:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:29:29] Production.INFO: ==19783== Releasing lock... [2025-03-28 16:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:29:29] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 16:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:30:07 [end_date_ymd] => 2025-03-28 16:30:07 [RateCDR] => 1 ) [2025-03-28 16: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-28 13:30:07' and `end` < '2025-03-28 16: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-28 16:30:21] Production.INFO: count ==5393 [2025-03-28 16:30:23] Production.ERROR: pbx CDR StartTime 2025-03-28 13:30:07 - End Time 2025-03-28 16:30:07 [2025-03-28 16:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782742', 'tblTempUsageDetail_20' ) start [2025-03-28 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782742', 'tblTempUsageDetail_20' ) end [2025-03-28 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782742', 'tblTempVendorCDR_20' ) start [2025-03-28 16:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782742', 'tblTempVendorCDR_20' ) end [2025-03-28 16:30:24] Production.INFO: ProcessCDR(1,14782742,1,1,2) [2025-03-28 16:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782742', 'tblTempUsageDetail_20' ) start [2025-03-28 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782742', 'tblTempUsageDetail_20' ) end [2025-03-28 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:30:27] Production.INFO: ==19878== Releasing lock... [2025-03-28 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:30:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:31:06 [end_date_ymd] => 2025-03-28 16:31:06 [RateCDR] => 1 ) [2025-03-28 16:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:31:06' and `end` < '2025-03-28 16:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:31:19] Production.INFO: count ==5426 [2025-03-28 16:31:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:31:06 - End Time 2025-03-28 16:31:06 [2025-03-28 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782747', 'tblTempUsageDetail_20' ) start [2025-03-28 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782747', 'tblTempUsageDetail_20' ) end [2025-03-28 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782747', 'tblTempVendorCDR_20' ) start [2025-03-28 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782747', 'tblTempVendorCDR_20' ) end [2025-03-28 16:31:22] Production.INFO: ProcessCDR(1,14782747,1,1,2) [2025-03-28 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782747', 'tblTempUsageDetail_20' ) start [2025-03-28 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782747', 'tblTempUsageDetail_20' ) end [2025-03-28 16:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:31:28] Production.INFO: ==19970== Releasing lock... [2025-03-28 16:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:31:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 16:32:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:32:07 [end_date_ymd] => 2025-03-28 16:32:07 [RateCDR] => 1 ) [2025-03-28 16:32: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-28 13:32:07' and `end` < '2025-03-28 16:32: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-28 16:32:20] Production.INFO: count ==5420 [2025-03-28 16:32:23] Production.ERROR: pbx CDR StartTime 2025-03-28 13:32:07 - End Time 2025-03-28 16:32:07 [2025-03-28 16:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782752', 'tblTempUsageDetail_20' ) start [2025-03-28 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782752', 'tblTempUsageDetail_20' ) end [2025-03-28 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782752', 'tblTempVendorCDR_20' ) start [2025-03-28 16:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782752', 'tblTempVendorCDR_20' ) end [2025-03-28 16:32:23] Production.INFO: ProcessCDR(1,14782752,1,1,2) [2025-03-28 16:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782752', 'tblTempUsageDetail_20' ) start [2025-03-28 16:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782752', 'tblTempUsageDetail_20' ) end [2025-03-28 16:32:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:32:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:32:29] Production.INFO: ==20061== Releasing lock... [2025-03-28 16:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:32:29] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:33:06 [end_date_ymd] => 2025-03-28 16:33:06 [RateCDR] => 1 ) [2025-03-28 16:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:33:06' and `end` < '2025-03-28 16:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:33:20] Production.INFO: count ==5407 [2025-03-28 16:33:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:33:06 - End Time 2025-03-28 16:33:06 [2025-03-28 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782757', 'tblTempUsageDetail_20' ) start [2025-03-28 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782757', 'tblTempUsageDetail_20' ) end [2025-03-28 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782757', 'tblTempVendorCDR_20' ) start [2025-03-28 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782757', 'tblTempVendorCDR_20' ) end [2025-03-28 16:33:22] Production.INFO: ProcessCDR(1,14782757,1,1,2) [2025-03-28 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782757', 'tblTempUsageDetail_20' ) start [2025-03-28 16:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782757', 'tblTempUsageDetail_20' ) end [2025-03-28 16:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:33:28] Production.INFO: ==20151== Releasing lock... [2025-03-28 16:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:33:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:34:06 [end_date_ymd] => 2025-03-28 16:34:06 [RateCDR] => 1 ) [2025-03-28 16:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:34:06' and `end` < '2025-03-28 16:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:34:19] Production.INFO: count ==5394 [2025-03-28 16:34:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:34:06 - End Time 2025-03-28 16:34:06 [2025-03-28 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782762', 'tblTempUsageDetail_20' ) start [2025-03-28 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782762', 'tblTempUsageDetail_20' ) end [2025-03-28 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782762', 'tblTempVendorCDR_20' ) start [2025-03-28 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782762', 'tblTempVendorCDR_20' ) end [2025-03-28 16:34:22] Production.INFO: ProcessCDR(1,14782762,1,1,2) [2025-03-28 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782762', 'tblTempUsageDetail_20' ) start [2025-03-28 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782762', 'tblTempUsageDetail_20' ) end [2025-03-28 16:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:34:28] Production.INFO: ==20243== Releasing lock... [2025-03-28 16:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:34:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:35:06 [end_date_ymd] => 2025-03-28 16:35:06 [RateCDR] => 1 ) [2025-03-28 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:35:06' and `end` < '2025-03-28 16:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:35:20] Production.INFO: count ==5386 [2025-03-28 16:35:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:35:06 - End Time 2025-03-28 16:35:06 [2025-03-28 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782767', 'tblTempUsageDetail_20' ) start [2025-03-28 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782767', 'tblTempUsageDetail_20' ) end [2025-03-28 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782767', 'tblTempVendorCDR_20' ) start [2025-03-28 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782767', 'tblTempVendorCDR_20' ) end [2025-03-28 16:35:22] Production.INFO: ProcessCDR(1,14782767,1,1,2) [2025-03-28 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782767', 'tblTempUsageDetail_20' ) start [2025-03-28 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782767', 'tblTempUsageDetail_20' ) end [2025-03-28 16:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:35:28] Production.INFO: ==20343== Releasing lock... [2025-03-28 16:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:35:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 16:36:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:36:07 [end_date_ymd] => 2025-03-28 16:36:07 [RateCDR] => 1 ) [2025-03-28 16:36:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:36:07' and `end` < '2025-03-28 16:36:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:36:20] Production.INFO: count ==5391 [2025-03-28 16:36:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:36:07 - End Time 2025-03-28 16:36:07 [2025-03-28 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782772', 'tblTempUsageDetail_20' ) start [2025-03-28 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782772', 'tblTempUsageDetail_20' ) end [2025-03-28 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782772', 'tblTempVendorCDR_20' ) start [2025-03-28 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782772', 'tblTempVendorCDR_20' ) end [2025-03-28 16:36:22] Production.INFO: ProcessCDR(1,14782772,1,1,2) [2025-03-28 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782772', 'tblTempUsageDetail_20' ) start [2025-03-28 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782772', 'tblTempUsageDetail_20' ) end [2025-03-28 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:36:28] Production.INFO: ==20437== Releasing lock... [2025-03-28 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:36:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-28 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:37:06 [end_date_ymd] => 2025-03-28 16:37:06 [RateCDR] => 1 ) [2025-03-28 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:37:06' and `end` < '2025-03-28 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:37:19] Production.INFO: count ==5363 [2025-03-28 16:37:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:37:06 - End Time 2025-03-28 16:37:06 [2025-03-28 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782777', 'tblTempUsageDetail_20' ) start [2025-03-28 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782777', 'tblTempUsageDetail_20' ) end [2025-03-28 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782777', 'tblTempVendorCDR_20' ) start [2025-03-28 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782777', 'tblTempVendorCDR_20' ) end [2025-03-28 16:37:22] Production.INFO: ProcessCDR(1,14782777,1,1,2) [2025-03-28 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782777', 'tblTempUsageDetail_20' ) start [2025-03-28 16:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782777', 'tblTempUsageDetail_20' ) end [2025-03-28 16:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:37:28] Production.INFO: ==20533== Releasing lock... [2025-03-28 16:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:37:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-28 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:38:06 [end_date_ymd] => 2025-03-28 16:38:06 [RateCDR] => 1 ) [2025-03-28 16: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-28 13:38:06' and `end` < '2025-03-28 16: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-28 16:38:20] Production.INFO: count ==5316 [2025-03-28 16:38:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:38:06 - End Time 2025-03-28 16:38:06 [2025-03-28 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782782', 'tblTempUsageDetail_20' ) start [2025-03-28 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782782', 'tblTempUsageDetail_20' ) end [2025-03-28 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782782', 'tblTempVendorCDR_20' ) start [2025-03-28 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782782', 'tblTempVendorCDR_20' ) end [2025-03-28 16:38:22] Production.INFO: ProcessCDR(1,14782782,1,1,2) [2025-03-28 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782782', 'tblTempUsageDetail_20' ) start [2025-03-28 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782782', 'tblTempUsageDetail_20' ) end [2025-03-28 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:38:28] Production.INFO: ==20630== Releasing lock... [2025-03-28 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:38:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:39:06 [end_date_ymd] => 2025-03-28 16:39:06 [RateCDR] => 1 ) [2025-03-28 16:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:39:06' and `end` < '2025-03-28 16:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:39:20] Production.INFO: count ==5299 [2025-03-28 16:39:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:39:06 - End Time 2025-03-28 16:39:06 [2025-03-28 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782787', 'tblTempUsageDetail_20' ) start [2025-03-28 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782787', 'tblTempUsageDetail_20' ) end [2025-03-28 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782787', 'tblTempVendorCDR_20' ) start [2025-03-28 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782787', 'tblTempVendorCDR_20' ) end [2025-03-28 16:39:22] Production.INFO: ProcessCDR(1,14782787,1,1,2) [2025-03-28 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782787', 'tblTempUsageDetail_20' ) start [2025-03-28 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782787', 'tblTempUsageDetail_20' ) end [2025-03-28 16:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:39:28] Production.INFO: ==20723== Releasing lock... [2025-03-28 16:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:39:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:40:06 [end_date_ymd] => 2025-03-28 16:40:06 [RateCDR] => 1 ) [2025-03-28 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-28 13:40:06' and `end` < '2025-03-28 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-28 16:40:20] Production.INFO: count ==5331 [2025-03-28 16:40:23] Production.ERROR: pbx CDR StartTime 2025-03-28 13:40:06 - End Time 2025-03-28 16:40:06 [2025-03-28 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782792', 'tblTempUsageDetail_20' ) start [2025-03-28 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782792', 'tblTempUsageDetail_20' ) end [2025-03-28 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782792', 'tblTempVendorCDR_20' ) start [2025-03-28 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782792', 'tblTempVendorCDR_20' ) end [2025-03-28 16:40:23] Production.INFO: ProcessCDR(1,14782792,1,1,2) [2025-03-28 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782792', 'tblTempUsageDetail_20' ) start [2025-03-28 16:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782792', 'tblTempUsageDetail_20' ) end [2025-03-28 16:40:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:40:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:40:29] Production.INFO: ==20821== Releasing lock... [2025-03-28 16:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:40:29] Production.INFO: 68 MB #Memory Used# [2025-03-28 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:41:05 [end_date_ymd] => 2025-03-28 16:41:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:41:05' and `end` < '2025-03-28 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-28 16:41:19] Production.INFO: count ==5329 [2025-03-28 16:41:21] Production.ERROR: pbx CDR StartTime 2025-03-28 13:41:05 - End Time 2025-03-28 16:41:05 [2025-03-28 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782798', 'tblTempUsageDetail_20' ) start [2025-03-28 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782798', 'tblTempUsageDetail_20' ) end [2025-03-28 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782798', 'tblTempVendorCDR_20' ) start [2025-03-28 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782798', 'tblTempVendorCDR_20' ) end [2025-03-28 16:41:21] Production.INFO: ProcessCDR(1,14782798,1,1,2) [2025-03-28 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782798', 'tblTempUsageDetail_20' ) start [2025-03-28 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782798', 'tblTempUsageDetail_20' ) end [2025-03-28 16:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:41:27] Production.INFO: ==20955== Releasing lock... [2025-03-28 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:41:27] Production.INFO: 68 MB #Memory Used# [2025-03-28 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:42:06 [end_date_ymd] => 2025-03-28 16:42:06 [RateCDR] => 1 ) [2025-03-28 16: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-28 13:42:06' and `end` < '2025-03-28 16: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-28 16:42:20] Production.INFO: count ==5313 [2025-03-28 16:42:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:42:06 - End Time 2025-03-28 16:42:06 [2025-03-28 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782803', 'tblTempUsageDetail_20' ) start [2025-03-28 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782803', 'tblTempUsageDetail_20' ) end [2025-03-28 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782803', 'tblTempVendorCDR_20' ) start [2025-03-28 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782803', 'tblTempVendorCDR_20' ) end [2025-03-28 16:42:22] Production.INFO: ProcessCDR(1,14782803,1,1,2) [2025-03-28 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782803', 'tblTempUsageDetail_20' ) start [2025-03-28 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782803', 'tblTempUsageDetail_20' ) end [2025-03-28 16:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:42:28] Production.INFO: ==21049== Releasing lock... [2025-03-28 16:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:42:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:43:05 [end_date_ymd] => 2025-03-28 16:43:05 [RateCDR] => 1 ) [2025-03-28 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:43:05' and `end` < '2025-03-28 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:43:19] Production.INFO: count ==5306 [2025-03-28 16:43:21] Production.ERROR: pbx CDR StartTime 2025-03-28 13:43:05 - End Time 2025-03-28 16:43:05 [2025-03-28 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782808', 'tblTempUsageDetail_20' ) start [2025-03-28 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782808', 'tblTempUsageDetail_20' ) end [2025-03-28 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782808', 'tblTempVendorCDR_20' ) start [2025-03-28 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782808', 'tblTempVendorCDR_20' ) end [2025-03-28 16:43:22] Production.INFO: ProcessCDR(1,14782808,1,1,2) [2025-03-28 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782808', 'tblTempUsageDetail_20' ) start [2025-03-28 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782808', 'tblTempUsageDetail_20' ) end [2025-03-28 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:43:27] Production.INFO: ==21146== Releasing lock... [2025-03-28 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:43:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:44:06 [end_date_ymd] => 2025-03-28 16:44:06 [RateCDR] => 1 ) [2025-03-28 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-28 13:44:06' and `end` < '2025-03-28 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-28 16:44:20] Production.INFO: count ==5299 [2025-03-28 16:44:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:44:06 - End Time 2025-03-28 16:44:06 [2025-03-28 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782813', 'tblTempUsageDetail_20' ) start [2025-03-28 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782813', 'tblTempUsageDetail_20' ) end [2025-03-28 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782813', 'tblTempVendorCDR_20' ) start [2025-03-28 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782813', 'tblTempVendorCDR_20' ) end [2025-03-28 16:44:22] Production.INFO: ProcessCDR(1,14782813,1,1,2) [2025-03-28 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782813', 'tblTempUsageDetail_20' ) start [2025-03-28 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782813', 'tblTempUsageDetail_20' ) end [2025-03-28 16:44:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:44:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:44:29] Production.INFO: ==21237== Releasing lock... [2025-03-28 16:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:44:29] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:45:05 [end_date_ymd] => 2025-03-28 16:45:05 [RateCDR] => 1 ) [2025-03-28 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:45:05' and `end` < '2025-03-28 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:45:19] Production.INFO: count ==5278 [2025-03-28 16:45:21] Production.ERROR: pbx CDR StartTime 2025-03-28 13:45:05 - End Time 2025-03-28 16:45:05 [2025-03-28 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782818', 'tblTempUsageDetail_20' ) start [2025-03-28 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782818', 'tblTempUsageDetail_20' ) end [2025-03-28 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782818', 'tblTempVendorCDR_20' ) start [2025-03-28 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782818', 'tblTempVendorCDR_20' ) end [2025-03-28 16:45:22] Production.INFO: ProcessCDR(1,14782818,1,1,2) [2025-03-28 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782818', 'tblTempUsageDetail_20' ) start [2025-03-28 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782818', 'tblTempUsageDetail_20' ) end [2025-03-28 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:45:28] Production.INFO: ==21334== Releasing lock... [2025-03-28 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:45:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-28 16:46:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:46:07 [end_date_ymd] => 2025-03-28 16:46:07 [RateCDR] => 1 ) [2025-03-28 16:46:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:46:07' and `end` < '2025-03-28 16:46:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:46:20] Production.INFO: count ==5263 [2025-03-28 16:46:23] Production.ERROR: pbx CDR StartTime 2025-03-28 13:46:07 - End Time 2025-03-28 16:46:07 [2025-03-28 16:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782823', 'tblTempUsageDetail_20' ) start [2025-03-28 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782823', 'tblTempUsageDetail_20' ) end [2025-03-28 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782823', 'tblTempVendorCDR_20' ) start [2025-03-28 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782823', 'tblTempVendorCDR_20' ) end [2025-03-28 16:46:23] Production.INFO: ProcessCDR(1,14782823,1,1,2) [2025-03-28 16:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782823', 'tblTempUsageDetail_20' ) start [2025-03-28 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782823', 'tblTempUsageDetail_20' ) end [2025-03-28 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:46:28] Production.INFO: ==21428== Releasing lock... [2025-03-28 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:46:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-28 16:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:47:05 [end_date_ymd] => 2025-03-28 16:47:05 [RateCDR] => 1 ) [2025-03-28 16: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-28 13:47:05' and `end` < '2025-03-28 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-28 16:47:19] Production.INFO: count ==5274 [2025-03-28 16:47:21] Production.ERROR: pbx CDR StartTime 2025-03-28 13:47:05 - End Time 2025-03-28 16:47:05 [2025-03-28 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782828', 'tblTempUsageDetail_20' ) start [2025-03-28 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782828', 'tblTempUsageDetail_20' ) end [2025-03-28 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782828', 'tblTempVendorCDR_20' ) start [2025-03-28 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782828', 'tblTempVendorCDR_20' ) end [2025-03-28 16:47:22] Production.INFO: ProcessCDR(1,14782828,1,1,2) [2025-03-28 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782828', 'tblTempUsageDetail_20' ) start [2025-03-28 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782828', 'tblTempUsageDetail_20' ) end [2025-03-28 16:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:47:28] Production.INFO: ==21516== Releasing lock... [2025-03-28 16:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:47:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-28 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:48:06 [end_date_ymd] => 2025-03-28 16:48:06 [RateCDR] => 1 ) [2025-03-28 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:48:06' and `end` < '2025-03-28 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:48:20] Production.INFO: count ==5273 [2025-03-28 16:48:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:48:06 - End Time 2025-03-28 16:48:06 [2025-03-28 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782833', 'tblTempUsageDetail_20' ) start [2025-03-28 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782833', 'tblTempUsageDetail_20' ) end [2025-03-28 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782833', 'tblTempVendorCDR_20' ) start [2025-03-28 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782833', 'tblTempVendorCDR_20' ) end [2025-03-28 16:48:22] Production.INFO: ProcessCDR(1,14782833,1,1,2) [2025-03-28 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782833', 'tblTempUsageDetail_20' ) start [2025-03-28 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782833', 'tblTempUsageDetail_20' ) end [2025-03-28 16:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:48:28] Production.INFO: ==21616== Releasing lock... [2025-03-28 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:48:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-28 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:49:05 [end_date_ymd] => 2025-03-28 16:49:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:49:05' and `end` < '2025-03-28 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-28 16:49:19] Production.INFO: count ==5283 [2025-03-28 16:49:21] Production.ERROR: pbx CDR StartTime 2025-03-28 13:49:05 - End Time 2025-03-28 16:49:05 [2025-03-28 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782838', 'tblTempUsageDetail_20' ) start [2025-03-28 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782838', 'tblTempUsageDetail_20' ) end [2025-03-28 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782838', 'tblTempVendorCDR_20' ) start [2025-03-28 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782838', 'tblTempVendorCDR_20' ) end [2025-03-28 16:49:21] Production.INFO: ProcessCDR(1,14782838,1,1,2) [2025-03-28 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782838', 'tblTempUsageDetail_20' ) start [2025-03-28 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782838', 'tblTempUsageDetail_20' ) end [2025-03-28 16:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:49:27] Production.INFO: ==21712== Releasing lock... [2025-03-28 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:49:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-28 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:50:07 [end_date_ymd] => 2025-03-28 16:50:07 [RateCDR] => 1 ) [2025-03-28 16:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:50:07' and `end` < '2025-03-28 16:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:50:21] Production.INFO: count ==5299 [2025-03-28 16:50:23] Production.ERROR: pbx CDR StartTime 2025-03-28 13:50:07 - End Time 2025-03-28 16:50:07 [2025-03-28 16:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782844', 'tblTempUsageDetail_20' ) start [2025-03-28 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782844', 'tblTempUsageDetail_20' ) end [2025-03-28 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782844', 'tblTempVendorCDR_20' ) start [2025-03-28 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782844', 'tblTempVendorCDR_20' ) end [2025-03-28 16:50:23] Production.INFO: ProcessCDR(1,14782844,1,1,2) [2025-03-28 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782844', 'tblTempUsageDetail_20' ) start [2025-03-28 16:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782844', 'tblTempUsageDetail_20' ) end [2025-03-28 16:50:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:50:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:50:30] Production.INFO: ==21807== Releasing lock... [2025-03-28 16:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:50:30] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:51:05 [end_date_ymd] => 2025-03-28 16:51:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:51:05' and `end` < '2025-03-28 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-28 16:51:19] Production.INFO: count ==5345 [2025-03-28 16:51:21] Production.ERROR: pbx CDR StartTime 2025-03-28 13:51:05 - End Time 2025-03-28 16:51:05 [2025-03-28 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782849', 'tblTempUsageDetail_20' ) start [2025-03-28 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782849', 'tblTempUsageDetail_20' ) end [2025-03-28 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782849', 'tblTempVendorCDR_20' ) start [2025-03-28 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782849', 'tblTempVendorCDR_20' ) end [2025-03-28 16:51:21] Production.INFO: ProcessCDR(1,14782849,1,1,2) [2025-03-28 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782849', 'tblTempUsageDetail_20' ) start [2025-03-28 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782849', 'tblTempUsageDetail_20' ) end [2025-03-28 16:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:51:27] Production.INFO: ==21904== Releasing lock... [2025-03-28 16:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:51:27] Production.INFO: 68 MB #Memory Used# [2025-03-28 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:52:06 [end_date_ymd] => 2025-03-28 16:52:06 [RateCDR] => 1 ) [2025-03-28 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:52:06' and `end` < '2025-03-28 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:52:20] Production.INFO: count ==5360 [2025-03-28 16:52:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:52:06 - End Time 2025-03-28 16:52:06 [2025-03-28 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782854', 'tblTempUsageDetail_20' ) start [2025-03-28 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782854', 'tblTempUsageDetail_20' ) end [2025-03-28 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782854', 'tblTempVendorCDR_20' ) start [2025-03-28 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782854', 'tblTempVendorCDR_20' ) end [2025-03-28 16:52:22] Production.INFO: ProcessCDR(1,14782854,1,1,2) [2025-03-28 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782854', 'tblTempUsageDetail_20' ) start [2025-03-28 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782854', 'tblTempUsageDetail_20' ) end [2025-03-28 16:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:52:28] Production.INFO: ==21998== Releasing lock... [2025-03-28 16:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:52:28] Production.INFO: 68 MB #Memory Used# [2025-03-28 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:53:05 [end_date_ymd] => 2025-03-28 16:53:05 [RateCDR] => 1 ) [2025-03-28 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-28 13:53:05' and `end` < '2025-03-28 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-28 16:53:19] Production.INFO: count ==5359 [2025-03-28 16:53:21] Production.ERROR: pbx CDR StartTime 2025-03-28 13:53:05 - End Time 2025-03-28 16:53:05 [2025-03-28 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782859', 'tblTempUsageDetail_20' ) start [2025-03-28 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782859', 'tblTempUsageDetail_20' ) end [2025-03-28 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782859', 'tblTempVendorCDR_20' ) start [2025-03-28 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782859', 'tblTempVendorCDR_20' ) end [2025-03-28 16:53:21] Production.INFO: ProcessCDR(1,14782859,1,1,2) [2025-03-28 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782859', 'tblTempUsageDetail_20' ) start [2025-03-28 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782859', 'tblTempUsageDetail_20' ) end [2025-03-28 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:53:27] Production.INFO: ==22089== Releasing lock... [2025-03-28 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:53:27] Production.INFO: 68 MB #Memory Used# [2025-03-28 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:54:06 [end_date_ymd] => 2025-03-28 16:54:06 [RateCDR] => 1 ) [2025-03-28 16: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-28 13:54:06' and `end` < '2025-03-28 16: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-28 16:54:20] Production.INFO: count ==5354 [2025-03-28 16:54:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:54:06 - End Time 2025-03-28 16:54:06 [2025-03-28 16:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782864', 'tblTempUsageDetail_20' ) start [2025-03-28 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782864', 'tblTempUsageDetail_20' ) end [2025-03-28 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782864', 'tblTempVendorCDR_20' ) start [2025-03-28 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782864', 'tblTempVendorCDR_20' ) end [2025-03-28 16:54:22] Production.INFO: ProcessCDR(1,14782864,1,1,2) [2025-03-28 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782864', 'tblTempUsageDetail_20' ) start [2025-03-28 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782864', 'tblTempUsageDetail_20' ) end [2025-03-28 16:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:54:28] Production.INFO: ==22186== Releasing lock... [2025-03-28 16:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:54:28] Production.INFO: 68 MB #Memory Used# [2025-03-28 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:55:06 [end_date_ymd] => 2025-03-28 16:55:06 [RateCDR] => 1 ) [2025-03-28 16:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:55:06' and `end` < '2025-03-28 16:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:55:19] Production.INFO: count ==5318 [2025-03-28 16:55:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:55:06 - End Time 2025-03-28 16:55:06 [2025-03-28 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782869', 'tblTempUsageDetail_20' ) start [2025-03-28 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782869', 'tblTempUsageDetail_20' ) end [2025-03-28 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782869', 'tblTempVendorCDR_20' ) start [2025-03-28 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782869', 'tblTempVendorCDR_20' ) end [2025-03-28 16:55:22] Production.INFO: ProcessCDR(1,14782869,1,1,2) [2025-03-28 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782869', 'tblTempUsageDetail_20' ) start [2025-03-28 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782869', 'tblTempUsageDetail_20' ) end [2025-03-28 16:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:55:28] Production.INFO: ==22279== Releasing lock... [2025-03-28 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:55:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:56:06 [end_date_ymd] => 2025-03-28 16:56:06 [RateCDR] => 1 ) [2025-03-28 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-28 13:56:06' and `end` < '2025-03-28 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-28 16:56:20] Production.INFO: count ==5307 [2025-03-28 16:56:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:56:06 - End Time 2025-03-28 16:56:06 [2025-03-28 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782874', 'tblTempUsageDetail_20' ) start [2025-03-28 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782874', 'tblTempUsageDetail_20' ) end [2025-03-28 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782874', 'tblTempVendorCDR_20' ) start [2025-03-28 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782874', 'tblTempVendorCDR_20' ) end [2025-03-28 16:56:22] Production.INFO: ProcessCDR(1,14782874,1,1,2) [2025-03-28 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782874', 'tblTempUsageDetail_20' ) start [2025-03-28 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782874', 'tblTempUsageDetail_20' ) end [2025-03-28 16:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:56:28] Production.INFO: ==22416== Releasing lock... [2025-03-28 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:56:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:57:06 [end_date_ymd] => 2025-03-28 16:57:06 [RateCDR] => 1 ) [2025-03-28 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:57:06' and `end` < '2025-03-28 16:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:57:19] Production.INFO: count ==5294 [2025-03-28 16:57:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:57:06 - End Time 2025-03-28 16:57:06 [2025-03-28 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782879', 'tblTempUsageDetail_20' ) start [2025-03-28 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782879', 'tblTempUsageDetail_20' ) end [2025-03-28 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782879', 'tblTempVendorCDR_20' ) start [2025-03-28 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782879', 'tblTempVendorCDR_20' ) end [2025-03-28 16:57:22] Production.INFO: ProcessCDR(1,14782879,1,1,2) [2025-03-28 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782879', 'tblTempUsageDetail_20' ) start [2025-03-28 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782879', 'tblTempUsageDetail_20' ) end [2025-03-28 16:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:57:28] Production.INFO: ==22508== Releasing lock... [2025-03-28 16:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:57:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 16:58:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:58:07 [end_date_ymd] => 2025-03-28 16:58:07 [RateCDR] => 1 ) [2025-03-28 16:58: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-28 13:58:07' and `end` < '2025-03-28 16:58: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-28 16:58:20] Production.INFO: count ==5304 [2025-03-28 16:58:23] Production.ERROR: pbx CDR StartTime 2025-03-28 13:58:07 - End Time 2025-03-28 16:58:07 [2025-03-28 16:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782884', 'tblTempUsageDetail_20' ) start [2025-03-28 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782884', 'tblTempUsageDetail_20' ) end [2025-03-28 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782884', 'tblTempVendorCDR_20' ) start [2025-03-28 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782884', 'tblTempVendorCDR_20' ) end [2025-03-28 16:58:23] Production.INFO: ProcessCDR(1,14782884,1,1,2) [2025-03-28 16:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782884', 'tblTempUsageDetail_20' ) start [2025-03-28 16:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782884', 'tblTempUsageDetail_20' ) end [2025-03-28 16:58:29] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:58:29] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:58:29] Production.INFO: ==22606== Releasing lock... [2025-03-28 16:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:58:29] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 13:59:06 [end_date_ymd] => 2025-03-28 16:59:06 [RateCDR] => 1 ) [2025-03-28 16:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 13:59:06' and `end` < '2025-03-28 16:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 16:59:19] Production.INFO: count ==5300 [2025-03-28 16:59:22] Production.ERROR: pbx CDR StartTime 2025-03-28 13:59:06 - End Time 2025-03-28 16:59:06 [2025-03-28 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782889', 'tblTempUsageDetail_20' ) start [2025-03-28 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782889', 'tblTempUsageDetail_20' ) end [2025-03-28 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782889', 'tblTempVendorCDR_20' ) start [2025-03-28 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782889', 'tblTempVendorCDR_20' ) end [2025-03-28 16:59:22] Production.INFO: ProcessCDR(1,14782889,1,1,2) [2025-03-28 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 16:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782889', 'tblTempUsageDetail_20' ) start [2025-03-28 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782889', 'tblTempUsageDetail_20' ) end [2025-03-28 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 16:59:27] Production.INFO: ==22700== Releasing lock... [2025-03-28 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 16:59:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:00:06 [end_date_ymd] => 2025-03-28 17:00:06 [RateCDR] => 1 ) [2025-03-28 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-28 14:00:06' and `end` < '2025-03-28 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-28 17:00:20] Production.INFO: count ==5304 [2025-03-28 17:00:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:00:06 - End Time 2025-03-28 17:00:06 [2025-03-28 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782895', 'tblTempUsageDetail_20' ) start [2025-03-28 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782895', 'tblTempUsageDetail_20' ) end [2025-03-28 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782895', 'tblTempVendorCDR_20' ) start [2025-03-28 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782895', 'tblTempVendorCDR_20' ) end [2025-03-28 17:00:22] Production.INFO: ProcessCDR(1,14782895,1,1,2) [2025-03-28 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782895', 'tblTempUsageDetail_20' ) start [2025-03-28 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782895', 'tblTempUsageDetail_20' ) end [2025-03-28 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:00:28] Production.INFO: ==22801== Releasing lock... [2025-03-28 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:00:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-28 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:01:05 [end_date_ymd] => 2025-03-28 17:01:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:01:05' and `end` < '2025-03-28 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-28 17:01:19] Production.INFO: count ==5266 [2025-03-28 17:01:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:01:05 - End Time 2025-03-28 17:01:05 [2025-03-28 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782900', 'tblTempUsageDetail_20' ) start [2025-03-28 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782900', 'tblTempUsageDetail_20' ) end [2025-03-28 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782900', 'tblTempVendorCDR_20' ) start [2025-03-28 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782900', 'tblTempVendorCDR_20' ) end [2025-03-28 17:01:21] Production.INFO: ProcessCDR(1,14782900,1,1,2) [2025-03-28 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782900', 'tblTempUsageDetail_20' ) start [2025-03-28 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782900', 'tblTempUsageDetail_20' ) end [2025-03-28 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:01:27] Production.INFO: ==22916== Releasing lock... [2025-03-28 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:01:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-28 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:02:05 [end_date_ymd] => 2025-03-28 17:02:05 [RateCDR] => 1 ) [2025-03-28 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:02:05' and `end` < '2025-03-28 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:02:18] Production.INFO: count ==5244 [2025-03-28 17:02:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:02:05 - End Time 2025-03-28 17:02:05 [2025-03-28 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782905', 'tblTempUsageDetail_20' ) start [2025-03-28 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782905', 'tblTempUsageDetail_20' ) end [2025-03-28 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782905', 'tblTempVendorCDR_20' ) start [2025-03-28 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782905', 'tblTempVendorCDR_20' ) end [2025-03-28 17:02:21] Production.INFO: ProcessCDR(1,14782905,1,1,2) [2025-03-28 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782905', 'tblTempUsageDetail_20' ) start [2025-03-28 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782905', 'tblTempUsageDetail_20' ) end [2025-03-28 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:02:27] Production.INFO: ==23013== Releasing lock... [2025-03-28 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:02:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:03:05 [end_date_ymd] => 2025-03-28 17:03:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:03:05' and `end` < '2025-03-28 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-28 17:03:19] Production.INFO: count ==5234 [2025-03-28 17:03:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:03:05 - End Time 2025-03-28 17:03:05 [2025-03-28 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782910', 'tblTempUsageDetail_20' ) start [2025-03-28 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782910', 'tblTempUsageDetail_20' ) end [2025-03-28 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782910', 'tblTempVendorCDR_20' ) start [2025-03-28 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782910', 'tblTempVendorCDR_20' ) end [2025-03-28 17:03:21] Production.INFO: ProcessCDR(1,14782910,1,1,2) [2025-03-28 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782910', 'tblTempUsageDetail_20' ) start [2025-03-28 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782910', 'tblTempUsageDetail_20' ) end [2025-03-28 17:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:03:25] Production.INFO: ==23112== Releasing lock... [2025-03-28 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:03:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:04:05 [end_date_ymd] => 2025-03-28 17:04:05 [RateCDR] => 1 ) [2025-03-28 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:04:05' and `end` < '2025-03-28 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:04:19] Production.INFO: count ==5234 [2025-03-28 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:04:05 - End Time 2025-03-28 17:04:05 [2025-03-28 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782915', 'tblTempUsageDetail_20' ) start [2025-03-28 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782915', 'tblTempUsageDetail_20' ) end [2025-03-28 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782915', 'tblTempVendorCDR_20' ) start [2025-03-28 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782915', 'tblTempVendorCDR_20' ) end [2025-03-28 17:04:21] Production.INFO: ProcessCDR(1,14782915,1,1,2) [2025-03-28 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782915', 'tblTempUsageDetail_20' ) start [2025-03-28 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782915', 'tblTempUsageDetail_20' ) end [2025-03-28 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:04:27] Production.INFO: ==23205== Releasing lock... [2025-03-28 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:04:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:05:06 [end_date_ymd] => 2025-03-28 17:05:06 [RateCDR] => 1 ) [2025-03-28 17:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:05:06' and `end` < '2025-03-28 17:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:05:19] Production.INFO: count ==5231 [2025-03-28 17:05:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:05:06 - End Time 2025-03-28 17:05:06 [2025-03-28 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782920', 'tblTempUsageDetail_20' ) start [2025-03-28 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782920', 'tblTempUsageDetail_20' ) end [2025-03-28 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782920', 'tblTempVendorCDR_20' ) start [2025-03-28 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782920', 'tblTempVendorCDR_20' ) end [2025-03-28 17:05:22] Production.INFO: ProcessCDR(1,14782920,1,1,2) [2025-03-28 17:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782920', 'tblTempUsageDetail_20' ) start [2025-03-28 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782920', 'tblTempUsageDetail_20' ) end [2025-03-28 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:05:27] Production.INFO: ==23303== Releasing lock... [2025-03-28 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:05:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-28 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:06:05 [end_date_ymd] => 2025-03-28 17:06:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:06:05' and `end` < '2025-03-28 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-28 17:06:19] Production.INFO: count ==5225 [2025-03-28 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:06:05 - End Time 2025-03-28 17:06:05 [2025-03-28 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782925', 'tblTempUsageDetail_20' ) start [2025-03-28 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782925', 'tblTempUsageDetail_20' ) end [2025-03-28 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782925', 'tblTempVendorCDR_20' ) start [2025-03-28 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782925', 'tblTempVendorCDR_20' ) end [2025-03-28 17:06:21] Production.INFO: ProcessCDR(1,14782925,1,1,2) [2025-03-28 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782925', 'tblTempUsageDetail_20' ) start [2025-03-28 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782925', 'tblTempUsageDetail_20' ) end [2025-03-28 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:06:26] Production.INFO: ==23389== Releasing lock... [2025-03-28 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:06:26] Production.INFO: 67 MB #Memory Used# [2025-03-28 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:07:06 [end_date_ymd] => 2025-03-28 17:07:06 [RateCDR] => 1 ) [2025-03-28 17:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:07:06' and `end` < '2025-03-28 17:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:07:19] Production.INFO: count ==5225 [2025-03-28 17:07:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:07:06 - End Time 2025-03-28 17:07:06 [2025-03-28 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782930', 'tblTempUsageDetail_20' ) start [2025-03-28 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782930', 'tblTempUsageDetail_20' ) end [2025-03-28 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782930', 'tblTempVendorCDR_20' ) start [2025-03-28 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782930', 'tblTempVendorCDR_20' ) end [2025-03-28 17:07:22] Production.INFO: ProcessCDR(1,14782930,1,1,2) [2025-03-28 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782930', 'tblTempUsageDetail_20' ) start [2025-03-28 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782930', 'tblTempUsageDetail_20' ) end [2025-03-28 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:07:27] Production.INFO: ==23483== Releasing lock... [2025-03-28 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:07:27] Production.INFO: 67 MB #Memory Used# [2025-03-28 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:08:05 [end_date_ymd] => 2025-03-28 17:08:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:08:05' and `end` < '2025-03-28 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-28 17:08:19] Production.INFO: count ==5206 [2025-03-28 17:08:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:08:05 - End Time 2025-03-28 17:08:05 [2025-03-28 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782935', 'tblTempUsageDetail_20' ) start [2025-03-28 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782935', 'tblTempUsageDetail_20' ) end [2025-03-28 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782935', 'tblTempVendorCDR_20' ) start [2025-03-28 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782935', 'tblTempVendorCDR_20' ) end [2025-03-28 17:08:21] Production.INFO: ProcessCDR(1,14782935,1,1,2) [2025-03-28 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782935', 'tblTempUsageDetail_20' ) start [2025-03-28 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782935', 'tblTempUsageDetail_20' ) end [2025-03-28 17:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:08:25] Production.INFO: ==23577== Releasing lock... [2025-03-28 17:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:08:25] Production.INFO: 67 MB #Memory Used# [2025-03-28 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:09:05 [end_date_ymd] => 2025-03-28 17:09:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:09:05' and `end` < '2025-03-28 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-28 17:09:19] Production.INFO: count ==5215 [2025-03-28 17:09:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:09:05 - End Time 2025-03-28 17:09:05 [2025-03-28 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782940', 'tblTempUsageDetail_20' ) start [2025-03-28 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782940', 'tblTempUsageDetail_20' ) end [2025-03-28 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782940', 'tblTempVendorCDR_20' ) start [2025-03-28 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782940', 'tblTempVendorCDR_20' ) end [2025-03-28 17:09:22] Production.INFO: ProcessCDR(1,14782940,1,1,2) [2025-03-28 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782940', 'tblTempUsageDetail_20' ) start [2025-03-28 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782940', 'tblTempUsageDetail_20' ) end [2025-03-28 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:09:25] Production.INFO: ==23668== Releasing lock... [2025-03-28 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:09:25] Production.INFO: 67 MB #Memory Used# [2025-03-28 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:10:06 [end_date_ymd] => 2025-03-28 17:10:06 [RateCDR] => 1 ) [2025-03-28 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-28 14:10:06' and `end` < '2025-03-28 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-28 17:10:20] Production.INFO: count ==5197 [2025-03-28 17:10:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:10:06 - End Time 2025-03-28 17:10:06 [2025-03-28 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782946', 'tblTempUsageDetail_20' ) start [2025-03-28 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782946', 'tblTempUsageDetail_20' ) end [2025-03-28 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782946', 'tblTempVendorCDR_20' ) start [2025-03-28 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782946', 'tblTempVendorCDR_20' ) end [2025-03-28 17:10:22] Production.INFO: ProcessCDR(1,14782946,1,1,2) [2025-03-28 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782946', 'tblTempUsageDetail_20' ) start [2025-03-28 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782946', 'tblTempUsageDetail_20' ) end [2025-03-28 17:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:10:28] Production.INFO: ==23759== Releasing lock... [2025-03-28 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:10:28] Production.INFO: 67 MB #Memory Used# [2025-03-28 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:11:06 [end_date_ymd] => 2025-03-28 17:11:06 [RateCDR] => 1 ) [2025-03-28 17:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:11:06' and `end` < '2025-03-28 17:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:11:20] Production.INFO: count ==5147 [2025-03-28 17:11:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:11:06 - End Time 2025-03-28 17:11:06 [2025-03-28 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782951', 'tblTempUsageDetail_20' ) start [2025-03-28 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782951', 'tblTempUsageDetail_20' ) end [2025-03-28 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782951', 'tblTempVendorCDR_20' ) start [2025-03-28 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782951', 'tblTempVendorCDR_20' ) end [2025-03-28 17:11:22] Production.INFO: ProcessCDR(1,14782951,1,1,2) [2025-03-28 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782951', 'tblTempUsageDetail_20' ) start [2025-03-28 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782951', 'tblTempUsageDetail_20' ) end [2025-03-28 17:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:11:28] Production.INFO: ==23853== Releasing lock... [2025-03-28 17:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:11:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:12:05 [end_date_ymd] => 2025-03-28 17:12:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:12:05' and `end` < '2025-03-28 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-28 17:12:19] Production.INFO: count ==5140 [2025-03-28 17:12:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:12:05 - End Time 2025-03-28 17:12:05 [2025-03-28 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782956', 'tblTempUsageDetail_20' ) start [2025-03-28 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782956', 'tblTempUsageDetail_20' ) end [2025-03-28 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782956', 'tblTempVendorCDR_20' ) start [2025-03-28 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782956', 'tblTempVendorCDR_20' ) end [2025-03-28 17:12:21] Production.INFO: ProcessCDR(1,14782956,1,1,2) [2025-03-28 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782956', 'tblTempUsageDetail_20' ) start [2025-03-28 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782956', 'tblTempUsageDetail_20' ) end [2025-03-28 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:12:27] Production.INFO: ==23980== Releasing lock... [2025-03-28 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:12:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:13:06 [end_date_ymd] => 2025-03-28 17:13:06 [RateCDR] => 1 ) [2025-03-28 17:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:13:06' and `end` < '2025-03-28 17:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:13:19] Production.INFO: count ==5131 [2025-03-28 17:13:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:13:06 - End Time 2025-03-28 17:13:06 [2025-03-28 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782961', 'tblTempUsageDetail_20' ) start [2025-03-28 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782961', 'tblTempUsageDetail_20' ) end [2025-03-28 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782961', 'tblTempVendorCDR_20' ) start [2025-03-28 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782961', 'tblTempVendorCDR_20' ) end [2025-03-28 17:13:22] Production.INFO: ProcessCDR(1,14782961,1,1,2) [2025-03-28 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782961', 'tblTempUsageDetail_20' ) start [2025-03-28 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782961', 'tblTempUsageDetail_20' ) end [2025-03-28 17:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:13:28] Production.INFO: ==24074== Releasing lock... [2025-03-28 17:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:13:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:14:06 [end_date_ymd] => 2025-03-28 17:14:06 [RateCDR] => 1 ) [2025-03-28 17:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:14:06' and `end` < '2025-03-28 17:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:14:19] Production.INFO: count ==5143 [2025-03-28 17:14:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:14:06 - End Time 2025-03-28 17:14:06 [2025-03-28 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782966', 'tblTempUsageDetail_20' ) start [2025-03-28 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782966', 'tblTempUsageDetail_20' ) end [2025-03-28 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782966', 'tblTempVendorCDR_20' ) start [2025-03-28 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782966', 'tblTempVendorCDR_20' ) end [2025-03-28 17:14:22] Production.INFO: ProcessCDR(1,14782966,1,1,2) [2025-03-28 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782966', 'tblTempUsageDetail_20' ) start [2025-03-28 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782966', 'tblTempUsageDetail_20' ) end [2025-03-28 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:14:27] Production.INFO: ==24163== Releasing lock... [2025-03-28 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:14:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:15:06 [end_date_ymd] => 2025-03-28 17:15:06 [RateCDR] => 1 ) [2025-03-28 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-28 14:15:06' and `end` < '2025-03-28 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-28 17:15:19] Production.INFO: count ==5105 [2025-03-28 17:15:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:15:06 - End Time 2025-03-28 17:15:06 [2025-03-28 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782971', 'tblTempUsageDetail_20' ) start [2025-03-28 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782971', 'tblTempUsageDetail_20' ) end [2025-03-28 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782971', 'tblTempVendorCDR_20' ) start [2025-03-28 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782971', 'tblTempVendorCDR_20' ) end [2025-03-28 17:15:21] Production.INFO: ProcessCDR(1,14782971,1,1,2) [2025-03-28 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782971', 'tblTempUsageDetail_20' ) start [2025-03-28 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782971', 'tblTempUsageDetail_20' ) end [2025-03-28 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:15:27] Production.INFO: ==24255== Releasing lock... [2025-03-28 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:15:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-28 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:16:05 [end_date_ymd] => 2025-03-28 17:16:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:16:05' and `end` < '2025-03-28 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-28 17:16:19] Production.INFO: count ==5097 [2025-03-28 17:16:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:16:05 - End Time 2025-03-28 17:16:05 [2025-03-28 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782976', 'tblTempUsageDetail_20' ) start [2025-03-28 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782976', 'tblTempUsageDetail_20' ) end [2025-03-28 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782976', 'tblTempVendorCDR_20' ) start [2025-03-28 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782976', 'tblTempVendorCDR_20' ) end [2025-03-28 17:16:21] Production.INFO: ProcessCDR(1,14782976,1,1,2) [2025-03-28 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782976', 'tblTempUsageDetail_20' ) start [2025-03-28 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782976', 'tblTempUsageDetail_20' ) end [2025-03-28 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:16:27] Production.INFO: ==24349== Releasing lock... [2025-03-28 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:16:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-28 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:17:06 [end_date_ymd] => 2025-03-28 17:17:06 [RateCDR] => 1 ) [2025-03-28 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-28 14:17:06' and `end` < '2025-03-28 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-28 17:17:19] Production.INFO: count ==5101 [2025-03-28 17:17:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:17:06 - End Time 2025-03-28 17:17:06 [2025-03-28 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782981', 'tblTempUsageDetail_20' ) start [2025-03-28 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782981', 'tblTempUsageDetail_20' ) end [2025-03-28 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782981', 'tblTempVendorCDR_20' ) start [2025-03-28 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782981', 'tblTempVendorCDR_20' ) end [2025-03-28 17:17:22] Production.INFO: ProcessCDR(1,14782981,1,1,2) [2025-03-28 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782981', 'tblTempUsageDetail_20' ) start [2025-03-28 17:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782981', 'tblTempUsageDetail_20' ) end [2025-03-28 17:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:17:28] Production.INFO: ==24439== Releasing lock... [2025-03-28 17:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:17:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-28 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:18:05 [end_date_ymd] => 2025-03-28 17:18:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:18:05' and `end` < '2025-03-28 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-28 17:18:18] Production.INFO: count ==5093 [2025-03-28 17:18:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:18:05 - End Time 2025-03-28 17:18:05 [2025-03-28 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782986', 'tblTempUsageDetail_20' ) start [2025-03-28 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782986', 'tblTempUsageDetail_20' ) end [2025-03-28 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782986', 'tblTempVendorCDR_20' ) start [2025-03-28 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782986', 'tblTempVendorCDR_20' ) end [2025-03-28 17:18:21] Production.INFO: ProcessCDR(1,14782986,1,1,2) [2025-03-28 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782986', 'tblTempUsageDetail_20' ) start [2025-03-28 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782986', 'tblTempUsageDetail_20' ) end [2025-03-28 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:18:27] Production.INFO: ==24535== Releasing lock... [2025-03-28 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:18:27] Production.INFO: 66 MB #Memory Used# [2025-03-28 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:19:06 [end_date_ymd] => 2025-03-28 17:19:06 [RateCDR] => 1 ) [2025-03-28 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-28 14:19:06' and `end` < '2025-03-28 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-28 17:19:19] Production.INFO: count ==5078 [2025-03-28 17:19:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:19:06 - End Time 2025-03-28 17:19:06 [2025-03-28 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782991', 'tblTempUsageDetail_20' ) start [2025-03-28 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782991', 'tblTempUsageDetail_20' ) end [2025-03-28 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782991', 'tblTempVendorCDR_20' ) start [2025-03-28 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782991', 'tblTempVendorCDR_20' ) end [2025-03-28 17:19:21] Production.INFO: ProcessCDR(1,14782991,1,1,2) [2025-03-28 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782991', 'tblTempUsageDetail_20' ) start [2025-03-28 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782991', 'tblTempUsageDetail_20' ) end [2025-03-28 17:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:19:27] Production.INFO: ==24625== Releasing lock... [2025-03-28 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:19:27] Production.INFO: 66 MB #Memory Used# [2025-03-28 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:20:06 [end_date_ymd] => 2025-03-28 17:20:06 [RateCDR] => 1 ) [2025-03-28 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-28 14:20:06' and `end` < '2025-03-28 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-28 17:20:19] Production.INFO: count ==5071 [2025-03-28 17:20:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:20:06 - End Time 2025-03-28 17:20:06 [2025-03-28 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782996', 'tblTempUsageDetail_20' ) start [2025-03-28 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14782996', 'tblTempUsageDetail_20' ) end [2025-03-28 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782996', 'tblTempVendorCDR_20' ) start [2025-03-28 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14782996', 'tblTempVendorCDR_20' ) end [2025-03-28 17:20:22] Production.INFO: ProcessCDR(1,14782996,1,1,2) [2025-03-28 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14782996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14782996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14782996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14782996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782996', 'tblTempUsageDetail_20' ) start [2025-03-28 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14782996', 'tblTempUsageDetail_20' ) end [2025-03-28 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:20:28] Production.INFO: ==24715== Releasing lock... [2025-03-28 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:20:28] Production.INFO: 66 MB #Memory Used# [2025-03-28 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:21:05 [end_date_ymd] => 2025-03-28 17:21:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:21:05' and `end` < '2025-03-28 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-28 17:21:19] Production.INFO: count ==5148 [2025-03-28 17:21:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:21:05 - End Time 2025-03-28 17:21:05 [2025-03-28 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783002', 'tblTempUsageDetail_20' ) start [2025-03-28 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783002', 'tblTempUsageDetail_20' ) end [2025-03-28 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783002', 'tblTempVendorCDR_20' ) start [2025-03-28 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783002', 'tblTempVendorCDR_20' ) end [2025-03-28 17:21:21] Production.INFO: ProcessCDR(1,14783002,1,1,2) [2025-03-28 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783002', 'tblTempUsageDetail_20' ) start [2025-03-28 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783002', 'tblTempUsageDetail_20' ) end [2025-03-28 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:21:27] Production.INFO: ==24806== Releasing lock... [2025-03-28 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:21:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:22:06 [end_date_ymd] => 2025-03-28 17:22:06 [RateCDR] => 1 ) [2025-03-28 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:22:06' and `end` < '2025-03-28 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:22:20] Production.INFO: count ==5134 [2025-03-28 17:22:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:22:06 - End Time 2025-03-28 17:22:06 [2025-03-28 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783007', 'tblTempUsageDetail_20' ) start [2025-03-28 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783007', 'tblTempUsageDetail_20' ) end [2025-03-28 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783007', 'tblTempVendorCDR_20' ) start [2025-03-28 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783007', 'tblTempVendorCDR_20' ) end [2025-03-28 17:22:22] Production.INFO: ProcessCDR(1,14783007,1,1,2) [2025-03-28 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783007', 'tblTempUsageDetail_20' ) start [2025-03-28 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783007', 'tblTempUsageDetail_20' ) end [2025-03-28 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:22:27] Production.INFO: ==24893== Releasing lock... [2025-03-28 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:22:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:23:05 [end_date_ymd] => 2025-03-28 17:23:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:23:05' and `end` < '2025-03-28 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-28 17:23:19] Production.INFO: count ==5143 [2025-03-28 17:23:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:23:05 - End Time 2025-03-28 17:23:05 [2025-03-28 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783010', 'tblTempUsageDetail_20' ) start [2025-03-28 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783010', 'tblTempUsageDetail_20' ) end [2025-03-28 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783010', 'tblTempVendorCDR_20' ) start [2025-03-28 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783010', 'tblTempVendorCDR_20' ) end [2025-03-28 17:23:21] Production.INFO: ProcessCDR(1,14783010,1,1,2) [2025-03-28 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783010', 'tblTempUsageDetail_20' ) start [2025-03-28 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783010', 'tblTempUsageDetail_20' ) end [2025-03-28 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:23:27] Production.INFO: ==24980== Releasing lock... [2025-03-28 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:23:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:24:06 [end_date_ymd] => 2025-03-28 17:24:06 [RateCDR] => 1 ) [2025-03-28 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:24:06' and `end` < '2025-03-28 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:24:20] Production.INFO: count ==5159 [2025-03-28 17:24:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:24:06 - End Time 2025-03-28 17:24:06 [2025-03-28 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783017', 'tblTempUsageDetail_20' ) start [2025-03-28 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783017', 'tblTempUsageDetail_20' ) end [2025-03-28 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783017', 'tblTempVendorCDR_20' ) start [2025-03-28 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783017', 'tblTempVendorCDR_20' ) end [2025-03-28 17:24:22] Production.INFO: ProcessCDR(1,14783017,1,1,2) [2025-03-28 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783017', 'tblTempUsageDetail_20' ) start [2025-03-28 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783017', 'tblTempUsageDetail_20' ) end [2025-03-28 17:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:24:28] Production.INFO: ==25070== Releasing lock... [2025-03-28 17:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:24:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:25:05 [end_date_ymd] => 2025-03-28 17:25:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:25:05' and `end` < '2025-03-28 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-28 17:25:19] Production.INFO: count ==5137 [2025-03-28 17:25:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:25:05 - End Time 2025-03-28 17:25:05 [2025-03-28 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783022', 'tblTempUsageDetail_20' ) start [2025-03-28 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783022', 'tblTempUsageDetail_20' ) end [2025-03-28 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783022', 'tblTempVendorCDR_20' ) start [2025-03-28 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783022', 'tblTempVendorCDR_20' ) end [2025-03-28 17:25:21] Production.INFO: ProcessCDR(1,14783022,1,1,2) [2025-03-28 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783022', 'tblTempUsageDetail_20' ) start [2025-03-28 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783022', 'tblTempUsageDetail_20' ) end [2025-03-28 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:25:25] Production.INFO: ==25156== Releasing lock... [2025-03-28 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:25:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-28 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:26:06 [end_date_ymd] => 2025-03-28 17:26:06 [RateCDR] => 1 ) [2025-03-28 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-28 14:26:06' and `end` < '2025-03-28 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-28 17:26:20] Production.INFO: count ==5103 [2025-03-28 17:26:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:26:06 - End Time 2025-03-28 17:26:06 [2025-03-28 17:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783027', 'tblTempUsageDetail_20' ) start [2025-03-28 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783027', 'tblTempUsageDetail_20' ) end [2025-03-28 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783027', 'tblTempVendorCDR_20' ) start [2025-03-28 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783027', 'tblTempVendorCDR_20' ) end [2025-03-28 17:26:22] Production.INFO: ProcessCDR(1,14783027,1,1,2) [2025-03-28 17:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783027', 'tblTempUsageDetail_20' ) start [2025-03-28 17:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783027', 'tblTempUsageDetail_20' ) end [2025-03-28 17:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:26:28] Production.INFO: ==25249== Releasing lock... [2025-03-28 17:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:26:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-28 17:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:27:06 [end_date_ymd] => 2025-03-28 17:27:06 [RateCDR] => 1 ) [2025-03-28 17: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-28 14:27:06' and `end` < '2025-03-28 17: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-28 17:27:19] Production.INFO: count ==5074 [2025-03-28 17:27:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:27:06 - End Time 2025-03-28 17:27:06 [2025-03-28 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783032', 'tblTempUsageDetail_20' ) start [2025-03-28 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783032', 'tblTempUsageDetail_20' ) end [2025-03-28 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783032', 'tblTempVendorCDR_20' ) start [2025-03-28 17:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783032', 'tblTempVendorCDR_20' ) end [2025-03-28 17:27:22] Production.INFO: ProcessCDR(1,14783032,1,1,2) [2025-03-28 17:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783032', 'tblTempUsageDetail_20' ) start [2025-03-28 17:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783032', 'tblTempUsageDetail_20' ) end [2025-03-28 17:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:27:27] Production.INFO: ==25378== Releasing lock... [2025-03-28 17:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:27:27] Production.INFO: 66 MB #Memory Used# [2025-03-28 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:28:06 [end_date_ymd] => 2025-03-28 17:28:06 [RateCDR] => 1 ) [2025-03-28 17:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:28:06' and `end` < '2025-03-28 17:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:28:19] Production.INFO: count ==5070 [2025-03-28 17:28:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:28:06 - End Time 2025-03-28 17:28:06 [2025-03-28 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783037', 'tblTempUsageDetail_20' ) start [2025-03-28 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783037', 'tblTempUsageDetail_20' ) end [2025-03-28 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783037', 'tblTempVendorCDR_20' ) start [2025-03-28 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783037', 'tblTempVendorCDR_20' ) end [2025-03-28 17:28:22] Production.INFO: ProcessCDR(1,14783037,1,1,2) [2025-03-28 17:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783037', 'tblTempUsageDetail_20' ) start [2025-03-28 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783037', 'tblTempUsageDetail_20' ) end [2025-03-28 17:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:28:27] Production.INFO: ==25465== Releasing lock... [2025-03-28 17:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:28:27] Production.INFO: 66 MB #Memory Used# [2025-03-28 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:29:05 [end_date_ymd] => 2025-03-28 17:29:05 [RateCDR] => 1 ) [2025-03-28 17:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:29:05' and `end` < '2025-03-28 17:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:29:19] Production.INFO: count ==5053 [2025-03-28 17:29:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:29:05 - End Time 2025-03-28 17:29:05 [2025-03-28 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783042', 'tblTempUsageDetail_20' ) start [2025-03-28 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783042', 'tblTempUsageDetail_20' ) end [2025-03-28 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783042', 'tblTempVendorCDR_20' ) start [2025-03-28 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783042', 'tblTempVendorCDR_20' ) end [2025-03-28 17:29:21] Production.INFO: ProcessCDR(1,14783042,1,1,2) [2025-03-28 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783042', 'tblTempUsageDetail_20' ) start [2025-03-28 17:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783042', 'tblTempUsageDetail_20' ) end [2025-03-28 17:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:29:27] Production.INFO: ==25553== Releasing lock... [2025-03-28 17:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:29:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-28 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:30:06 [end_date_ymd] => 2025-03-28 17:30:06 [RateCDR] => 1 ) [2025-03-28 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-28 14:30:06' and `end` < '2025-03-28 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-28 17:30:20] Production.INFO: count ==4992 [2025-03-28 17:30:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:30:06 - End Time 2025-03-28 17:30:06 [2025-03-28 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783048', 'tblTempUsageDetail_20' ) start [2025-03-28 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783048', 'tblTempUsageDetail_20' ) end [2025-03-28 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783048', 'tblTempVendorCDR_20' ) start [2025-03-28 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783048', 'tblTempVendorCDR_20' ) end [2025-03-28 17:30:22] Production.INFO: ProcessCDR(1,14783048,1,1,2) [2025-03-28 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783048', 'tblTempUsageDetail_20' ) start [2025-03-28 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783048', 'tblTempUsageDetail_20' ) end [2025-03-28 17:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:30:28] Production.INFO: ==25644== Releasing lock... [2025-03-28 17:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:30:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-28 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:31:05 [end_date_ymd] => 2025-03-28 17:31:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:31:05' and `end` < '2025-03-28 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-28 17:31:19] Production.INFO: count ==4956 [2025-03-28 17:31:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:31:05 - End Time 2025-03-28 17:31:05 [2025-03-28 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783053', 'tblTempUsageDetail_20' ) start [2025-03-28 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783053', 'tblTempUsageDetail_20' ) end [2025-03-28 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783053', 'tblTempVendorCDR_20' ) start [2025-03-28 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783053', 'tblTempVendorCDR_20' ) end [2025-03-28 17:31:21] Production.INFO: ProcessCDR(1,14783053,1,1,2) [2025-03-28 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783053', 'tblTempUsageDetail_20' ) start [2025-03-28 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783053', 'tblTempUsageDetail_20' ) end [2025-03-28 17:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:31:27] Production.INFO: ==25734== Releasing lock... [2025-03-28 17:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:31:27] Production.INFO: 65 MB #Memory Used# [2025-03-28 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:32:06 [end_date_ymd] => 2025-03-28 17:32:06 [RateCDR] => 1 ) [2025-03-28 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-28 14:32:06' and `end` < '2025-03-28 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-28 17:32:20] Production.INFO: count ==4933 [2025-03-28 17:32:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:32:06 - End Time 2025-03-28 17:32:06 [2025-03-28 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783058', 'tblTempUsageDetail_20' ) start [2025-03-28 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783058', 'tblTempUsageDetail_20' ) end [2025-03-28 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783058', 'tblTempVendorCDR_20' ) start [2025-03-28 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783058', 'tblTempVendorCDR_20' ) end [2025-03-28 17:32:22] Production.INFO: ProcessCDR(1,14783058,1,1,2) [2025-03-28 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783058', 'tblTempUsageDetail_20' ) start [2025-03-28 17:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783058', 'tblTempUsageDetail_20' ) end [2025-03-28 17:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:32:28] Production.INFO: ==25818== Releasing lock... [2025-03-28 17:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:32:28] Production.INFO: 65 MB #Memory Used# [2025-03-28 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:33:06 [end_date_ymd] => 2025-03-28 17:33:06 [RateCDR] => 1 ) [2025-03-28 17: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-28 14:33:06' and `end` < '2025-03-28 17: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-28 17:33:19] Production.INFO: count ==4938 [2025-03-28 17:33:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:33:06 - End Time 2025-03-28 17:33:06 [2025-03-28 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783063', 'tblTempUsageDetail_20' ) start [2025-03-28 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783063', 'tblTempUsageDetail_20' ) end [2025-03-28 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783063', 'tblTempVendorCDR_20' ) start [2025-03-28 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783063', 'tblTempVendorCDR_20' ) end [2025-03-28 17:33:22] Production.INFO: ProcessCDR(1,14783063,1,1,2) [2025-03-28 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783063', 'tblTempUsageDetail_20' ) start [2025-03-28 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783063', 'tblTempUsageDetail_20' ) end [2025-03-28 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:33:27] Production.INFO: ==25908== Releasing lock... [2025-03-28 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:33:27] Production.INFO: 65 MB #Memory Used# [2025-03-28 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:34:06 [end_date_ymd] => 2025-03-28 17:34:06 [RateCDR] => 1 ) [2025-03-28 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-28 14:34:06' and `end` < '2025-03-28 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-28 17:34:19] Production.INFO: count ==4934 [2025-03-28 17:34:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:34:06 - End Time 2025-03-28 17:34:06 [2025-03-28 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783068', 'tblTempUsageDetail_20' ) start [2025-03-28 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783068', 'tblTempUsageDetail_20' ) end [2025-03-28 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783068', 'tblTempVendorCDR_20' ) start [2025-03-28 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783068', 'tblTempVendorCDR_20' ) end [2025-03-28 17:34:21] Production.INFO: ProcessCDR(1,14783068,1,1,2) [2025-03-28 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783068', 'tblTempUsageDetail_20' ) start [2025-03-28 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783068', 'tblTempUsageDetail_20' ) end [2025-03-28 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:34:27] Production.INFO: ==25996== Releasing lock... [2025-03-28 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:34:27] Production.INFO: 65 MB #Memory Used# [2025-03-28 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:35:06 [end_date_ymd] => 2025-03-28 17:35:06 [RateCDR] => 1 ) [2025-03-28 17: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-28 14:35:06' and `end` < '2025-03-28 17: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-28 17:35:20] Production.INFO: count ==4933 [2025-03-28 17:35:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:35:06 - End Time 2025-03-28 17:35:06 [2025-03-28 17:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783073', 'tblTempUsageDetail_20' ) start [2025-03-28 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783073', 'tblTempUsageDetail_20' ) end [2025-03-28 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783073', 'tblTempVendorCDR_20' ) start [2025-03-28 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783073', 'tblTempVendorCDR_20' ) end [2025-03-28 17:35:22] Production.INFO: ProcessCDR(1,14783073,1,1,2) [2025-03-28 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783073', 'tblTempUsageDetail_20' ) start [2025-03-28 17:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783073', 'tblTempUsageDetail_20' ) end [2025-03-28 17:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:35:28] Production.INFO: ==26094== Releasing lock... [2025-03-28 17:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:35:28] Production.INFO: 65 MB #Memory Used# [2025-03-28 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:36:05 [end_date_ymd] => 2025-03-28 17:36:05 [RateCDR] => 1 ) [2025-03-28 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:36:05' and `end` < '2025-03-28 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:36:19] Production.INFO: count ==4926 [2025-03-28 17:36:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:36:05 - End Time 2025-03-28 17:36:05 [2025-03-28 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783078', 'tblTempUsageDetail_20' ) start [2025-03-28 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783078', 'tblTempUsageDetail_20' ) end [2025-03-28 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783078', 'tblTempVendorCDR_20' ) start [2025-03-28 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783078', 'tblTempVendorCDR_20' ) end [2025-03-28 17:36:21] Production.INFO: ProcessCDR(1,14783078,1,1,2) [2025-03-28 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783078', 'tblTempUsageDetail_20' ) start [2025-03-28 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783078', 'tblTempUsageDetail_20' ) end [2025-03-28 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:36:27] Production.INFO: ==26182== Releasing lock... [2025-03-28 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:36:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-28 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:37:06 [end_date_ymd] => 2025-03-28 17:37:06 [RateCDR] => 1 ) [2025-03-28 17:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:37:06' and `end` < '2025-03-28 17:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:37:19] Production.INFO: count ==4915 [2025-03-28 17:37:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:37:06 - End Time 2025-03-28 17:37:06 [2025-03-28 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783083', 'tblTempUsageDetail_20' ) start [2025-03-28 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783083', 'tblTempUsageDetail_20' ) end [2025-03-28 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783083', 'tblTempVendorCDR_20' ) start [2025-03-28 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783083', 'tblTempVendorCDR_20' ) end [2025-03-28 17:37:21] Production.INFO: ProcessCDR(1,14783083,1,1,2) [2025-03-28 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783083', 'tblTempUsageDetail_20' ) start [2025-03-28 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783083', 'tblTempUsageDetail_20' ) end [2025-03-28 17:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:37:27] Production.INFO: ==26269== Releasing lock... [2025-03-28 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:37:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-28 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:38:06 [end_date_ymd] => 2025-03-28 17:38:06 [RateCDR] => 1 ) [2025-03-28 17: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-28 14:38:06' and `end` < '2025-03-28 17:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:38:20] Production.INFO: count ==4921 [2025-03-28 17:38:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:38:06 - End Time 2025-03-28 17:38:06 [2025-03-28 17:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783088', 'tblTempUsageDetail_20' ) start [2025-03-28 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783088', 'tblTempUsageDetail_20' ) end [2025-03-28 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783088', 'tblTempVendorCDR_20' ) start [2025-03-28 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783088', 'tblTempVendorCDR_20' ) end [2025-03-28 17:38:22] Production.INFO: ProcessCDR(1,14783088,1,1,2) [2025-03-28 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783088', 'tblTempUsageDetail_20' ) start [2025-03-28 17:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783088', 'tblTempUsageDetail_20' ) end [2025-03-28 17:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:38:28] Production.INFO: ==26355== Releasing lock... [2025-03-28 17:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:38:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-28 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:39:06 [end_date_ymd] => 2025-03-28 17:39:06 [RateCDR] => 1 ) [2025-03-28 17:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:39:06' and `end` < '2025-03-28 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:39:20] Production.INFO: count ==4891 [2025-03-28 17:39:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:39:06 - End Time 2025-03-28 17:39:06 [2025-03-28 17:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783093', 'tblTempUsageDetail_20' ) start [2025-03-28 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783093', 'tblTempUsageDetail_20' ) end [2025-03-28 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783093', 'tblTempVendorCDR_20' ) start [2025-03-28 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783093', 'tblTempVendorCDR_20' ) end [2025-03-28 17:39:22] Production.INFO: ProcessCDR(1,14783093,1,1,2) [2025-03-28 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783093', 'tblTempUsageDetail_20' ) start [2025-03-28 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783093', 'tblTempUsageDetail_20' ) end [2025-03-28 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:39:27] Production.INFO: ==26452== Releasing lock... [2025-03-28 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:39:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-28 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:40:07 [end_date_ymd] => 2025-03-28 17:40:07 [RateCDR] => 1 ) [2025-03-28 17:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:40:07' and `end` < '2025-03-28 17:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:40:20] Production.INFO: count ==4877 [2025-03-28 17:40:23] Production.ERROR: pbx CDR StartTime 2025-03-28 14:40:07 - End Time 2025-03-28 17:40:07 [2025-03-28 17:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783099', 'tblTempUsageDetail_20' ) start [2025-03-28 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783099', 'tblTempUsageDetail_20' ) end [2025-03-28 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783099', 'tblTempVendorCDR_20' ) start [2025-03-28 17:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783099', 'tblTempVendorCDR_20' ) end [2025-03-28 17:40:23] Production.INFO: ProcessCDR(1,14783099,1,1,2) [2025-03-28 17:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783099', 'tblTempUsageDetail_20' ) start [2025-03-28 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783099', 'tblTempUsageDetail_20' ) end [2025-03-28 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:40:27] Production.INFO: ==26547== Releasing lock... [2025-03-28 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:40:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-28 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:41:05 [end_date_ymd] => 2025-03-28 17:41:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:41:05' and `end` < '2025-03-28 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-28 17:41:19] Production.INFO: count ==4833 [2025-03-28 17:41:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:41:05 - End Time 2025-03-28 17:41:05 [2025-03-28 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783104', 'tblTempUsageDetail_20' ) start [2025-03-28 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783104', 'tblTempUsageDetail_20' ) end [2025-03-28 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783104', 'tblTempVendorCDR_20' ) start [2025-03-28 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783104', 'tblTempVendorCDR_20' ) end [2025-03-28 17:41:21] Production.INFO: ProcessCDR(1,14783104,1,1,2) [2025-03-28 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783104', 'tblTempUsageDetail_20' ) start [2025-03-28 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783104', 'tblTempUsageDetail_20' ) end [2025-03-28 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:41:27] Production.INFO: ==26647== Releasing lock... [2025-03-28 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:41:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-28 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:42:06 [end_date_ymd] => 2025-03-28 17:42:06 [RateCDR] => 1 ) [2025-03-28 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:42:06' and `end` < '2025-03-28 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:42:20] Production.INFO: count ==4793 [2025-03-28 17:42:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:42:06 - End Time 2025-03-28 17:42:06 [2025-03-28 17:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783109', 'tblTempUsageDetail_20' ) start [2025-03-28 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783109', 'tblTempUsageDetail_20' ) end [2025-03-28 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783109', 'tblTempVendorCDR_20' ) start [2025-03-28 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783109', 'tblTempVendorCDR_20' ) end [2025-03-28 17:42:22] Production.INFO: ProcessCDR(1,14783109,1,1,2) [2025-03-28 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783109', 'tblTempUsageDetail_20' ) start [2025-03-28 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783109', 'tblTempUsageDetail_20' ) end [2025-03-28 17:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:42:28] Production.INFO: ==26782== Releasing lock... [2025-03-28 17:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:42:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:43:05 [end_date_ymd] => 2025-03-28 17:43:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:43:05' and `end` < '2025-03-28 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-28 17:43:19] Production.INFO: count ==4792 [2025-03-28 17:43:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:43:05 - End Time 2025-03-28 17:43:05 [2025-03-28 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783114', 'tblTempUsageDetail_20' ) start [2025-03-28 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783114', 'tblTempUsageDetail_20' ) end [2025-03-28 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783114', 'tblTempVendorCDR_20' ) start [2025-03-28 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783114', 'tblTempVendorCDR_20' ) end [2025-03-28 17:43:21] Production.INFO: ProcessCDR(1,14783114,1,1,2) [2025-03-28 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783114', 'tblTempUsageDetail_20' ) start [2025-03-28 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783114', 'tblTempUsageDetail_20' ) end [2025-03-28 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:43:27] Production.INFO: ==26871== Releasing lock... [2025-03-28 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:43:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:44:06 [end_date_ymd] => 2025-03-28 17:44:06 [RateCDR] => 1 ) [2025-03-28 17:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:44:06' and `end` < '2025-03-28 17:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:44:20] Production.INFO: count ==4793 [2025-03-28 17:44:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:44:06 - End Time 2025-03-28 17:44:06 [2025-03-28 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783119', 'tblTempUsageDetail_20' ) start [2025-03-28 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783119', 'tblTempUsageDetail_20' ) end [2025-03-28 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783119', 'tblTempVendorCDR_20' ) start [2025-03-28 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783119', 'tblTempVendorCDR_20' ) end [2025-03-28 17:44:22] Production.INFO: ProcessCDR(1,14783119,1,1,2) [2025-03-28 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783119', 'tblTempUsageDetail_20' ) start [2025-03-28 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783119', 'tblTempUsageDetail_20' ) end [2025-03-28 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:44:27] Production.INFO: ==26959== Releasing lock... [2025-03-28 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:44:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:45:05 [end_date_ymd] => 2025-03-28 17:45:05 [RateCDR] => 1 ) [2025-03-28 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:45:05' and `end` < '2025-03-28 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:45:19] Production.INFO: count ==4789 [2025-03-28 17:45:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:45:05 - End Time 2025-03-28 17:45:05 [2025-03-28 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783124', 'tblTempUsageDetail_20' ) start [2025-03-28 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783124', 'tblTempUsageDetail_20' ) end [2025-03-28 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783124', 'tblTempVendorCDR_20' ) start [2025-03-28 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783124', 'tblTempVendorCDR_20' ) end [2025-03-28 17:45:21] Production.INFO: ProcessCDR(1,14783124,1,1,2) [2025-03-28 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783124', 'tblTempUsageDetail_20' ) start [2025-03-28 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783124', 'tblTempUsageDetail_20' ) end [2025-03-28 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:45:27] Production.INFO: ==27051== Releasing lock... [2025-03-28 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:45:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:46:06 [end_date_ymd] => 2025-03-28 17:46:06 [RateCDR] => 1 ) [2025-03-28 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:46:06' and `end` < '2025-03-28 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:46:19] Production.INFO: count ==4787 [2025-03-28 17:46:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:46:06 - End Time 2025-03-28 17:46:06 [2025-03-28 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783129', 'tblTempUsageDetail_20' ) start [2025-03-28 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783129', 'tblTempUsageDetail_20' ) end [2025-03-28 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783129', 'tblTempVendorCDR_20' ) start [2025-03-28 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783129', 'tblTempVendorCDR_20' ) end [2025-03-28 17:46:21] Production.INFO: ProcessCDR(1,14783129,1,1,2) [2025-03-28 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783129', 'tblTempUsageDetail_20' ) start [2025-03-28 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783129', 'tblTempUsageDetail_20' ) end [2025-03-28 17:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:46:27] Production.INFO: ==27144== Releasing lock... [2025-03-28 17:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:46:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:47:05 [end_date_ymd] => 2025-03-28 17:47:05 [RateCDR] => 1 ) [2025-03-28 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:47:05' and `end` < '2025-03-28 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:47:19] Production.INFO: count ==4771 [2025-03-28 17:47:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:47:05 - End Time 2025-03-28 17:47:05 [2025-03-28 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783134', 'tblTempUsageDetail_20' ) start [2025-03-28 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783134', 'tblTempUsageDetail_20' ) end [2025-03-28 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783134', 'tblTempVendorCDR_20' ) start [2025-03-28 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783134', 'tblTempVendorCDR_20' ) end [2025-03-28 17:47:21] Production.INFO: ProcessCDR(1,14783134,1,1,2) [2025-03-28 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783134', 'tblTempUsageDetail_20' ) start [2025-03-28 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783134', 'tblTempUsageDetail_20' ) end [2025-03-28 17:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:47:27] Production.INFO: ==27230== Releasing lock... [2025-03-28 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:47:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:48:06 [end_date_ymd] => 2025-03-28 17:48:06 [RateCDR] => 1 ) [2025-03-28 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:48:06' and `end` < '2025-03-28 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:48:20] Production.INFO: count ==4768 [2025-03-28 17:48:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:48:06 - End Time 2025-03-28 17:48:06 [2025-03-28 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783139', 'tblTempUsageDetail_20' ) start [2025-03-28 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783139', 'tblTempUsageDetail_20' ) end [2025-03-28 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783139', 'tblTempVendorCDR_20' ) start [2025-03-28 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783139', 'tblTempVendorCDR_20' ) end [2025-03-28 17:48:22] Production.INFO: ProcessCDR(1,14783139,1,1,2) [2025-03-28 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783139', 'tblTempUsageDetail_20' ) start [2025-03-28 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783139', 'tblTempUsageDetail_20' ) end [2025-03-28 17:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:48:28] Production.INFO: ==27326== Releasing lock... [2025-03-28 17:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:48:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:49:05 [end_date_ymd] => 2025-03-28 17:49:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:49:05' and `end` < '2025-03-28 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-28 17:49:19] Production.INFO: count ==4767 [2025-03-28 17:49:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:49:05 - End Time 2025-03-28 17:49:05 [2025-03-28 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783144', 'tblTempUsageDetail_20' ) start [2025-03-28 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783144', 'tblTempUsageDetail_20' ) end [2025-03-28 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783144', 'tblTempVendorCDR_20' ) start [2025-03-28 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783144', 'tblTempVendorCDR_20' ) end [2025-03-28 17:49:21] Production.INFO: ProcessCDR(1,14783144,1,1,2) [2025-03-28 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783144', 'tblTempUsageDetail_20' ) start [2025-03-28 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783144', 'tblTempUsageDetail_20' ) end [2025-03-28 17:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:49:27] Production.INFO: ==27414== Releasing lock... [2025-03-28 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:49:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 17:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:50:07 [end_date_ymd] => 2025-03-28 17:50:07 [RateCDR] => 1 ) [2025-03-28 17: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-28 14:50:07' and `end` < '2025-03-28 17: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-28 17:50:20] Production.INFO: count ==4767 [2025-03-28 17:50:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:50:07 - End Time 2025-03-28 17:50:07 [2025-03-28 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783149', 'tblTempUsageDetail_20' ) start [2025-03-28 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783149', 'tblTempUsageDetail_20' ) end [2025-03-28 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783149', 'tblTempVendorCDR_20' ) start [2025-03-28 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783149', 'tblTempVendorCDR_20' ) end [2025-03-28 17:50:22] Production.INFO: ProcessCDR(1,14783149,1,1,2) [2025-03-28 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783149', 'tblTempUsageDetail_20' ) start [2025-03-28 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783149', 'tblTempUsageDetail_20' ) end [2025-03-28 17:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:50:28] Production.INFO: ==27505== Releasing lock... [2025-03-28 17:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:50:28] Production.INFO: 63.75 MB #Memory Used# [2025-03-28 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:51:05 [end_date_ymd] => 2025-03-28 17:51:05 [RateCDR] => 1 ) [2025-03-28 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-28 14:51:05' and `end` < '2025-03-28 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-28 17:51:19] Production.INFO: count ==4708 [2025-03-28 17:51:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:51:05 - End Time 2025-03-28 17:51:05 [2025-03-28 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783155', 'tblTempUsageDetail_20' ) start [2025-03-28 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783155', 'tblTempUsageDetail_20' ) end [2025-03-28 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783155', 'tblTempVendorCDR_20' ) start [2025-03-28 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783155', 'tblTempVendorCDR_20' ) end [2025-03-28 17:51:21] Production.INFO: ProcessCDR(1,14783155,1,1,2) [2025-03-28 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783155', 'tblTempUsageDetail_20' ) start [2025-03-28 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783155', 'tblTempUsageDetail_20' ) end [2025-03-28 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:51:27] Production.INFO: ==27599== Releasing lock... [2025-03-28 17:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:51:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-28 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:52:06 [end_date_ymd] => 2025-03-28 17:52:06 [RateCDR] => 1 ) [2025-03-28 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-28 14:52:06' and `end` < '2025-03-28 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-28 17:52:19] Production.INFO: count ==4687 [2025-03-28 17:52:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:52:06 - End Time 2025-03-28 17:52:06 [2025-03-28 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783160', 'tblTempUsageDetail_20' ) start [2025-03-28 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783160', 'tblTempUsageDetail_20' ) end [2025-03-28 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783160', 'tblTempVendorCDR_20' ) start [2025-03-28 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783160', 'tblTempVendorCDR_20' ) end [2025-03-28 17:52:21] Production.INFO: ProcessCDR(1,14783160,1,1,2) [2025-03-28 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783160', 'tblTempUsageDetail_20' ) start [2025-03-28 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783160', 'tblTempUsageDetail_20' ) end [2025-03-28 17:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:52:27] Production.INFO: ==27694== Releasing lock... [2025-03-28 17:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:52:27] Production.INFO: 63 MB #Memory Used# [2025-03-28 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:53:06 [end_date_ymd] => 2025-03-28 17:53:06 [RateCDR] => 1 ) [2025-03-28 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:53:06' and `end` < '2025-03-28 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:53:19] Production.INFO: count ==4665 [2025-03-28 17:53:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:53:06 - End Time 2025-03-28 17:53:06 [2025-03-28 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783165', 'tblTempUsageDetail_20' ) start [2025-03-28 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783165', 'tblTempUsageDetail_20' ) end [2025-03-28 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783165', 'tblTempVendorCDR_20' ) start [2025-03-28 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783165', 'tblTempVendorCDR_20' ) end [2025-03-28 17:53:21] Production.INFO: ProcessCDR(1,14783165,1,1,2) [2025-03-28 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783165', 'tblTempUsageDetail_20' ) start [2025-03-28 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783165', 'tblTempUsageDetail_20' ) end [2025-03-28 17:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:53:27] Production.INFO: ==27787== Releasing lock... [2025-03-28 17:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:53:27] Production.INFO: 63 MB #Memory Used# [2025-03-28 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:54:06 [end_date_ymd] => 2025-03-28 17:54:06 [RateCDR] => 1 ) [2025-03-28 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-28 14:54:06' and `end` < '2025-03-28 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-28 17:54:20] Production.INFO: count ==4650 [2025-03-28 17:54:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:54:06 - End Time 2025-03-28 17:54:06 [2025-03-28 17:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783170', 'tblTempUsageDetail_20' ) start [2025-03-28 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783170', 'tblTempUsageDetail_20' ) end [2025-03-28 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783170', 'tblTempVendorCDR_20' ) start [2025-03-28 17:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783170', 'tblTempVendorCDR_20' ) end [2025-03-28 17:54:22] Production.INFO: ProcessCDR(1,14783170,1,1,2) [2025-03-28 17:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783170', 'tblTempUsageDetail_20' ) start [2025-03-28 17:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783170', 'tblTempUsageDetail_20' ) end [2025-03-28 17:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:54:28] Production.INFO: ==27885== Releasing lock... [2025-03-28 17:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:54:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-28 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:55:06 [end_date_ymd] => 2025-03-28 17:55:06 [RateCDR] => 1 ) [2025-03-28 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:55:06' and `end` < '2025-03-28 17:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:55:19] Production.INFO: count ==4651 [2025-03-28 17:55:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:55:06 - End Time 2025-03-28 17:55:06 [2025-03-28 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783175', 'tblTempUsageDetail_20' ) start [2025-03-28 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783175', 'tblTempUsageDetail_20' ) end [2025-03-28 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783175', 'tblTempVendorCDR_20' ) start [2025-03-28 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783175', 'tblTempVendorCDR_20' ) end [2025-03-28 17:55:21] Production.INFO: ProcessCDR(1,14783175,1,1,2) [2025-03-28 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783175', 'tblTempUsageDetail_20' ) start [2025-03-28 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783175', 'tblTempUsageDetail_20' ) end [2025-03-28 17:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:55:27] Production.INFO: ==27982== Releasing lock... [2025-03-28 17:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:55:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-28 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:56:05 [end_date_ymd] => 2025-03-28 17:56:05 [RateCDR] => 1 ) [2025-03-28 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:56:05' and `end` < '2025-03-28 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:56:19] Production.INFO: count ==4629 [2025-03-28 17:56:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:56:05 - End Time 2025-03-28 17:56:05 [2025-03-28 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783180', 'tblTempUsageDetail_20' ) start [2025-03-28 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783180', 'tblTempUsageDetail_20' ) end [2025-03-28 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783180', 'tblTempVendorCDR_20' ) start [2025-03-28 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783180', 'tblTempVendorCDR_20' ) end [2025-03-28 17:56:21] Production.INFO: ProcessCDR(1,14783180,1,1,2) [2025-03-28 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783180', 'tblTempUsageDetail_20' ) start [2025-03-28 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783180', 'tblTempUsageDetail_20' ) end [2025-03-28 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:56:26] Production.INFO: ==28072== Releasing lock... [2025-03-28 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:56:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-28 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:57:06 [end_date_ymd] => 2025-03-28 17:57:06 [RateCDR] => 1 ) [2025-03-28 17:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:57:06' and `end` < '2025-03-28 17:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:57:20] Production.INFO: count ==4602 [2025-03-28 17:57:22] Production.ERROR: pbx CDR StartTime 2025-03-28 14:57:06 - End Time 2025-03-28 17:57:06 [2025-03-28 17:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783185', 'tblTempUsageDetail_20' ) start [2025-03-28 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783185', 'tblTempUsageDetail_20' ) end [2025-03-28 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783185', 'tblTempVendorCDR_20' ) start [2025-03-28 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783185', 'tblTempVendorCDR_20' ) end [2025-03-28 17:57:22] Production.INFO: ProcessCDR(1,14783185,1,1,2) [2025-03-28 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783185', 'tblTempUsageDetail_20' ) start [2025-03-28 17:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783185', 'tblTempUsageDetail_20' ) end [2025-03-28 17:57:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:57:28] Production.INFO: ==28176== Releasing lock... [2025-03-28 17:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:57:28] Production.INFO: 62.5 MB #Memory Used# [2025-03-28 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:58:06 [end_date_ymd] => 2025-03-28 17:58:06 [RateCDR] => 1 ) [2025-03-28 17:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:58:06' and `end` < '2025-03-28 17:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:58:19] Production.INFO: count ==4601 [2025-03-28 17:58:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:58:06 - End Time 2025-03-28 17:58:06 [2025-03-28 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783190', 'tblTempUsageDetail_20' ) start [2025-03-28 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783190', 'tblTempUsageDetail_20' ) end [2025-03-28 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783190', 'tblTempVendorCDR_20' ) start [2025-03-28 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783190', 'tblTempVendorCDR_20' ) end [2025-03-28 17:58:21] Production.INFO: ProcessCDR(1,14783190,1,1,2) [2025-03-28 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783190', 'tblTempUsageDetail_20' ) start [2025-03-28 17:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783190', 'tblTempUsageDetail_20' ) end [2025-03-28 17:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:58:27] Production.INFO: ==28311== Releasing lock... [2025-03-28 17:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:58:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-28 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 14:59:06 [end_date_ymd] => 2025-03-28 17:59:06 [RateCDR] => 1 ) [2025-03-28 17:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 14:59:06' and `end` < '2025-03-28 17:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 17:59:19] Production.INFO: count ==4575 [2025-03-28 17:59:21] Production.ERROR: pbx CDR StartTime 2025-03-28 14:59:06 - End Time 2025-03-28 17:59:06 [2025-03-28 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783195', 'tblTempUsageDetail_20' ) start [2025-03-28 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783195', 'tblTempUsageDetail_20' ) end [2025-03-28 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783195', 'tblTempVendorCDR_20' ) start [2025-03-28 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783195', 'tblTempVendorCDR_20' ) end [2025-03-28 17:59:21] Production.INFO: ProcessCDR(1,14783195,1,1,2) [2025-03-28 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 17:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783195', 'tblTempUsageDetail_20' ) start [2025-03-28 17:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783195', 'tblTempUsageDetail_20' ) end [2025-03-28 17:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 17:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 17:59:27] Production.INFO: ==28404== Releasing lock... [2025-03-28 17:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 17:59:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-28 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:00:07 [end_date_ymd] => 2025-03-28 18:00:07 [RateCDR] => 1 ) [2025-03-28 18: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-28 15:00:07' and `end` < '2025-03-28 18: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-28 18:00:20] Production.INFO: count ==4538 [2025-03-28 18:00:22] Production.ERROR: pbx CDR StartTime 2025-03-28 15:00:07 - End Time 2025-03-28 18:00:07 [2025-03-28 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783201', 'tblTempUsageDetail_20' ) start [2025-03-28 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783201', 'tblTempUsageDetail_20' ) end [2025-03-28 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783201', 'tblTempVendorCDR_20' ) start [2025-03-28 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783201', 'tblTempVendorCDR_20' ) end [2025-03-28 18:00:22] Production.INFO: ProcessCDR(1,14783201,1,1,2) [2025-03-28 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783201', 'tblTempUsageDetail_20' ) start [2025-03-28 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783201', 'tblTempUsageDetail_20' ) end [2025-03-28 18:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:00:28] Production.INFO: ==28498== Releasing lock... [2025-03-28 18:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:00:28] Production.INFO: 62 MB #Memory Used# [2025-03-28 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:01:06 [end_date_ymd] => 2025-03-28 18:01:06 [RateCDR] => 1 ) [2025-03-28 18:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:01:06' and `end` < '2025-03-28 18:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:01:19] Production.INFO: count ==4500 [2025-03-28 18:01:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:01:06 - End Time 2025-03-28 18:01:06 [2025-03-28 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783206', 'tblTempUsageDetail_20' ) start [2025-03-28 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783206', 'tblTempUsageDetail_20' ) end [2025-03-28 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783206', 'tblTempVendorCDR_20' ) start [2025-03-28 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783206', 'tblTempVendorCDR_20' ) end [2025-03-28 18:01:22] Production.INFO: ProcessCDR(1,14783206,1,1,2) [2025-03-28 18:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783206', 'tblTempUsageDetail_20' ) start [2025-03-28 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783206', 'tblTempUsageDetail_20' ) end [2025-03-28 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:01:27] Production.INFO: ==28607== Releasing lock... [2025-03-28 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:01:27] Production.INFO: 61.75 MB #Memory Used# [2025-03-28 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:02:06 [end_date_ymd] => 2025-03-28 18:02:06 [RateCDR] => 1 ) [2025-03-28 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-28 15:02:06' and `end` < '2025-03-28 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-28 18:02:19] Production.INFO: count ==4496 [2025-03-28 18:02:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:02:06 - End Time 2025-03-28 18:02:06 [2025-03-28 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783211', 'tblTempUsageDetail_20' ) start [2025-03-28 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783211', 'tblTempUsageDetail_20' ) end [2025-03-28 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783211', 'tblTempVendorCDR_20' ) start [2025-03-28 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783211', 'tblTempVendorCDR_20' ) end [2025-03-28 18:02:21] Production.INFO: ProcessCDR(1,14783211,1,1,2) [2025-03-28 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783211', 'tblTempUsageDetail_20' ) start [2025-03-28 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783211', 'tblTempUsageDetail_20' ) end [2025-03-28 18:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:02:27] Production.INFO: ==28700== Releasing lock... [2025-03-28 18:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:02:27] Production.INFO: 61.5 MB #Memory Used# [2025-03-28 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:03:06 [end_date_ymd] => 2025-03-28 18:03:06 [RateCDR] => 1 ) [2025-03-28 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:03:06' and `end` < '2025-03-28 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:03:19] Production.INFO: count ==4485 [2025-03-28 18:03:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:03:06 - End Time 2025-03-28 18:03:06 [2025-03-28 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783216', 'tblTempUsageDetail_20' ) start [2025-03-28 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783216', 'tblTempUsageDetail_20' ) end [2025-03-28 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783216', 'tblTempVendorCDR_20' ) start [2025-03-28 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783216', 'tblTempVendorCDR_20' ) end [2025-03-28 18:03:21] Production.INFO: ProcessCDR(1,14783216,1,1,2) [2025-03-28 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783216', 'tblTempUsageDetail_20' ) start [2025-03-28 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783216', 'tblTempUsageDetail_20' ) end [2025-03-28 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:03:25] Production.INFO: ==28793== Releasing lock... [2025-03-28 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:03:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-28 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:04:06 [end_date_ymd] => 2025-03-28 18:04:06 [RateCDR] => 1 ) [2025-03-28 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-28 15:04:06' and `end` < '2025-03-28 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-28 18:04:19] Production.INFO: count ==4479 [2025-03-28 18:04:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:04:06 - End Time 2025-03-28 18:04:06 [2025-03-28 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783221', 'tblTempUsageDetail_20' ) start [2025-03-28 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783221', 'tblTempUsageDetail_20' ) end [2025-03-28 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783221', 'tblTempVendorCDR_20' ) start [2025-03-28 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783221', 'tblTempVendorCDR_20' ) end [2025-03-28 18:04:21] Production.INFO: ProcessCDR(1,14783221,1,1,2) [2025-03-28 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783221', 'tblTempUsageDetail_20' ) start [2025-03-28 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783221', 'tblTempUsageDetail_20' ) end [2025-03-28 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:04:25] Production.INFO: ==28893== Releasing lock... [2025-03-28 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:04:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-28 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:05:06 [end_date_ymd] => 2025-03-28 18:05:06 [RateCDR] => 1 ) [2025-03-28 18:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:05:06' and `end` < '2025-03-28 18:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:05:19] Production.INFO: count ==4465 [2025-03-28 18:05:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:05:06 - End Time 2025-03-28 18:05:06 [2025-03-28 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783226', 'tblTempUsageDetail_20' ) start [2025-03-28 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783226', 'tblTempUsageDetail_20' ) end [2025-03-28 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783226', 'tblTempVendorCDR_20' ) start [2025-03-28 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783226', 'tblTempVendorCDR_20' ) end [2025-03-28 18:05:21] Production.INFO: ProcessCDR(1,14783226,1,1,2) [2025-03-28 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783226', 'tblTempUsageDetail_20' ) start [2025-03-28 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783226', 'tblTempUsageDetail_20' ) end [2025-03-28 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:05:25] Production.INFO: ==28989== Releasing lock... [2025-03-28 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:05:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-28 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:06:06 [end_date_ymd] => 2025-03-28 18:06:06 [RateCDR] => 1 ) [2025-03-28 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-28 15:06:06' and `end` < '2025-03-28 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-28 18:06:19] Production.INFO: count ==4441 [2025-03-28 18:06:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:06:06 - End Time 2025-03-28 18:06:06 [2025-03-28 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783231', 'tblTempUsageDetail_20' ) start [2025-03-28 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783231', 'tblTempUsageDetail_20' ) end [2025-03-28 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783231', 'tblTempVendorCDR_20' ) start [2025-03-28 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783231', 'tblTempVendorCDR_20' ) end [2025-03-28 18:06:21] Production.INFO: ProcessCDR(1,14783231,1,1,2) [2025-03-28 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783231', 'tblTempUsageDetail_20' ) start [2025-03-28 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783231', 'tblTempUsageDetail_20' ) end [2025-03-28 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:06:25] Production.INFO: ==29087== Releasing lock... [2025-03-28 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:06:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-28 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:07:06 [end_date_ymd] => 2025-03-28 18:07:06 [RateCDR] => 1 ) [2025-03-28 18: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-28 15:07:06' and `end` < '2025-03-28 18: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-28 18:07:20] Production.INFO: count ==4433 [2025-03-28 18:07:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:07:06 - End Time 2025-03-28 18:07:06 [2025-03-28 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783236', 'tblTempUsageDetail_20' ) start [2025-03-28 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783236', 'tblTempUsageDetail_20' ) end [2025-03-28 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783236', 'tblTempVendorCDR_20' ) start [2025-03-28 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783236', 'tblTempVendorCDR_20' ) end [2025-03-28 18:07:21] Production.INFO: ProcessCDR(1,14783236,1,1,2) [2025-03-28 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783236', 'tblTempUsageDetail_20' ) start [2025-03-28 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783236', 'tblTempUsageDetail_20' ) end [2025-03-28 18:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:07:27] Production.INFO: ==29192== Releasing lock... [2025-03-28 18:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:07:27] Production.INFO: 61.25 MB #Memory Used# [2025-03-28 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:08:05 [end_date_ymd] => 2025-03-28 18:08:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:08:05' and `end` < '2025-03-28 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-28 18:08:19] Production.INFO: count ==4416 [2025-03-28 18:08:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:08:05 - End Time 2025-03-28 18:08:05 [2025-03-28 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783241', 'tblTempUsageDetail_20' ) start [2025-03-28 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783241', 'tblTempUsageDetail_20' ) end [2025-03-28 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783241', 'tblTempVendorCDR_20' ) start [2025-03-28 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783241', 'tblTempVendorCDR_20' ) end [2025-03-28 18:08:21] Production.INFO: ProcessCDR(1,14783241,1,1,2) [2025-03-28 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783241', 'tblTempUsageDetail_20' ) start [2025-03-28 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783241', 'tblTempUsageDetail_20' ) end [2025-03-28 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:08:25] Production.INFO: ==29288== Releasing lock... [2025-03-28 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:08:25] Production.INFO: 61 MB #Memory Used# [2025-03-28 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:09:06 [end_date_ymd] => 2025-03-28 18:09:06 [RateCDR] => 1 ) [2025-03-28 18: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-28 15:09:06' and `end` < '2025-03-28 18: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-28 18:09:19] Production.INFO: count ==4407 [2025-03-28 18:09:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:09:06 - End Time 2025-03-28 18:09:06 [2025-03-28 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783246', 'tblTempUsageDetail_20' ) start [2025-03-28 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783246', 'tblTempUsageDetail_20' ) end [2025-03-28 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783246', 'tblTempVendorCDR_20' ) start [2025-03-28 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783246', 'tblTempVendorCDR_20' ) end [2025-03-28 18:09:21] Production.INFO: ProcessCDR(1,14783246,1,1,2) [2025-03-28 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783246', 'tblTempUsageDetail_20' ) start [2025-03-28 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783246', 'tblTempUsageDetail_20' ) end [2025-03-28 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:09:25] Production.INFO: ==29387== Releasing lock... [2025-03-28 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:09:25] Production.INFO: 61 MB #Memory Used# [2025-03-28 18:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:10:07 [end_date_ymd] => 2025-03-28 18:10:07 [RateCDR] => 1 ) [2025-03-28 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-28 15:10:07' and `end` < '2025-03-28 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-28 18:10:21] Production.INFO: count ==4398 [2025-03-28 18:10:22] Production.ERROR: pbx CDR StartTime 2025-03-28 15:10:07 - End Time 2025-03-28 18:10:07 [2025-03-28 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783252', 'tblTempUsageDetail_20' ) start [2025-03-28 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783252', 'tblTempUsageDetail_20' ) end [2025-03-28 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783252', 'tblTempVendorCDR_20' ) start [2025-03-28 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783252', 'tblTempVendorCDR_20' ) end [2025-03-28 18:10:22] Production.INFO: ProcessCDR(1,14783252,1,1,2) [2025-03-28 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783252', 'tblTempUsageDetail_20' ) start [2025-03-28 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783252', 'tblTempUsageDetail_20' ) end [2025-03-28 18:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:10:28] Production.INFO: ==29486== Releasing lock... [2025-03-28 18:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:10:28] Production.INFO: 61 MB #Memory Used# [2025-03-28 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:11:05 [end_date_ymd] => 2025-03-28 18:11:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:11:05' and `end` < '2025-03-28 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-28 18:11:19] Production.INFO: count ==4377 [2025-03-28 18:11:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:11:05 - End Time 2025-03-28 18:11:05 [2025-03-28 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783257', 'tblTempUsageDetail_20' ) start [2025-03-28 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783257', 'tblTempUsageDetail_20' ) end [2025-03-28 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783257', 'tblTempVendorCDR_20' ) start [2025-03-28 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783257', 'tblTempVendorCDR_20' ) end [2025-03-28 18:11:20] Production.INFO: ProcessCDR(1,14783257,1,1,2) [2025-03-28 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783257', 'tblTempUsageDetail_20' ) start [2025-03-28 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783257', 'tblTempUsageDetail_20' ) end [2025-03-28 18:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:11:26] Production.INFO: ==29583== Releasing lock... [2025-03-28 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:11:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-28 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:12:06 [end_date_ymd] => 2025-03-28 18:12:06 [RateCDR] => 1 ) [2025-03-28 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:12:06' and `end` < '2025-03-28 18:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:12:19] Production.INFO: count ==4353 [2025-03-28 18:12:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:12:06 - End Time 2025-03-28 18:12:06 [2025-03-28 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783262', 'tblTempUsageDetail_20' ) start [2025-03-28 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783262', 'tblTempUsageDetail_20' ) end [2025-03-28 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783262', 'tblTempVendorCDR_20' ) start [2025-03-28 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783262', 'tblTempVendorCDR_20' ) end [2025-03-28 18:12:21] Production.INFO: ProcessCDR(1,14783262,1,1,2) [2025-03-28 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783262', 'tblTempUsageDetail_20' ) start [2025-03-28 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783262', 'tblTempUsageDetail_20' ) end [2025-03-28 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:12:27] Production.INFO: ==29681== Releasing lock... [2025-03-28 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:12:27] Production.INFO: 60.5 MB #Memory Used# [2025-03-28 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:13:05 [end_date_ymd] => 2025-03-28 18:13:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:13:05' and `end` < '2025-03-28 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-28 18:13:19] Production.INFO: count ==4338 [2025-03-28 18:13:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:13:05 - End Time 2025-03-28 18:13:05 [2025-03-28 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783267', 'tblTempUsageDetail_20' ) start [2025-03-28 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783267', 'tblTempUsageDetail_20' ) end [2025-03-28 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783267', 'tblTempVendorCDR_20' ) start [2025-03-28 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783267', 'tblTempVendorCDR_20' ) end [2025-03-28 18:13:21] Production.INFO: ProcessCDR(1,14783267,1,1,2) [2025-03-28 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783267', 'tblTempUsageDetail_20' ) start [2025-03-28 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783267', 'tblTempUsageDetail_20' ) end [2025-03-28 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:13:27] Production.INFO: ==29815== Releasing lock... [2025-03-28 18:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:13:27] Production.INFO: 60.5 MB #Memory Used# [2025-03-28 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:14:05 [end_date_ymd] => 2025-03-28 18:14:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:14:05' and `end` < '2025-03-28 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-28 18:14:19] Production.INFO: count ==4338 [2025-03-28 18:14:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:14:05 - End Time 2025-03-28 18:14:05 [2025-03-28 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783272', 'tblTempUsageDetail_20' ) start [2025-03-28 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783272', 'tblTempUsageDetail_20' ) end [2025-03-28 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783272', 'tblTempVendorCDR_20' ) start [2025-03-28 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783272', 'tblTempVendorCDR_20' ) end [2025-03-28 18:14:21] Production.INFO: ProcessCDR(1,14783272,1,1,2) [2025-03-28 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783272', 'tblTempUsageDetail_20' ) start [2025-03-28 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783272', 'tblTempUsageDetail_20' ) end [2025-03-28 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:14:27] Production.INFO: ==29919== Releasing lock... [2025-03-28 18:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:14:27] Production.INFO: 60.5 MB #Memory Used# [2025-03-28 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:15:05 [end_date_ymd] => 2025-03-28 18:15:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:15:05' and `end` < '2025-03-28 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-28 18:15:19] Production.INFO: count ==4322 [2025-03-28 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:15:05 - End Time 2025-03-28 18:15:05 [2025-03-28 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783277', 'tblTempUsageDetail_20' ) start [2025-03-28 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783277', 'tblTempUsageDetail_20' ) end [2025-03-28 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783277', 'tblTempVendorCDR_20' ) start [2025-03-28 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783277', 'tblTempVendorCDR_20' ) end [2025-03-28 18:15:20] Production.INFO: ProcessCDR(1,14783277,1,1,2) [2025-03-28 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783277', 'tblTempUsageDetail_20' ) start [2025-03-28 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783277', 'tblTempUsageDetail_20' ) end [2025-03-28 18:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:15:27] Production.INFO: ==30020== Releasing lock... [2025-03-28 18:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:15:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-28 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:16:05 [end_date_ymd] => 2025-03-28 18:16:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:16:05' and `end` < '2025-03-28 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-28 18:16:19] Production.INFO: count ==4308 [2025-03-28 18:16:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:16:05 - End Time 2025-03-28 18:16:05 [2025-03-28 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783282', 'tblTempUsageDetail_20' ) start [2025-03-28 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783282', 'tblTempUsageDetail_20' ) end [2025-03-28 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783282', 'tblTempVendorCDR_20' ) start [2025-03-28 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783282', 'tblTempVendorCDR_20' ) end [2025-03-28 18:16:21] Production.INFO: ProcessCDR(1,14783282,1,1,2) [2025-03-28 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783282', 'tblTempUsageDetail_20' ) start [2025-03-28 18:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783282', 'tblTempUsageDetail_20' ) end [2025-03-28 18:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:16:27] Production.INFO: ==30117== Releasing lock... [2025-03-28 18:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:16:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-28 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:17:05 [end_date_ymd] => 2025-03-28 18:17:05 [RateCDR] => 1 ) [2025-03-28 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:17:05' and `end` < '2025-03-28 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:17:19] Production.INFO: count ==4302 [2025-03-28 18:17:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:17:05 - End Time 2025-03-28 18:17:05 [2025-03-28 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783287', 'tblTempUsageDetail_20' ) start [2025-03-28 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783287', 'tblTempUsageDetail_20' ) end [2025-03-28 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783287', 'tblTempVendorCDR_20' ) start [2025-03-28 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783287', 'tblTempVendorCDR_20' ) end [2025-03-28 18:17:21] Production.INFO: ProcessCDR(1,14783287,1,1,2) [2025-03-28 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783287', 'tblTempUsageDetail_20' ) start [2025-03-28 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783287', 'tblTempUsageDetail_20' ) end [2025-03-28 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:17:26] Production.INFO: ==30208== Releasing lock... [2025-03-28 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:17:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-28 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:18:06 [end_date_ymd] => 2025-03-28 18:18:06 [RateCDR] => 1 ) [2025-03-28 18:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:18:06' and `end` < '2025-03-28 18:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:18:19] Production.INFO: count ==4301 [2025-03-28 18:18:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:18:06 - End Time 2025-03-28 18:18:06 [2025-03-28 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783292', 'tblTempUsageDetail_20' ) start [2025-03-28 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783292', 'tblTempUsageDetail_20' ) end [2025-03-28 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783292', 'tblTempVendorCDR_20' ) start [2025-03-28 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783292', 'tblTempVendorCDR_20' ) end [2025-03-28 18:18:21] Production.INFO: ProcessCDR(1,14783292,1,1,2) [2025-03-28 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783292', 'tblTempUsageDetail_20' ) start [2025-03-28 18:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783292', 'tblTempUsageDetail_20' ) end [2025-03-28 18:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:18:27] Production.INFO: ==30308== Releasing lock... [2025-03-28 18:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:18:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-28 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:19:06 [end_date_ymd] => 2025-03-28 18:19:06 [RateCDR] => 1 ) [2025-03-28 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-28 15:19:06' and `end` < '2025-03-28 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-28 18:19:19] Production.INFO: count ==4282 [2025-03-28 18:19:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:19:06 - End Time 2025-03-28 18:19:06 [2025-03-28 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783297', 'tblTempUsageDetail_20' ) start [2025-03-28 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783297', 'tblTempUsageDetail_20' ) end [2025-03-28 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783297', 'tblTempVendorCDR_20' ) start [2025-03-28 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783297', 'tblTempVendorCDR_20' ) end [2025-03-28 18:19:21] Production.INFO: ProcessCDR(1,14783297,1,1,2) [2025-03-28 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783297', 'tblTempUsageDetail_20' ) start [2025-03-28 18:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783297', 'tblTempUsageDetail_20' ) end [2025-03-28 18:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:19:27] Production.INFO: ==30406== Releasing lock... [2025-03-28 18:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:19:27] Production.INFO: 60 MB #Memory Used# [2025-03-28 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:20:06 [end_date_ymd] => 2025-03-28 18:20:06 [RateCDR] => 1 ) [2025-03-28 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-28 15:20:06' and `end` < '2025-03-28 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-28 18:20:20] Production.INFO: count ==4265 [2025-03-28 18:20:22] Production.ERROR: pbx CDR StartTime 2025-03-28 15:20:06 - End Time 2025-03-28 18:20:06 [2025-03-28 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783303', 'tblTempUsageDetail_20' ) start [2025-03-28 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783303', 'tblTempUsageDetail_20' ) end [2025-03-28 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783303', 'tblTempVendorCDR_20' ) start [2025-03-28 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783303', 'tblTempVendorCDR_20' ) end [2025-03-28 18:20:22] Production.INFO: ProcessCDR(1,14783303,1,1,2) [2025-03-28 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783303', 'tblTempUsageDetail_20' ) start [2025-03-28 18:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783303', 'tblTempUsageDetail_20' ) end [2025-03-28 18:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:20:28] Production.INFO: ==30506== Releasing lock... [2025-03-28 18:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:20:28] Production.INFO: 60 MB #Memory Used# [2025-03-28 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:21:05 [end_date_ymd] => 2025-03-28 18:21:05 [RateCDR] => 1 ) [2025-03-28 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:21:05' and `end` < '2025-03-28 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:21:19] Production.INFO: count ==4255 [2025-03-28 18:21:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:21:05 - End Time 2025-03-28 18:21:05 [2025-03-28 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783308', 'tblTempUsageDetail_20' ) start [2025-03-28 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783308', 'tblTempUsageDetail_20' ) end [2025-03-28 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783308', 'tblTempVendorCDR_20' ) start [2025-03-28 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783308', 'tblTempVendorCDR_20' ) end [2025-03-28 18:21:20] Production.INFO: ProcessCDR(1,14783308,1,1,2) [2025-03-28 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783308', 'tblTempUsageDetail_20' ) start [2025-03-28 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783308', 'tblTempUsageDetail_20' ) end [2025-03-28 18:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:21:26] Production.INFO: ==30615== Releasing lock... [2025-03-28 18:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:21:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-28 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:22:06 [end_date_ymd] => 2025-03-28 18:22:06 [RateCDR] => 1 ) [2025-03-28 18:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:22:06' and `end` < '2025-03-28 18:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:22:19] Production.INFO: count ==4251 [2025-03-28 18:22:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:22:06 - End Time 2025-03-28 18:22:06 [2025-03-28 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783313', 'tblTempUsageDetail_20' ) start [2025-03-28 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783313', 'tblTempUsageDetail_20' ) end [2025-03-28 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783313', 'tblTempVendorCDR_20' ) start [2025-03-28 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783313', 'tblTempVendorCDR_20' ) end [2025-03-28 18:22:21] Production.INFO: ProcessCDR(1,14783313,1,1,2) [2025-03-28 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783313', 'tblTempUsageDetail_20' ) start [2025-03-28 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783313', 'tblTempUsageDetail_20' ) end [2025-03-28 18:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:22:27] Production.INFO: ==30712== Releasing lock... [2025-03-28 18:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:22:27] Production.INFO: 59.75 MB #Memory Used# [2025-03-28 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:23:05 [end_date_ymd] => 2025-03-28 18:23:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:23:05' and `end` < '2025-03-28 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-28 18:23:19] Production.INFO: count ==4232 [2025-03-28 18:23:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:23:05 - End Time 2025-03-28 18:23:05 [2025-03-28 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783318', 'tblTempUsageDetail_20' ) start [2025-03-28 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783318', 'tblTempUsageDetail_20' ) end [2025-03-28 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783318', 'tblTempVendorCDR_20' ) start [2025-03-28 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783318', 'tblTempVendorCDR_20' ) end [2025-03-28 18:23:21] Production.INFO: ProcessCDR(1,14783318,1,1,2) [2025-03-28 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783318', 'tblTempUsageDetail_20' ) start [2025-03-28 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783318', 'tblTempUsageDetail_20' ) end [2025-03-28 18:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:23:27] Production.INFO: ==30804== Releasing lock... [2025-03-28 18:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:23:27] Production.INFO: 59.75 MB #Memory Used# [2025-03-28 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:24:06 [end_date_ymd] => 2025-03-28 18:24:06 [RateCDR] => 1 ) [2025-03-28 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:24:06' and `end` < '2025-03-28 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:24:19] Production.INFO: count ==4209 [2025-03-28 18:24:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:24:06 - End Time 2025-03-28 18:24:06 [2025-03-28 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783323', 'tblTempUsageDetail_20' ) start [2025-03-28 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783323', 'tblTempUsageDetail_20' ) end [2025-03-28 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783323', 'tblTempVendorCDR_20' ) start [2025-03-28 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783323', 'tblTempVendorCDR_20' ) end [2025-03-28 18:24:21] Production.INFO: ProcessCDR(1,14783323,1,1,2) [2025-03-28 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783323', 'tblTempUsageDetail_20' ) start [2025-03-28 18:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783323', 'tblTempUsageDetail_20' ) end [2025-03-28 18:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:24:27] Production.INFO: ==30905== Releasing lock... [2025-03-28 18:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:24:27] Production.INFO: 59.5 MB #Memory Used# [2025-03-28 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:25:05 [end_date_ymd] => 2025-03-28 18:25:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:25:05' and `end` < '2025-03-28 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-28 18:25:18] Production.INFO: count ==4212 [2025-03-28 18:25:51] Production.ERROR: pbx CDR StartTime 2025-03-28 15:25:05 - End Time 2025-03-28 18:25:05 [2025-03-28 18:25:51] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:25:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783328', 'tblTempUsageDetail_20' ) start [2025-03-28 18:25:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783328', 'tblTempUsageDetail_20' ) end [2025-03-28 18:25:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783328', 'tblTempVendorCDR_20' ) start [2025-03-28 18:25:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783328', 'tblTempVendorCDR_20' ) end [2025-03-28 18:25:55] Production.INFO: ProcessCDR(1,14783328,1,1,2) [2025-03-28 18:25:55] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:26:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:26:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:26:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:26:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783328', 'tblTempUsageDetail_20' ) start [2025-03-28 18:26:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783328', 'tblTempUsageDetail_20' ) end [2025-03-28 18:26:46] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:26:46] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:26:54] Production.INFO: ==31003== Releasing lock... [2025-03-28 18:26:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:26:54] Production.INFO: 59.5 MB #Memory Used# [2025-03-28 18:27:38] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:27:38 [end_date_ymd] => 2025-03-28 18:27:38 [RateCDR] => 1 ) [2025-03-28 18:27:38] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:27:38' and `end` < '2025-03-28 18:27:38' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:27:51] Production.INFO: count ==4204 [2025-03-28 18:28:34] Production.ERROR: pbx CDR StartTime 2025-03-28 15:27:38 - End Time 2025-03-28 18:27:38 [2025-03-28 18:28:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:28:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783336', 'tblTempUsageDetail_20' ) start [2025-03-28 18:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783336', 'tblTempUsageDetail_20' ) end [2025-03-28 18:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783336', 'tblTempVendorCDR_20' ) start [2025-03-28 18:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783336', 'tblTempVendorCDR_20' ) end [2025-03-28 18:28:39] Production.INFO: ProcessCDR(1,14783336,1,1,2) [2025-03-28 18:28:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:28:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:28:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783336', 'tblTempUsageDetail_20' ) start [2025-03-28 18:29:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783336', 'tblTempUsageDetail_20' ) end [2025-03-28 18:29:39] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:29:39] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:29:42] Production.INFO: ==31200== Releasing lock... [2025-03-28 18:29:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:29:42] Production.INFO: 59.5 MB #Memory Used# [2025-03-28 18:30:31] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:30:31 [end_date_ymd] => 2025-03-28 18:30:31 [RateCDR] => 1 ) [2025-03-28 18:30:31] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:30:31' and `end` < '2025-03-28 18:30:31' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:30:44] Production.INFO: count ==4199 [2025-03-28 18:31:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:30:31 - End Time 2025-03-28 18:30:31 [2025-03-28 18:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783348', 'tblTempUsageDetail_20' ) start [2025-03-28 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783348', 'tblTempUsageDetail_20' ) end [2025-03-28 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783348', 'tblTempVendorCDR_20' ) start [2025-03-28 18:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783348', 'tblTempVendorCDR_20' ) end [2025-03-28 18:31:23] Production.INFO: ProcessCDR(1,14783348,1,1,2) [2025-03-28 18:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783348', 'tblTempUsageDetail_20' ) start [2025-03-28 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783348', 'tblTempUsageDetail_20' ) end [2025-03-28 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:32:24] Production.INFO: ==31493== Releasing lock... [2025-03-28 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:32:24] Production.INFO: 59.5 MB #Memory Used# [2025-03-28 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:33:06 [end_date_ymd] => 2025-03-28 18:33:06 [RateCDR] => 1 ) [2025-03-28 18: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-28 15:33:06' and `end` < '2025-03-28 18: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-28 18:33:19] Production.INFO: count ==4174 [2025-03-28 18:33:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:33:06 - End Time 2025-03-28 18:33:06 [2025-03-28 18:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783359', 'tblTempUsageDetail_20' ) start [2025-03-28 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783359', 'tblTempUsageDetail_20' ) end [2025-03-28 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783359', 'tblTempVendorCDR_20' ) start [2025-03-28 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783359', 'tblTempVendorCDR_20' ) end [2025-03-28 18:33:21] Production.INFO: ProcessCDR(1,14783359,1,1,2) [2025-03-28 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783359', 'tblTempUsageDetail_20' ) start [2025-03-28 18:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783359', 'tblTempUsageDetail_20' ) end [2025-03-28 18:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:33:27] Production.INFO: ==31758== Releasing lock... [2025-03-28 18:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:33:27] Production.INFO: 59.25 MB #Memory Used# [2025-03-28 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:34:06 [end_date_ymd] => 2025-03-28 18:34:06 [RateCDR] => 1 ) [2025-03-28 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-28 15:34:06' and `end` < '2025-03-28 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-28 18:34:19] Production.INFO: count ==4149 [2025-03-28 18:34:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:34:06 - End Time 2025-03-28 18:34:06 [2025-03-28 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783364', 'tblTempUsageDetail_20' ) start [2025-03-28 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783364', 'tblTempUsageDetail_20' ) end [2025-03-28 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783364', 'tblTempVendorCDR_20' ) start [2025-03-28 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783364', 'tblTempVendorCDR_20' ) end [2025-03-28 18:34:21] Production.INFO: ProcessCDR(1,14783364,1,1,2) [2025-03-28 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783364', 'tblTempUsageDetail_20' ) start [2025-03-28 18:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783364', 'tblTempUsageDetail_20' ) end [2025-03-28 18:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:34:27] Production.INFO: ==31861== Releasing lock... [2025-03-28 18:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:34:27] Production.INFO: 59 MB #Memory Used# [2025-03-28 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:35:06 [end_date_ymd] => 2025-03-28 18:35:06 [RateCDR] => 1 ) [2025-03-28 18:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:35:06' and `end` < '2025-03-28 18:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:35:20] Production.INFO: count ==4146 [2025-03-28 18:35:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:35:06 - End Time 2025-03-28 18:35:06 [2025-03-28 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783369', 'tblTempUsageDetail_20' ) start [2025-03-28 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783369', 'tblTempUsageDetail_20' ) end [2025-03-28 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783369', 'tblTempVendorCDR_20' ) start [2025-03-28 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783369', 'tblTempVendorCDR_20' ) end [2025-03-28 18:35:21] Production.INFO: ProcessCDR(1,14783369,1,1,2) [2025-03-28 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783369', 'tblTempUsageDetail_20' ) start [2025-03-28 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783369', 'tblTempUsageDetail_20' ) end [2025-03-28 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:35:26] Production.INFO: ==31949== Releasing lock... [2025-03-28 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:35:26] Production.INFO: 59 MB #Memory Used# [2025-03-28 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:36:05 [end_date_ymd] => 2025-03-28 18:36:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:36:05' and `end` < '2025-03-28 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-28 18:36:19] Production.INFO: count ==4170 [2025-03-28 18:36:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:36:05 - End Time 2025-03-28 18:36:05 [2025-03-28 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783374', 'tblTempUsageDetail_20' ) start [2025-03-28 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783374', 'tblTempUsageDetail_20' ) end [2025-03-28 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783374', 'tblTempVendorCDR_20' ) start [2025-03-28 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783374', 'tblTempVendorCDR_20' ) end [2025-03-28 18:36:20] Production.INFO: ProcessCDR(1,14783374,1,1,2) [2025-03-28 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783374', 'tblTempUsageDetail_20' ) start [2025-03-28 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783374', 'tblTempUsageDetail_20' ) end [2025-03-28 18:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:36:26] Production.INFO: ==32037== Releasing lock... [2025-03-28 18:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:36:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-28 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:37:06 [end_date_ymd] => 2025-03-28 18:37:06 [RateCDR] => 1 ) [2025-03-28 18:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:37:06' and `end` < '2025-03-28 18:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:37:19] Production.INFO: count ==4179 [2025-03-28 18:37:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:37:06 - End Time 2025-03-28 18:37:06 [2025-03-28 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783379', 'tblTempUsageDetail_20' ) start [2025-03-28 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783379', 'tblTempUsageDetail_20' ) end [2025-03-28 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783379', 'tblTempVendorCDR_20' ) start [2025-03-28 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783379', 'tblTempVendorCDR_20' ) end [2025-03-28 18:37:21] Production.INFO: ProcessCDR(1,14783379,1,1,2) [2025-03-28 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783379', 'tblTempUsageDetail_20' ) start [2025-03-28 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783379', 'tblTempUsageDetail_20' ) end [2025-03-28 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:37:25] Production.INFO: ==32129== Releasing lock... [2025-03-28 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:37:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-28 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:38:05 [end_date_ymd] => 2025-03-28 18:38:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:38:05' and `end` < '2025-03-28 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-28 18:38:18] Production.INFO: count ==4155 [2025-03-28 18:38:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:38:05 - End Time 2025-03-28 18:38:05 [2025-03-28 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783384', 'tblTempUsageDetail_20' ) start [2025-03-28 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783384', 'tblTempUsageDetail_20' ) end [2025-03-28 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783384', 'tblTempVendorCDR_20' ) start [2025-03-28 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783384', 'tblTempVendorCDR_20' ) end [2025-03-28 18:38:20] Production.INFO: ProcessCDR(1,14783384,1,1,2) [2025-03-28 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783384', 'tblTempUsageDetail_20' ) start [2025-03-28 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783384', 'tblTempUsageDetail_20' ) end [2025-03-28 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:38:24] Production.INFO: ==32221== Releasing lock... [2025-03-28 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:38:24] Production.INFO: 59 MB #Memory Used# [2025-03-28 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:39:06 [end_date_ymd] => 2025-03-28 18:39:06 [RateCDR] => 1 ) [2025-03-28 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-28 15:39:06' and `end` < '2025-03-28 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-28 18:39:20] Production.INFO: count ==4156 [2025-03-28 18:39:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:39:06 - End Time 2025-03-28 18:39:06 [2025-03-28 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783389', 'tblTempUsageDetail_20' ) start [2025-03-28 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783389', 'tblTempUsageDetail_20' ) end [2025-03-28 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783389', 'tblTempVendorCDR_20' ) start [2025-03-28 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783389', 'tblTempVendorCDR_20' ) end [2025-03-28 18:39:21] Production.INFO: ProcessCDR(1,14783389,1,1,2) [2025-03-28 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783389', 'tblTempUsageDetail_20' ) start [2025-03-28 18:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783389', 'tblTempUsageDetail_20' ) end [2025-03-28 18:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:39:27] Production.INFO: ==32316== Releasing lock... [2025-03-28 18:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:39:27] Production.INFO: 59.25 MB #Memory Used# [2025-03-28 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:40:06 [end_date_ymd] => 2025-03-28 18:40:06 [RateCDR] => 1 ) [2025-03-28 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-28 15:40:06' and `end` < '2025-03-28 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-28 18:40:19] Production.INFO: count ==4160 [2025-03-28 18:40:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:40:06 - End Time 2025-03-28 18:40:06 [2025-03-28 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783394', 'tblTempUsageDetail_20' ) start [2025-03-28 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783394', 'tblTempUsageDetail_20' ) end [2025-03-28 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783394', 'tblTempVendorCDR_20' ) start [2025-03-28 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783394', 'tblTempVendorCDR_20' ) end [2025-03-28 18:40:21] Production.INFO: ProcessCDR(1,14783394,1,1,2) [2025-03-28 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783394', 'tblTempUsageDetail_20' ) start [2025-03-28 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783394', 'tblTempUsageDetail_20' ) end [2025-03-28 18:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:40:27] Production.INFO: ==32409== Releasing lock... [2025-03-28 18:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:40:27] Production.INFO: 59 MB #Memory Used# [2025-03-28 18:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:41:06 [end_date_ymd] => 2025-03-28 18:41:06 [RateCDR] => 1 ) [2025-03-28 18:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:41:06' and `end` < '2025-03-28 18:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:41:19] Production.INFO: count ==4104 [2025-03-28 18:41:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:41:06 - End Time 2025-03-28 18:41:06 [2025-03-28 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783400', 'tblTempUsageDetail_20' ) start [2025-03-28 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783400', 'tblTempUsageDetail_20' ) end [2025-03-28 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783400', 'tblTempVendorCDR_20' ) start [2025-03-28 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783400', 'tblTempVendorCDR_20' ) end [2025-03-28 18:41:21] Production.INFO: ProcessCDR(1,14783400,1,1,2) [2025-03-28 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783400', 'tblTempUsageDetail_20' ) start [2025-03-28 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783400', 'tblTempUsageDetail_20' ) end [2025-03-28 18:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:41:26] Production.INFO: ==32497== Releasing lock... [2025-03-28 18:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:41:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-28 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:42:05 [end_date_ymd] => 2025-03-28 18:42:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:42:05' and `end` < '2025-03-28 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-28 18:42:18] Production.INFO: count ==4027 [2025-03-28 18:42:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:42:05 - End Time 2025-03-28 18:42:05 [2025-03-28 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783405', 'tblTempUsageDetail_20' ) start [2025-03-28 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783405', 'tblTempUsageDetail_20' ) end [2025-03-28 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783405', 'tblTempVendorCDR_20' ) start [2025-03-28 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783405', 'tblTempVendorCDR_20' ) end [2025-03-28 18:42:20] Production.INFO: ProcessCDR(1,14783405,1,1,2) [2025-03-28 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783405', 'tblTempUsageDetail_20' ) start [2025-03-28 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783405', 'tblTempUsageDetail_20' ) end [2025-03-28 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:42:24] Production.INFO: ==32592== Releasing lock... [2025-03-28 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:42:24] Production.INFO: 58 MB #Memory Used# [2025-03-28 18:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:43:06 [end_date_ymd] => 2025-03-28 18:43:06 [RateCDR] => 1 ) [2025-03-28 18: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-28 15:43:06' and `end` < '2025-03-28 18: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-28 18:43:19] Production.INFO: count ==3989 [2025-03-28 18:43:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:43:06 - End Time 2025-03-28 18:43:06 [2025-03-28 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783410', 'tblTempUsageDetail_20' ) start [2025-03-28 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783410', 'tblTempUsageDetail_20' ) end [2025-03-28 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783410', 'tblTempVendorCDR_20' ) start [2025-03-28 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783410', 'tblTempVendorCDR_20' ) end [2025-03-28 18:43:21] Production.INFO: ProcessCDR(1,14783410,1,1,2) [2025-03-28 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783410', 'tblTempUsageDetail_20' ) start [2025-03-28 18:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783410', 'tblTempUsageDetail_20' ) end [2025-03-28 18:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:43:27] Production.INFO: ==32684== Releasing lock... [2025-03-28 18:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:43:27] Production.INFO: 58 MB #Memory Used# [2025-03-28 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:44:06 [end_date_ymd] => 2025-03-28 18:44:06 [RateCDR] => 1 ) [2025-03-28 18: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-28 15:44:06' and `end` < '2025-03-28 18: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-28 18:44:19] Production.INFO: count ==3976 [2025-03-28 18:44:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:44:06 - End Time 2025-03-28 18:44:06 [2025-03-28 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783415', 'tblTempUsageDetail_20' ) start [2025-03-28 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783415', 'tblTempUsageDetail_20' ) end [2025-03-28 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783415', 'tblTempVendorCDR_20' ) start [2025-03-28 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783415', 'tblTempVendorCDR_20' ) end [2025-03-28 18:44:21] Production.INFO: ProcessCDR(1,14783415,1,1,2) [2025-03-28 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783415', 'tblTempUsageDetail_20' ) start [2025-03-28 18:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783415', 'tblTempUsageDetail_20' ) end [2025-03-28 18:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:44:27] Production.INFO: ==371== Releasing lock... [2025-03-28 18:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:44:27] Production.INFO: 57.75 MB #Memory Used# [2025-03-28 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:45:06 [end_date_ymd] => 2025-03-28 18:45:06 [RateCDR] => 1 ) [2025-03-28 18:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:45:06' and `end` < '2025-03-28 18:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:45:19] Production.INFO: count ==3976 [2025-03-28 18:45:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:45:06 - End Time 2025-03-28 18:45:06 [2025-03-28 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783420', 'tblTempUsageDetail_20' ) start [2025-03-28 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783420', 'tblTempUsageDetail_20' ) end [2025-03-28 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783420', 'tblTempVendorCDR_20' ) start [2025-03-28 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783420', 'tblTempVendorCDR_20' ) end [2025-03-28 18:45:21] Production.INFO: ProcessCDR(1,14783420,1,1,2) [2025-03-28 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783420', 'tblTempUsageDetail_20' ) start [2025-03-28 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783420', 'tblTempUsageDetail_20' ) end [2025-03-28 18:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:45:25] Production.INFO: ==468== Releasing lock... [2025-03-28 18:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:45:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-28 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:46:06 [end_date_ymd] => 2025-03-28 18:46:06 [RateCDR] => 1 ) [2025-03-28 18:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:46:06' and `end` < '2025-03-28 18:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:46:19] Production.INFO: count ==3975 [2025-03-28 18:46:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:46:06 - End Time 2025-03-28 18:46:06 [2025-03-28 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783425', 'tblTempUsageDetail_20' ) start [2025-03-28 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783425', 'tblTempUsageDetail_20' ) end [2025-03-28 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783425', 'tblTempVendorCDR_20' ) start [2025-03-28 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783425', 'tblTempVendorCDR_20' ) end [2025-03-28 18:46:21] Production.INFO: ProcessCDR(1,14783425,1,1,2) [2025-03-28 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783425', 'tblTempUsageDetail_20' ) start [2025-03-28 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783425', 'tblTempUsageDetail_20' ) end [2025-03-28 18:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:46:25] Production.INFO: ==572== Releasing lock... [2025-03-28 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:46:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-28 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:47:06 [end_date_ymd] => 2025-03-28 18:47:06 [RateCDR] => 1 ) [2025-03-28 18:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:47:06' and `end` < '2025-03-28 18:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:47:19] Production.INFO: count ==3972 [2025-03-28 18:47:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:47:06 - End Time 2025-03-28 18:47:06 [2025-03-28 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783430', 'tblTempUsageDetail_20' ) start [2025-03-28 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783430', 'tblTempUsageDetail_20' ) end [2025-03-28 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783430', 'tblTempVendorCDR_20' ) start [2025-03-28 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783430', 'tblTempVendorCDR_20' ) end [2025-03-28 18:47:21] Production.INFO: ProcessCDR(1,14783430,1,1,2) [2025-03-28 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783430', 'tblTempUsageDetail_20' ) start [2025-03-28 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783430', 'tblTempUsageDetail_20' ) end [2025-03-28 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:47:25] Production.INFO: ==694== Releasing lock... [2025-03-28 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:47:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-28 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:48:06 [end_date_ymd] => 2025-03-28 18:48:06 [RateCDR] => 1 ) [2025-03-28 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-28 15:48:06' and `end` < '2025-03-28 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-28 18:48:19] Production.INFO: count ==3968 [2025-03-28 18:48:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:48:06 - End Time 2025-03-28 18:48:06 [2025-03-28 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783435', 'tblTempUsageDetail_20' ) start [2025-03-28 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783435', 'tblTempUsageDetail_20' ) end [2025-03-28 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783435', 'tblTempVendorCDR_20' ) start [2025-03-28 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783435', 'tblTempVendorCDR_20' ) end [2025-03-28 18:48:20] Production.INFO: ProcessCDR(1,14783435,1,1,2) [2025-03-28 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783435', 'tblTempUsageDetail_20' ) start [2025-03-28 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783435', 'tblTempUsageDetail_20' ) end [2025-03-28 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:48:24] Production.INFO: ==797== Releasing lock... [2025-03-28 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:48:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-28 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:49:06 [end_date_ymd] => 2025-03-28 18:49:06 [RateCDR] => 1 ) [2025-03-28 18:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:49:06' and `end` < '2025-03-28 18:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:49:20] Production.INFO: count ==3947 [2025-03-28 18:49:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:49:06 - End Time 2025-03-28 18:49:06 [2025-03-28 18:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783440', 'tblTempUsageDetail_20' ) start [2025-03-28 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783440', 'tblTempUsageDetail_20' ) end [2025-03-28 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783440', 'tblTempVendorCDR_20' ) start [2025-03-28 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783440', 'tblTempVendorCDR_20' ) end [2025-03-28 18:49:21] Production.INFO: ProcessCDR(1,14783440,1,1,2) [2025-03-28 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783440', 'tblTempUsageDetail_20' ) start [2025-03-28 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783440', 'tblTempUsageDetail_20' ) end [2025-03-28 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:49:25] Production.INFO: ==891== Releasing lock... [2025-03-28 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:49:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-28 18:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:50:07 [end_date_ymd] => 2025-03-28 18:50:07 [RateCDR] => 1 ) [2025-03-28 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-28 15:50:07' and `end` < '2025-03-28 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-28 18:50:20] Production.INFO: count ==3947 [2025-03-28 18:50:22] Production.ERROR: pbx CDR StartTime 2025-03-28 15:50:07 - End Time 2025-03-28 18:50:07 [2025-03-28 18:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783446', 'tblTempUsageDetail_20' ) start [2025-03-28 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783446', 'tblTempUsageDetail_20' ) end [2025-03-28 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783446', 'tblTempVendorCDR_20' ) start [2025-03-28 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783446', 'tblTempVendorCDR_20' ) end [2025-03-28 18:50:22] Production.INFO: ProcessCDR(1,14783446,1,1,2) [2025-03-28 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783446', 'tblTempUsageDetail_20' ) start [2025-03-28 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783446', 'tblTempUsageDetail_20' ) end [2025-03-28 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:50:26] Production.INFO: ==999== Releasing lock... [2025-03-28 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:50:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-28 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:51:06 [end_date_ymd] => 2025-03-28 18:51:06 [RateCDR] => 1 ) [2025-03-28 18:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:51:06' and `end` < '2025-03-28 18:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:51:19] Production.INFO: count ==3931 [2025-03-28 18:51:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:51:06 - End Time 2025-03-28 18:51:06 [2025-03-28 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783451', 'tblTempUsageDetail_20' ) start [2025-03-28 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783451', 'tblTempUsageDetail_20' ) end [2025-03-28 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783451', 'tblTempVendorCDR_20' ) start [2025-03-28 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783451', 'tblTempVendorCDR_20' ) end [2025-03-28 18:51:21] Production.INFO: ProcessCDR(1,14783451,1,1,2) [2025-03-28 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783451', 'tblTempUsageDetail_20' ) start [2025-03-28 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783451', 'tblTempUsageDetail_20' ) end [2025-03-28 18:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:51:26] Production.INFO: ==1096== Releasing lock... [2025-03-28 18:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:51:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-28 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:52:06 [end_date_ymd] => 2025-03-28 18:52:06 [RateCDR] => 1 ) [2025-03-28 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-28 15:52:06' and `end` < '2025-03-28 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-28 18:52:19] Production.INFO: count ==3948 [2025-03-28 18:52:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:52:06 - End Time 2025-03-28 18:52:06 [2025-03-28 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783456', 'tblTempUsageDetail_20' ) start [2025-03-28 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783456', 'tblTempUsageDetail_20' ) end [2025-03-28 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783456', 'tblTempVendorCDR_20' ) start [2025-03-28 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783456', 'tblTempVendorCDR_20' ) end [2025-03-28 18:52:21] Production.INFO: ProcessCDR(1,14783456,1,1,2) [2025-03-28 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783456', 'tblTempUsageDetail_20' ) start [2025-03-28 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783456', 'tblTempUsageDetail_20' ) end [2025-03-28 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:52:25] Production.INFO: ==1195== Releasing lock... [2025-03-28 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:52:25] Production.INFO: 58 MB #Memory Used# [2025-03-28 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:53:05 [end_date_ymd] => 2025-03-28 18:53:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:53:05' and `end` < '2025-03-28 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-28 18:53:18] Production.INFO: count ==3951 [2025-03-28 18:53:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:53:05 - End Time 2025-03-28 18:53:05 [2025-03-28 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783461', 'tblTempUsageDetail_20' ) start [2025-03-28 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783461', 'tblTempUsageDetail_20' ) end [2025-03-28 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783461', 'tblTempVendorCDR_20' ) start [2025-03-28 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783461', 'tblTempVendorCDR_20' ) end [2025-03-28 18:53:20] Production.INFO: ProcessCDR(1,14783461,1,1,2) [2025-03-28 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783461', 'tblTempUsageDetail_20' ) start [2025-03-28 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783461', 'tblTempUsageDetail_20' ) end [2025-03-28 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:53:24] Production.INFO: ==1293== Releasing lock... [2025-03-28 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:53:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-28 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:54:06 [end_date_ymd] => 2025-03-28 18:54:06 [RateCDR] => 1 ) [2025-03-28 18:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:54:06' and `end` < '2025-03-28 18:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:54:19] Production.INFO: count ==3938 [2025-03-28 18:54:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:54:06 - End Time 2025-03-28 18:54:06 [2025-03-28 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783466', 'tblTempUsageDetail_20' ) start [2025-03-28 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783466', 'tblTempUsageDetail_20' ) end [2025-03-28 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783466', 'tblTempVendorCDR_20' ) start [2025-03-28 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783466', 'tblTempVendorCDR_20' ) end [2025-03-28 18:54:20] Production.INFO: ProcessCDR(1,14783466,1,1,2) [2025-03-28 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783466', 'tblTempUsageDetail_20' ) start [2025-03-28 18:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783466', 'tblTempUsageDetail_20' ) end [2025-03-28 18:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:54:26] Production.INFO: ==1378== Releasing lock... [2025-03-28 18:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:54:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-28 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:55:05 [end_date_ymd] => 2025-03-28 18:55:05 [RateCDR] => 1 ) [2025-03-28 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-28 15:55:05' and `end` < '2025-03-28 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-28 18:55:19] Production.INFO: count ==3921 [2025-03-28 18:55:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:55:05 - End Time 2025-03-28 18:55:05 [2025-03-28 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783471', 'tblTempUsageDetail_20' ) start [2025-03-28 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783471', 'tblTempUsageDetail_20' ) end [2025-03-28 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783471', 'tblTempVendorCDR_20' ) start [2025-03-28 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783471', 'tblTempVendorCDR_20' ) end [2025-03-28 18:55:20] Production.INFO: ProcessCDR(1,14783471,1,1,2) [2025-03-28 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783471', 'tblTempUsageDetail_20' ) start [2025-03-28 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783471', 'tblTempUsageDetail_20' ) end [2025-03-28 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:55:24] Production.INFO: ==1464== Releasing lock... [2025-03-28 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:55:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-28 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:56:06 [end_date_ymd] => 2025-03-28 18:56:06 [RateCDR] => 1 ) [2025-03-28 18: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-28 15:56:06' and `end` < '2025-03-28 18: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-28 18:56:19] Production.INFO: count ==3911 [2025-03-28 18:56:21] Production.ERROR: pbx CDR StartTime 2025-03-28 15:56:06 - End Time 2025-03-28 18:56:06 [2025-03-28 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783476', 'tblTempUsageDetail_20' ) start [2025-03-28 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783476', 'tblTempUsageDetail_20' ) end [2025-03-28 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783476', 'tblTempVendorCDR_20' ) start [2025-03-28 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783476', 'tblTempVendorCDR_20' ) end [2025-03-28 18:56:21] Production.INFO: ProcessCDR(1,14783476,1,1,2) [2025-03-28 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783476', 'tblTempUsageDetail_20' ) start [2025-03-28 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783476', 'tblTempUsageDetail_20' ) end [2025-03-28 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:56:25] Production.INFO: ==1589== Releasing lock... [2025-03-28 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:56:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-28 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:57:06 [end_date_ymd] => 2025-03-28 18:57:06 [RateCDR] => 1 ) [2025-03-28 18:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:57:06' and `end` < '2025-03-28 18:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:57:19] Production.INFO: count ==3882 [2025-03-28 18:57:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:57:06 - End Time 2025-03-28 18:57:06 [2025-03-28 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783481', 'tblTempUsageDetail_20' ) start [2025-03-28 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783481', 'tblTempUsageDetail_20' ) end [2025-03-28 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783481', 'tblTempVendorCDR_20' ) start [2025-03-28 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783481', 'tblTempVendorCDR_20' ) end [2025-03-28 18:57:20] Production.INFO: ProcessCDR(1,14783481,1,1,2) [2025-03-28 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783481', 'tblTempUsageDetail_20' ) start [2025-03-28 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783481', 'tblTempUsageDetail_20' ) end [2025-03-28 18:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:57:26] Production.INFO: ==1670== Releasing lock... [2025-03-28 18:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:57:26] Production.INFO: 57 MB #Memory Used# [2025-03-28 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:58:06 [end_date_ymd] => 2025-03-28 18:58:06 [RateCDR] => 1 ) [2025-03-28 18:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:58:06' and `end` < '2025-03-28 18:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:58:19] Production.INFO: count ==3858 [2025-03-28 18:58:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:58:06 - End Time 2025-03-28 18:58:06 [2025-03-28 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783486', 'tblTempUsageDetail_20' ) start [2025-03-28 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783486', 'tblTempUsageDetail_20' ) end [2025-03-28 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783486', 'tblTempVendorCDR_20' ) start [2025-03-28 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783486', 'tblTempVendorCDR_20' ) end [2025-03-28 18:58:20] Production.INFO: ProcessCDR(1,14783486,1,1,2) [2025-03-28 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783486', 'tblTempUsageDetail_20' ) start [2025-03-28 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783486', 'tblTempUsageDetail_20' ) end [2025-03-28 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:58:24] Production.INFO: ==1756== Releasing lock... [2025-03-28 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:58:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-28 18:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 15:59:06 [end_date_ymd] => 2025-03-28 18:59:06 [RateCDR] => 1 ) [2025-03-28 18:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 15:59:06' and `end` < '2025-03-28 18:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 18:59:19] Production.INFO: count ==3866 [2025-03-28 18:59:20] Production.ERROR: pbx CDR StartTime 2025-03-28 15:59:06 - End Time 2025-03-28 18:59:06 [2025-03-28 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783491', 'tblTempUsageDetail_20' ) start [2025-03-28 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783491', 'tblTempUsageDetail_20' ) end [2025-03-28 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783491', 'tblTempVendorCDR_20' ) start [2025-03-28 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783491', 'tblTempVendorCDR_20' ) end [2025-03-28 18:59:21] Production.INFO: ProcessCDR(1,14783491,1,1,2) [2025-03-28 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783491', 'tblTempUsageDetail_20' ) start [2025-03-28 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783491', 'tblTempUsageDetail_20' ) end [2025-03-28 18:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 18:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 18:59:26] Production.INFO: ==1851== Releasing lock... [2025-03-28 18:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 18:59:26] Production.INFO: 57 MB #Memory Used# [2025-03-28 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:00:07 [end_date_ymd] => 2025-03-28 19:00:07 [RateCDR] => 1 ) [2025-03-28 19:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:00:07' and `end` < '2025-03-28 19:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:00:20] Production.INFO: count ==3848 [2025-03-28 19:00:21] Production.ERROR: pbx CDR StartTime 2025-03-28 16:00:07 - End Time 2025-03-28 19:00:07 [2025-03-28 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783497', 'tblTempUsageDetail_20' ) start [2025-03-28 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783497', 'tblTempUsageDetail_20' ) end [2025-03-28 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783497', 'tblTempVendorCDR_20' ) start [2025-03-28 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783497', 'tblTempVendorCDR_20' ) end [2025-03-28 19:00:22] Production.INFO: ProcessCDR(1,14783497,1,1,2) [2025-03-28 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783497', 'tblTempUsageDetail_20' ) start [2025-03-28 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783497', 'tblTempUsageDetail_20' ) end [2025-03-28 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:00:25] Production.INFO: ==1986== Releasing lock... [2025-03-28 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:00:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-28 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:01:05 [end_date_ymd] => 2025-03-28 19:01:05 [RateCDR] => 1 ) [2025-03-28 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:01:05' and `end` < '2025-03-28 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:01:19] Production.INFO: count ==3823 [2025-03-28 19:01:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:01:05 - End Time 2025-03-28 19:01:05 [2025-03-28 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783502', 'tblTempUsageDetail_20' ) start [2025-03-28 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783502', 'tblTempUsageDetail_20' ) end [2025-03-28 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783502', 'tblTempVendorCDR_20' ) start [2025-03-28 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783502', 'tblTempVendorCDR_20' ) end [2025-03-28 19:01:20] Production.INFO: ProcessCDR(1,14783502,1,1,2) [2025-03-28 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783502', 'tblTempUsageDetail_20' ) start [2025-03-28 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783502', 'tblTempUsageDetail_20' ) end [2025-03-28 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:01:24] Production.INFO: ==2130== Releasing lock... [2025-03-28 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:01:24] Production.INFO: 57 MB #Memory Used# [2025-03-28 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:02:06 [end_date_ymd] => 2025-03-28 19:02:06 [RateCDR] => 1 ) [2025-03-28 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-28 16:02:06' and `end` < '2025-03-28 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-28 19:02:19] Production.INFO: count ==3814 [2025-03-28 19:02:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:02:06 - End Time 2025-03-28 19:02:06 [2025-03-28 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783507', 'tblTempUsageDetail_20' ) start [2025-03-28 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783507', 'tblTempUsageDetail_20' ) end [2025-03-28 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783507', 'tblTempVendorCDR_20' ) start [2025-03-28 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783507', 'tblTempVendorCDR_20' ) end [2025-03-28 19:02:20] Production.INFO: ProcessCDR(1,14783507,1,1,2) [2025-03-28 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783507', 'tblTempUsageDetail_20' ) start [2025-03-28 19:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783507', 'tblTempUsageDetail_20' ) end [2025-03-28 19:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:02:26] Production.INFO: ==2255== Releasing lock... [2025-03-28 19:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:02:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-28 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:03:05 [end_date_ymd] => 2025-03-28 19:03:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:03:05' and `end` < '2025-03-28 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-28 19:03:18] Production.INFO: count ==3813 [2025-03-28 19:03:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:03:05 - End Time 2025-03-28 19:03:05 [2025-03-28 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783512', 'tblTempUsageDetail_20' ) start [2025-03-28 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783512', 'tblTempUsageDetail_20' ) end [2025-03-28 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783512', 'tblTempVendorCDR_20' ) start [2025-03-28 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783512', 'tblTempVendorCDR_20' ) end [2025-03-28 19:03:19] Production.INFO: ProcessCDR(1,14783512,1,1,2) [2025-03-28 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783512', 'tblTempUsageDetail_20' ) start [2025-03-28 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783512', 'tblTempUsageDetail_20' ) end [2025-03-28 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:03:23] Production.INFO: ==2339== Releasing lock... [2025-03-28 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:03:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-28 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:04:05 [end_date_ymd] => 2025-03-28 19:04:05 [RateCDR] => 1 ) [2025-03-28 19: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-28 16:04:05' and `end` < '2025-03-28 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-28 19:04:19] Production.INFO: count ==3807 [2025-03-28 19:04:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:04:05 - End Time 2025-03-28 19:04:05 [2025-03-28 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783517', 'tblTempUsageDetail_20' ) start [2025-03-28 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783517', 'tblTempUsageDetail_20' ) end [2025-03-28 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783517', 'tblTempVendorCDR_20' ) start [2025-03-28 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783517', 'tblTempVendorCDR_20' ) end [2025-03-28 19:04:20] Production.INFO: ProcessCDR(1,14783517,1,1,2) [2025-03-28 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783517', 'tblTempUsageDetail_20' ) start [2025-03-28 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783517', 'tblTempUsageDetail_20' ) end [2025-03-28 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:04:25] Production.INFO: ==2427== Releasing lock... [2025-03-28 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:04:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-28 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:05:04 [end_date_ymd] => 2025-03-28 19:05:04 [RateCDR] => 1 ) [2025-03-28 19:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:05:04' and `end` < '2025-03-28 19:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:05:18] Production.INFO: count ==3777 [2025-03-28 19:05:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:05:04 - End Time 2025-03-28 19:05:04 [2025-03-28 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783522', 'tblTempUsageDetail_20' ) start [2025-03-28 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783522', 'tblTempUsageDetail_20' ) end [2025-03-28 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783522', 'tblTempVendorCDR_20' ) start [2025-03-28 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783522', 'tblTempVendorCDR_20' ) end [2025-03-28 19:05:19] Production.INFO: ProcessCDR(1,14783522,1,1,2) [2025-03-28 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783522', 'tblTempUsageDetail_20' ) start [2025-03-28 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783522', 'tblTempUsageDetail_20' ) end [2025-03-28 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:05:22] Production.INFO: ==2591== Releasing lock... [2025-03-28 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:05:22] Production.INFO: 56.25 MB #Memory Used# [2025-03-28 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:06:06 [end_date_ymd] => 2025-03-28 19:06:06 [RateCDR] => 1 ) [2025-03-28 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-28 16:06:06' and `end` < '2025-03-28 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-28 19:06:19] Production.INFO: count ==3761 [2025-03-28 19:06:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:06:06 - End Time 2025-03-28 19:06:06 [2025-03-28 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783527', 'tblTempUsageDetail_20' ) start [2025-03-28 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783527', 'tblTempUsageDetail_20' ) end [2025-03-28 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783527', 'tblTempVendorCDR_20' ) start [2025-03-28 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783527', 'tblTempVendorCDR_20' ) end [2025-03-28 19:06:20] Production.INFO: ProcessCDR(1,14783527,1,1,2) [2025-03-28 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783527', 'tblTempUsageDetail_20' ) start [2025-03-28 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783527', 'tblTempUsageDetail_20' ) end [2025-03-28 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:06:24] Production.INFO: ==2680== Releasing lock... [2025-03-28 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:06:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-28 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:07:05 [end_date_ymd] => 2025-03-28 19:07:05 [RateCDR] => 1 ) [2025-03-28 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:07:05' and `end` < '2025-03-28 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:07:18] Production.INFO: count ==3741 [2025-03-28 19:07:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:07:05 - End Time 2025-03-28 19:07:05 [2025-03-28 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783532', 'tblTempUsageDetail_20' ) start [2025-03-28 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783532', 'tblTempUsageDetail_20' ) end [2025-03-28 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783532', 'tblTempVendorCDR_20' ) start [2025-03-28 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783532', 'tblTempVendorCDR_20' ) end [2025-03-28 19:07:19] Production.INFO: ProcessCDR(1,14783532,1,1,2) [2025-03-28 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783532', 'tblTempUsageDetail_20' ) start [2025-03-28 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783532', 'tblTempUsageDetail_20' ) end [2025-03-28 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:07:24] Production.INFO: ==2764== Releasing lock... [2025-03-28 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:07:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-28 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:08:05 [end_date_ymd] => 2025-03-28 19:08:05 [RateCDR] => 1 ) [2025-03-28 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:08:05' and `end` < '2025-03-28 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:08:18] Production.INFO: count ==3746 [2025-03-28 19:08:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:08:05 - End Time 2025-03-28 19:08:05 [2025-03-28 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783537', 'tblTempUsageDetail_20' ) start [2025-03-28 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783537', 'tblTempUsageDetail_20' ) end [2025-03-28 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783537', 'tblTempVendorCDR_20' ) start [2025-03-28 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783537', 'tblTempVendorCDR_20' ) end [2025-03-28 19:08:20] Production.INFO: ProcessCDR(1,14783537,1,1,2) [2025-03-28 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783537', 'tblTempUsageDetail_20' ) start [2025-03-28 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783537', 'tblTempUsageDetail_20' ) end [2025-03-28 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:08:25] Production.INFO: ==2928== Releasing lock... [2025-03-28 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:08:25] Production.INFO: 56 MB #Memory Used# [2025-03-28 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:09:05 [end_date_ymd] => 2025-03-28 19:09:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:09:05' and `end` < '2025-03-28 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-28 19:09:18] Production.INFO: count ==3752 [2025-03-28 19:09:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:09:05 - End Time 2025-03-28 19:09:05 [2025-03-28 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783542', 'tblTempUsageDetail_20' ) start [2025-03-28 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783542', 'tblTempUsageDetail_20' ) end [2025-03-28 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783542', 'tblTempVendorCDR_20' ) start [2025-03-28 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783542', 'tblTempVendorCDR_20' ) end [2025-03-28 19:09:20] Production.INFO: ProcessCDR(1,14783542,1,1,2) [2025-03-28 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783542', 'tblTempUsageDetail_20' ) start [2025-03-28 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783542', 'tblTempUsageDetail_20' ) end [2025-03-28 19:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:09:25] Production.INFO: ==3021== Releasing lock... [2025-03-28 19:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:09:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-28 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:10:06 [end_date_ymd] => 2025-03-28 19:10:06 [RateCDR] => 1 ) [2025-03-28 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-28 16:10:06' and `end` < '2025-03-28 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-28 19:10:20] Production.INFO: count ==3718 [2025-03-28 19:10:21] Production.ERROR: pbx CDR StartTime 2025-03-28 16:10:06 - End Time 2025-03-28 19:10:06 [2025-03-28 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783548', 'tblTempUsageDetail_20' ) start [2025-03-28 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783548', 'tblTempUsageDetail_20' ) end [2025-03-28 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783548', 'tblTempVendorCDR_20' ) start [2025-03-28 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783548', 'tblTempVendorCDR_20' ) end [2025-03-28 19:10:21] Production.INFO: ProcessCDR(1,14783548,1,1,2) [2025-03-28 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783548', 'tblTempUsageDetail_20' ) start [2025-03-28 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783548', 'tblTempUsageDetail_20' ) end [2025-03-28 19:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:10:25] Production.INFO: ==3124== Releasing lock... [2025-03-28 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:10:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-28 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:11:05 [end_date_ymd] => 2025-03-28 19:11:05 [RateCDR] => 1 ) [2025-03-28 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:11:05' and `end` < '2025-03-28 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:11:18] Production.INFO: count ==3652 [2025-03-28 19:11:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:11:05 - End Time 2025-03-28 19:11:05 [2025-03-28 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783553', 'tblTempUsageDetail_20' ) start [2025-03-28 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783553', 'tblTempUsageDetail_20' ) end [2025-03-28 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783553', 'tblTempVendorCDR_20' ) start [2025-03-28 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783553', 'tblTempVendorCDR_20' ) end [2025-03-28 19:11:19] Production.INFO: ProcessCDR(1,14783553,1,1,2) [2025-03-28 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783553', 'tblTempUsageDetail_20' ) start [2025-03-28 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783553', 'tblTempUsageDetail_20' ) end [2025-03-28 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:11:23] Production.INFO: ==3223== Releasing lock... [2025-03-28 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:11:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-28 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:12:06 [end_date_ymd] => 2025-03-28 19:12:06 [RateCDR] => 1 ) [2025-03-28 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:12:06' and `end` < '2025-03-28 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:12:19] Production.INFO: count ==3641 [2025-03-28 19:12:21] Production.ERROR: pbx CDR StartTime 2025-03-28 16:12:06 - End Time 2025-03-28 19:12:06 [2025-03-28 19:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783558', 'tblTempUsageDetail_20' ) start [2025-03-28 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783558', 'tblTempUsageDetail_20' ) end [2025-03-28 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783558', 'tblTempVendorCDR_20' ) start [2025-03-28 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783558', 'tblTempVendorCDR_20' ) end [2025-03-28 19:12:21] Production.INFO: ProcessCDR(1,14783558,1,1,2) [2025-03-28 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783558', 'tblTempUsageDetail_20' ) start [2025-03-28 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783558', 'tblTempUsageDetail_20' ) end [2025-03-28 19:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:12:26] Production.INFO: ==3408== Releasing lock... [2025-03-28 19:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:12:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-28 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:13:05 [end_date_ymd] => 2025-03-28 19:13:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:13:05' and `end` < '2025-03-28 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-28 19:13:18] Production.INFO: count ==3645 [2025-03-28 19:13:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:13:05 - End Time 2025-03-28 19:13:05 [2025-03-28 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783563', 'tblTempUsageDetail_20' ) start [2025-03-28 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783563', 'tblTempUsageDetail_20' ) end [2025-03-28 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783563', 'tblTempVendorCDR_20' ) start [2025-03-28 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783563', 'tblTempVendorCDR_20' ) end [2025-03-28 19:13:19] Production.INFO: ProcessCDR(1,14783563,1,1,2) [2025-03-28 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783563', 'tblTempUsageDetail_20' ) start [2025-03-28 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783563', 'tblTempUsageDetail_20' ) end [2025-03-28 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:13:24] Production.INFO: ==3510== Releasing lock... [2025-03-28 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:13:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-28 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:14:06 [end_date_ymd] => 2025-03-28 19:14:06 [RateCDR] => 1 ) [2025-03-28 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:14:06' and `end` < '2025-03-28 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:14:19] Production.INFO: count ==3620 [2025-03-28 19:14:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:14:06 - End Time 2025-03-28 19:14:06 [2025-03-28 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783568', 'tblTempUsageDetail_20' ) start [2025-03-28 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783568', 'tblTempUsageDetail_20' ) end [2025-03-28 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783568', 'tblTempVendorCDR_20' ) start [2025-03-28 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783568', 'tblTempVendorCDR_20' ) end [2025-03-28 19:14:20] Production.INFO: ProcessCDR(1,14783568,1,1,2) [2025-03-28 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783568', 'tblTempUsageDetail_20' ) start [2025-03-28 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783568', 'tblTempUsageDetail_20' ) end [2025-03-28 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:14:24] Production.INFO: ==3610== Releasing lock... [2025-03-28 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:14:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-28 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:15:05 [end_date_ymd] => 2025-03-28 19:15:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:15:05' and `end` < '2025-03-28 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-28 19:15:18] Production.INFO: count ==3610 [2025-03-28 19:15:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:15:05 - End Time 2025-03-28 19:15:05 [2025-03-28 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783573', 'tblTempUsageDetail_20' ) start [2025-03-28 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783573', 'tblTempUsageDetail_20' ) end [2025-03-28 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783573', 'tblTempVendorCDR_20' ) start [2025-03-28 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783573', 'tblTempVendorCDR_20' ) end [2025-03-28 19:15:20] Production.INFO: ProcessCDR(1,14783573,1,1,2) [2025-03-28 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783573', 'tblTempUsageDetail_20' ) start [2025-03-28 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783573', 'tblTempUsageDetail_20' ) end [2025-03-28 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:15:25] Production.INFO: ==3829== Releasing lock... [2025-03-28 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:15:25] Production.INFO: 56 MB #Memory Used# [2025-03-28 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:16:05 [end_date_ymd] => 2025-03-28 19:16:05 [RateCDR] => 1 ) [2025-03-28 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:16:05' and `end` < '2025-03-28 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:16:18] Production.INFO: count ==3606 [2025-03-28 19:16:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:16:05 - End Time 2025-03-28 19:16:05 [2025-03-28 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783578', 'tblTempUsageDetail_20' ) start [2025-03-28 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783578', 'tblTempUsageDetail_20' ) end [2025-03-28 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783578', 'tblTempVendorCDR_20' ) start [2025-03-28 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783578', 'tblTempVendorCDR_20' ) end [2025-03-28 19:16:20] Production.INFO: ProcessCDR(1,14783578,1,1,2) [2025-03-28 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783578', 'tblTempUsageDetail_20' ) start [2025-03-28 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783578', 'tblTempUsageDetail_20' ) end [2025-03-28 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:16:25] Production.INFO: ==3930== Releasing lock... [2025-03-28 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:16:25] Production.INFO: 55 MB #Memory Used# [2025-03-28 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:17:06 [end_date_ymd] => 2025-03-28 19:17:06 [RateCDR] => 1 ) [2025-03-28 19:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:17:06' and `end` < '2025-03-28 19:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:17:19] Production.INFO: count ==3588 [2025-03-28 19:17:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:17:06 - End Time 2025-03-28 19:17:06 [2025-03-28 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783583', 'tblTempUsageDetail_20' ) start [2025-03-28 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783583', 'tblTempUsageDetail_20' ) end [2025-03-28 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783583', 'tblTempVendorCDR_20' ) start [2025-03-28 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783583', 'tblTempVendorCDR_20' ) end [2025-03-28 19:17:20] Production.INFO: ProcessCDR(1,14783583,1,1,2) [2025-03-28 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783583', 'tblTempUsageDetail_20' ) start [2025-03-28 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783583', 'tblTempUsageDetail_20' ) end [2025-03-28 19:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:17:25] Production.INFO: ==4043== Releasing lock... [2025-03-28 19:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:17:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-28 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:18:05 [end_date_ymd] => 2025-03-28 19:18:05 [RateCDR] => 1 ) [2025-03-28 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:18:05' and `end` < '2025-03-28 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:18:18] Production.INFO: count ==3593 [2025-03-28 19:18:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:18:05 - End Time 2025-03-28 19:18:05 [2025-03-28 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783588', 'tblTempUsageDetail_20' ) start [2025-03-28 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783588', 'tblTempUsageDetail_20' ) end [2025-03-28 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783588', 'tblTempVendorCDR_20' ) start [2025-03-28 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783588', 'tblTempVendorCDR_20' ) end [2025-03-28 19:18:20] Production.INFO: ProcessCDR(1,14783588,1,1,2) [2025-03-28 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783588', 'tblTempUsageDetail_20' ) start [2025-03-28 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783588', 'tblTempUsageDetail_20' ) end [2025-03-28 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:18:25] Production.INFO: ==4145== Releasing lock... [2025-03-28 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:18:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-28 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:19:05 [end_date_ymd] => 2025-03-28 19:19:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:19:05' and `end` < '2025-03-28 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-28 19:19:18] Production.INFO: count ==3590 [2025-03-28 19:19:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:19:05 - End Time 2025-03-28 19:19:05 [2025-03-28 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783593', 'tblTempUsageDetail_20' ) start [2025-03-28 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783593', 'tblTempUsageDetail_20' ) end [2025-03-28 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783593', 'tblTempVendorCDR_20' ) start [2025-03-28 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783593', 'tblTempVendorCDR_20' ) end [2025-03-28 19:19:20] Production.INFO: ProcessCDR(1,14783593,1,1,2) [2025-03-28 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783593', 'tblTempUsageDetail_20' ) start [2025-03-28 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783593', 'tblTempUsageDetail_20' ) end [2025-03-28 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:19:23] Production.INFO: ==4244== Releasing lock... [2025-03-28 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:19:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-28 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:20:05 [end_date_ymd] => 2025-03-28 19:20:05 [RateCDR] => 1 ) [2025-03-28 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:20:05' and `end` < '2025-03-28 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:20:18] Production.INFO: count ==3604 [2025-03-28 19:20:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:20:05 - End Time 2025-03-28 19:20:05 [2025-03-28 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783599', 'tblTempUsageDetail_20' ) start [2025-03-28 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783599', 'tblTempUsageDetail_20' ) end [2025-03-28 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783599', 'tblTempVendorCDR_20' ) start [2025-03-28 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783599', 'tblTempVendorCDR_20' ) end [2025-03-28 19:20:20] Production.INFO: ProcessCDR(1,14783599,1,1,2) [2025-03-28 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783599', 'tblTempUsageDetail_20' ) start [2025-03-28 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783599', 'tblTempUsageDetail_20' ) end [2025-03-28 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:20:23] Production.INFO: ==4343== Releasing lock... [2025-03-28 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:20:23] Production.INFO: 55 MB #Memory Used# [2025-03-28 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:21:05 [end_date_ymd] => 2025-03-28 19:21:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:21:05' and `end` < '2025-03-28 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-28 19:21:19] Production.INFO: count ==3581 [2025-03-28 19:21:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:21:05 - End Time 2025-03-28 19:21:05 [2025-03-28 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783604', 'tblTempUsageDetail_20' ) start [2025-03-28 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783604', 'tblTempUsageDetail_20' ) end [2025-03-28 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783604', 'tblTempVendorCDR_20' ) start [2025-03-28 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783604', 'tblTempVendorCDR_20' ) end [2025-03-28 19:21:20] Production.INFO: ProcessCDR(1,14783604,1,1,2) [2025-03-28 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783604', 'tblTempUsageDetail_20' ) start [2025-03-28 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783604', 'tblTempUsageDetail_20' ) end [2025-03-28 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:21:23] Production.INFO: ==4444== Releasing lock... [2025-03-28 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:21:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-28 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:22:05 [end_date_ymd] => 2025-03-28 19:22:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:22:05' and `end` < '2025-03-28 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-28 19:22:18] Production.INFO: count ==3583 [2025-03-28 19:22:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:22:05 - End Time 2025-03-28 19:22:05 [2025-03-28 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783609', 'tblTempUsageDetail_20' ) start [2025-03-28 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783609', 'tblTempUsageDetail_20' ) end [2025-03-28 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783609', 'tblTempVendorCDR_20' ) start [2025-03-28 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783609', 'tblTempVendorCDR_20' ) end [2025-03-28 19:22:20] Production.INFO: ProcessCDR(1,14783609,1,1,2) [2025-03-28 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783609', 'tblTempUsageDetail_20' ) start [2025-03-28 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783609', 'tblTempUsageDetail_20' ) end [2025-03-28 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:22:23] Production.INFO: ==4541== Releasing lock... [2025-03-28 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:22:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-28 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:23:05 [end_date_ymd] => 2025-03-28 19:23:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:23:05' and `end` < '2025-03-28 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-28 19:23:19] Production.INFO: count ==3581 [2025-03-28 19:23:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:23:05 - End Time 2025-03-28 19:23:05 [2025-03-28 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783614', 'tblTempUsageDetail_20' ) start [2025-03-28 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783614', 'tblTempUsageDetail_20' ) end [2025-03-28 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783614', 'tblTempVendorCDR_20' ) start [2025-03-28 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783614', 'tblTempVendorCDR_20' ) end [2025-03-28 19:23:20] Production.INFO: ProcessCDR(1,14783614,1,1,2) [2025-03-28 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783614', 'tblTempUsageDetail_20' ) start [2025-03-28 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783614', 'tblTempUsageDetail_20' ) end [2025-03-28 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:23:24] Production.INFO: ==4648== Releasing lock... [2025-03-28 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:23:24] Production.INFO: 55 MB #Memory Used# [2025-03-28 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:24:05 [end_date_ymd] => 2025-03-28 19:24:05 [RateCDR] => 1 ) [2025-03-28 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:24:05' and `end` < '2025-03-28 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:24:19] Production.INFO: count ==3574 [2025-03-28 19:24:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:24:05 - End Time 2025-03-28 19:24:05 [2025-03-28 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783619', 'tblTempUsageDetail_20' ) start [2025-03-28 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783619', 'tblTempUsageDetail_20' ) end [2025-03-28 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783619', 'tblTempVendorCDR_20' ) start [2025-03-28 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783619', 'tblTempVendorCDR_20' ) end [2025-03-28 19:24:20] Production.INFO: ProcessCDR(1,14783619,1,1,2) [2025-03-28 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783619', 'tblTempUsageDetail_20' ) start [2025-03-28 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783619', 'tblTempUsageDetail_20' ) end [2025-03-28 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:24:25] Production.INFO: ==4744== Releasing lock... [2025-03-28 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:24:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-28 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:25:06 [end_date_ymd] => 2025-03-28 19:25:06 [RateCDR] => 1 ) [2025-03-28 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:25:06' and `end` < '2025-03-28 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:25:19] Production.INFO: count ==3570 [2025-03-28 19:25:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:25:06 - End Time 2025-03-28 19:25:06 [2025-03-28 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783624', 'tblTempUsageDetail_20' ) start [2025-03-28 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783624', 'tblTempUsageDetail_20' ) end [2025-03-28 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783624', 'tblTempVendorCDR_20' ) start [2025-03-28 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783624', 'tblTempVendorCDR_20' ) end [2025-03-28 19:25:20] Production.INFO: ProcessCDR(1,14783624,1,1,2) [2025-03-28 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783624', 'tblTempUsageDetail_20' ) start [2025-03-28 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783624', 'tblTempUsageDetail_20' ) end [2025-03-28 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:25:24] Production.INFO: ==4843== Releasing lock... [2025-03-28 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:25:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-28 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:26:05 [end_date_ymd] => 2025-03-28 19:26:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:26:05' and `end` < '2025-03-28 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-28 19:26:18] Production.INFO: count ==3562 [2025-03-28 19:26:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:26:05 - End Time 2025-03-28 19:26:05 [2025-03-28 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783629', 'tblTempUsageDetail_20' ) start [2025-03-28 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783629', 'tblTempUsageDetail_20' ) end [2025-03-28 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783629', 'tblTempVendorCDR_20' ) start [2025-03-28 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783629', 'tblTempVendorCDR_20' ) end [2025-03-28 19:26:19] Production.INFO: ProcessCDR(1,14783629,1,1,2) [2025-03-28 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783629', 'tblTempUsageDetail_20' ) start [2025-03-28 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783629', 'tblTempUsageDetail_20' ) end [2025-03-28 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:26:23] Production.INFO: ==4952== Releasing lock... [2025-03-28 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:26:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-28 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:27:06 [end_date_ymd] => 2025-03-28 19:27:06 [RateCDR] => 1 ) [2025-03-28 19: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-28 16:27:06' and `end` < '2025-03-28 19: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-28 19:27:19] Production.INFO: count ==3562 [2025-03-28 19:27:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:27:06 - End Time 2025-03-28 19:27:06 [2025-03-28 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783634', 'tblTempUsageDetail_20' ) start [2025-03-28 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783634', 'tblTempUsageDetail_20' ) end [2025-03-28 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783634', 'tblTempVendorCDR_20' ) start [2025-03-28 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783634', 'tblTempVendorCDR_20' ) end [2025-03-28 19:27:20] Production.INFO: ProcessCDR(1,14783634,1,1,2) [2025-03-28 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783634', 'tblTempUsageDetail_20' ) start [2025-03-28 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783634', 'tblTempUsageDetail_20' ) end [2025-03-28 19:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:27:25] Production.INFO: ==5057== Releasing lock... [2025-03-28 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:27:25] Production.INFO: 55 MB #Memory Used# [2025-03-28 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:28:05 [end_date_ymd] => 2025-03-28 19:28:05 [RateCDR] => 1 ) [2025-03-28 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:28:05' and `end` < '2025-03-28 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:28:18] Production.INFO: count ==3550 [2025-03-28 19:28:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:28:05 - End Time 2025-03-28 19:28:05 [2025-03-28 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783639', 'tblTempUsageDetail_20' ) start [2025-03-28 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783639', 'tblTempUsageDetail_20' ) end [2025-03-28 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783639', 'tblTempVendorCDR_20' ) start [2025-03-28 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783639', 'tblTempVendorCDR_20' ) end [2025-03-28 19:28:20] Production.INFO: ProcessCDR(1,14783639,1,1,2) [2025-03-28 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783639', 'tblTempUsageDetail_20' ) start [2025-03-28 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783639', 'tblTempUsageDetail_20' ) end [2025-03-28 19:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:28:25] Production.INFO: ==5157== Releasing lock... [2025-03-28 19:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:28:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-28 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:29:05 [end_date_ymd] => 2025-03-28 19:29:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:29:05' and `end` < '2025-03-28 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-28 19:29:19] Production.INFO: count ==3545 [2025-03-28 19:29:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:29:05 - End Time 2025-03-28 19:29:05 [2025-03-28 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783644', 'tblTempUsageDetail_20' ) start [2025-03-28 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783644', 'tblTempUsageDetail_20' ) end [2025-03-28 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783644', 'tblTempVendorCDR_20' ) start [2025-03-28 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783644', 'tblTempVendorCDR_20' ) end [2025-03-28 19:29:20] Production.INFO: ProcessCDR(1,14783644,1,1,2) [2025-03-28 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783644', 'tblTempUsageDetail_20' ) start [2025-03-28 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783644', 'tblTempUsageDetail_20' ) end [2025-03-28 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:29:23] Production.INFO: ==5272== Releasing lock... [2025-03-28 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:29:23] Production.INFO: 54.5 MB #Memory Used# [2025-03-28 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:30:06 [end_date_ymd] => 2025-03-28 19:30:06 [RateCDR] => 1 ) [2025-03-28 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-28 16:30:06' and `end` < '2025-03-28 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-28 19:30:19] Production.INFO: count ==3533 [2025-03-28 19:30:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:30:06 - End Time 2025-03-28 19:30:06 [2025-03-28 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783650', 'tblTempUsageDetail_20' ) start [2025-03-28 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783650', 'tblTempUsageDetail_20' ) end [2025-03-28 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783650', 'tblTempVendorCDR_20' ) start [2025-03-28 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783650', 'tblTempVendorCDR_20' ) end [2025-03-28 19:30:20] Production.INFO: ProcessCDR(1,14783650,1,1,2) [2025-03-28 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783650', 'tblTempUsageDetail_20' ) start [2025-03-28 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783650', 'tblTempUsageDetail_20' ) end [2025-03-28 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:30:24] Production.INFO: ==5383== Releasing lock... [2025-03-28 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:30:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-28 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:31:05 [end_date_ymd] => 2025-03-28 19:31:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:31:05' and `end` < '2025-03-28 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-28 19:31:18] Production.INFO: count ==3475 [2025-03-28 19:31:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:31:05 - End Time 2025-03-28 19:31:05 [2025-03-28 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783655', 'tblTempUsageDetail_20' ) start [2025-03-28 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783655', 'tblTempUsageDetail_20' ) end [2025-03-28 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783655', 'tblTempVendorCDR_20' ) start [2025-03-28 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783655', 'tblTempVendorCDR_20' ) end [2025-03-28 19:31:19] Production.INFO: ProcessCDR(1,14783655,1,1,2) [2025-03-28 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783655', 'tblTempUsageDetail_20' ) start [2025-03-28 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783655', 'tblTempUsageDetail_20' ) end [2025-03-28 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:31:24] Production.INFO: ==5531== Releasing lock... [2025-03-28 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:31:24] Production.INFO: 54.75 MB #Memory Used# [2025-03-28 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:32:05 [end_date_ymd] => 2025-03-28 19:32:05 [RateCDR] => 1 ) [2025-03-28 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:32:05' and `end` < '2025-03-28 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:32:19] Production.INFO: count ==3468 [2025-03-28 19:32:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:32:05 - End Time 2025-03-28 19:32:05 [2025-03-28 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783660', 'tblTempUsageDetail_20' ) start [2025-03-28 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783660', 'tblTempUsageDetail_20' ) end [2025-03-28 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783660', 'tblTempVendorCDR_20' ) start [2025-03-28 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783660', 'tblTempVendorCDR_20' ) end [2025-03-28 19:32:20] Production.INFO: ProcessCDR(1,14783660,1,1,2) [2025-03-28 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783660', 'tblTempUsageDetail_20' ) start [2025-03-28 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783660', 'tblTempUsageDetail_20' ) end [2025-03-28 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:32:23] Production.INFO: ==5632== Releasing lock... [2025-03-28 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:32:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-28 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:33:05 [end_date_ymd] => 2025-03-28 19:33:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:33:05' and `end` < '2025-03-28 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-28 19:33:19] Production.INFO: count ==3454 [2025-03-28 19:33:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:33:05 - End Time 2025-03-28 19:33:05 [2025-03-28 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783665', 'tblTempUsageDetail_20' ) start [2025-03-28 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783665', 'tblTempUsageDetail_20' ) end [2025-03-28 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783665', 'tblTempVendorCDR_20' ) start [2025-03-28 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783665', 'tblTempVendorCDR_20' ) end [2025-03-28 19:33:20] Production.INFO: ProcessCDR(1,14783665,1,1,2) [2025-03-28 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783665', 'tblTempUsageDetail_20' ) start [2025-03-28 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783665', 'tblTempUsageDetail_20' ) end [2025-03-28 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:33:24] Production.INFO: ==5741== Releasing lock... [2025-03-28 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:33:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-28 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:34:06 [end_date_ymd] => 2025-03-28 19:34:06 [RateCDR] => 1 ) [2025-03-28 19:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:34:06' and `end` < '2025-03-28 19:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:34:19] Production.INFO: count ==3447 [2025-03-28 19:34:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:34:06 - End Time 2025-03-28 19:34:06 [2025-03-28 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783670', 'tblTempUsageDetail_20' ) start [2025-03-28 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783670', 'tblTempUsageDetail_20' ) end [2025-03-28 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783670', 'tblTempVendorCDR_20' ) start [2025-03-28 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783670', 'tblTempVendorCDR_20' ) end [2025-03-28 19:34:20] Production.INFO: ProcessCDR(1,14783670,1,1,2) [2025-03-28 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783670', 'tblTempUsageDetail_20' ) start [2025-03-28 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783670', 'tblTempUsageDetail_20' ) end [2025-03-28 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:34:23] Production.INFO: ==5857== Releasing lock... [2025-03-28 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:34:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-28 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:35:05 [end_date_ymd] => 2025-03-28 19:35:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:35:05' and `end` < '2025-03-28 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-28 19:35:18] Production.INFO: count ==3444 [2025-03-28 19:35:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:35:05 - End Time 2025-03-28 19:35:05 [2025-03-28 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783675', 'tblTempUsageDetail_20' ) start [2025-03-28 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783675', 'tblTempUsageDetail_20' ) end [2025-03-28 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783675', 'tblTempVendorCDR_20' ) start [2025-03-28 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783675', 'tblTempVendorCDR_20' ) end [2025-03-28 19:35:19] Production.INFO: ProcessCDR(1,14783675,1,1,2) [2025-03-28 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783675', 'tblTempUsageDetail_20' ) start [2025-03-28 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783675', 'tblTempUsageDetail_20' ) end [2025-03-28 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:35:22] Production.INFO: ==5972== Releasing lock... [2025-03-28 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:35:22] Production.INFO: 54.5 MB #Memory Used# [2025-03-28 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:36:06 [end_date_ymd] => 2025-03-28 19:36:06 [RateCDR] => 1 ) [2025-03-28 19:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:36:06' and `end` < '2025-03-28 19:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:36:19] Production.INFO: count ==3428 [2025-03-28 19:36:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:36:06 - End Time 2025-03-28 19:36:06 [2025-03-28 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783680', 'tblTempUsageDetail_20' ) start [2025-03-28 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783680', 'tblTempUsageDetail_20' ) end [2025-03-28 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783680', 'tblTempVendorCDR_20' ) start [2025-03-28 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783680', 'tblTempVendorCDR_20' ) end [2025-03-28 19:36:20] Production.INFO: ProcessCDR(1,14783680,1,1,2) [2025-03-28 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783680', 'tblTempUsageDetail_20' ) start [2025-03-28 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783680', 'tblTempUsageDetail_20' ) end [2025-03-28 19:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:36:25] Production.INFO: ==6084== Releasing lock... [2025-03-28 19:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:36:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-28 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:37:05 [end_date_ymd] => 2025-03-28 19:37:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:37:05' and `end` < '2025-03-28 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-28 19:37:18] Production.INFO: count ==3436 [2025-03-28 19:37:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:37:05 - End Time 2025-03-28 19:37:05 [2025-03-28 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783685', 'tblTempUsageDetail_20' ) start [2025-03-28 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783685', 'tblTempUsageDetail_20' ) end [2025-03-28 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783685', 'tblTempVendorCDR_20' ) start [2025-03-28 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783685', 'tblTempVendorCDR_20' ) end [2025-03-28 19:37:19] Production.INFO: ProcessCDR(1,14783685,1,1,2) [2025-03-28 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783685', 'tblTempUsageDetail_20' ) start [2025-03-28 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783685', 'tblTempUsageDetail_20' ) end [2025-03-28 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:37:23] Production.INFO: ==6191== Releasing lock... [2025-03-28 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:37:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-28 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:38:06 [end_date_ymd] => 2025-03-28 19:38:06 [RateCDR] => 1 ) [2025-03-28 19:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:38:06' and `end` < '2025-03-28 19:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:38:19] Production.INFO: count ==3428 [2025-03-28 19:38:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:38:06 - End Time 2025-03-28 19:38:06 [2025-03-28 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783690', 'tblTempUsageDetail_20' ) start [2025-03-28 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783690', 'tblTempUsageDetail_20' ) end [2025-03-28 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783690', 'tblTempVendorCDR_20' ) start [2025-03-28 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783690', 'tblTempVendorCDR_20' ) end [2025-03-28 19:38:20] Production.INFO: ProcessCDR(1,14783690,1,1,2) [2025-03-28 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783690', 'tblTempUsageDetail_20' ) start [2025-03-28 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783690', 'tblTempUsageDetail_20' ) end [2025-03-28 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:38:23] Production.INFO: ==6307== Releasing lock... [2025-03-28 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:38:23] Production.INFO: 53.5 MB #Memory Used# [2025-03-28 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:39:05 [end_date_ymd] => 2025-03-28 19:39:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:39:05' and `end` < '2025-03-28 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-28 19:39:18] Production.INFO: count ==3424 [2025-03-28 19:39:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:39:05 - End Time 2025-03-28 19:39:05 [2025-03-28 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783695', 'tblTempUsageDetail_20' ) start [2025-03-28 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783695', 'tblTempUsageDetail_20' ) end [2025-03-28 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783695', 'tblTempVendorCDR_20' ) start [2025-03-28 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783695', 'tblTempVendorCDR_20' ) end [2025-03-28 19:39:20] Production.INFO: ProcessCDR(1,14783695,1,1,2) [2025-03-28 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783695', 'tblTempUsageDetail_20' ) start [2025-03-28 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783695', 'tblTempUsageDetail_20' ) end [2025-03-28 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:39:23] Production.INFO: ==6421== Releasing lock... [2025-03-28 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:39:23] Production.INFO: 53.5 MB #Memory Used# [2025-03-28 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:40:06 [end_date_ymd] => 2025-03-28 19:40:06 [RateCDR] => 1 ) [2025-03-28 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-28 16:40:06' and `end` < '2025-03-28 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-28 19:40:20] Production.INFO: count ==3400 [2025-03-28 19:40:21] Production.ERROR: pbx CDR StartTime 2025-03-28 16:40:06 - End Time 2025-03-28 19:40:06 [2025-03-28 19:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783701', 'tblTempUsageDetail_20' ) start [2025-03-28 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783701', 'tblTempUsageDetail_20' ) end [2025-03-28 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783701', 'tblTempVendorCDR_20' ) start [2025-03-28 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783701', 'tblTempVendorCDR_20' ) end [2025-03-28 19:40:21] Production.INFO: ProcessCDR(1,14783701,1,1,2) [2025-03-28 19:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783701', 'tblTempUsageDetail_20' ) start [2025-03-28 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783701', 'tblTempUsageDetail_20' ) end [2025-03-28 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:40:24] Production.INFO: ==6546== Releasing lock... [2025-03-28 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:40:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-28 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:41:05 [end_date_ymd] => 2025-03-28 19:41:05 [RateCDR] => 1 ) [2025-03-28 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:41:05' and `end` < '2025-03-28 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:41:18] Production.INFO: count ==3372 [2025-03-28 19:41:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:41:05 - End Time 2025-03-28 19:41:05 [2025-03-28 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783706', 'tblTempUsageDetail_20' ) start [2025-03-28 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783706', 'tblTempUsageDetail_20' ) end [2025-03-28 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783706', 'tblTempVendorCDR_20' ) start [2025-03-28 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783706', 'tblTempVendorCDR_20' ) end [2025-03-28 19:41:20] Production.INFO: ProcessCDR(1,14783706,1,1,2) [2025-03-28 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783706', 'tblTempUsageDetail_20' ) start [2025-03-28 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783706', 'tblTempUsageDetail_20' ) end [2025-03-28 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:41:23] Production.INFO: ==6667== Releasing lock... [2025-03-28 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:41:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-28 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:42:05 [end_date_ymd] => 2025-03-28 19:42:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:42:05' and `end` < '2025-03-28 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-28 19:42:19] Production.INFO: count ==3364 [2025-03-28 19:42:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:42:05 - End Time 2025-03-28 19:42:05 [2025-03-28 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783711', 'tblTempUsageDetail_20' ) start [2025-03-28 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783711', 'tblTempUsageDetail_20' ) end [2025-03-28 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783711', 'tblTempVendorCDR_20' ) start [2025-03-28 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783711', 'tblTempVendorCDR_20' ) end [2025-03-28 19:42:20] Production.INFO: ProcessCDR(1,14783711,1,1,2) [2025-03-28 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783711', 'tblTempUsageDetail_20' ) start [2025-03-28 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783711', 'tblTempUsageDetail_20' ) end [2025-03-28 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:42:23] Production.INFO: ==6784== Releasing lock... [2025-03-28 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:42:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-28 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:43:05 [end_date_ymd] => 2025-03-28 19:43:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:43:05' and `end` < '2025-03-28 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-28 19:43:18] Production.INFO: count ==3359 [2025-03-28 19:43:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:43:05 - End Time 2025-03-28 19:43:05 [2025-03-28 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783716', 'tblTempUsageDetail_20' ) start [2025-03-28 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783716', 'tblTempUsageDetail_20' ) end [2025-03-28 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783716', 'tblTempVendorCDR_20' ) start [2025-03-28 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783716', 'tblTempVendorCDR_20' ) end [2025-03-28 19:43:20] Production.INFO: ProcessCDR(1,14783716,1,1,2) [2025-03-28 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783716', 'tblTempUsageDetail_20' ) start [2025-03-28 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783716', 'tblTempUsageDetail_20' ) end [2025-03-28 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:43:23] Production.INFO: ==6899== Releasing lock... [2025-03-28 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:43:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-28 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:44:05 [end_date_ymd] => 2025-03-28 19:44:05 [RateCDR] => 1 ) [2025-03-28 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:44:05' and `end` < '2025-03-28 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-28 19:44:18] Production.INFO: count ==3354 [2025-03-28 19:44:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:44:05 - End Time 2025-03-28 19:44:05 [2025-03-28 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783721', 'tblTempUsageDetail_20' ) start [2025-03-28 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783721', 'tblTempUsageDetail_20' ) end [2025-03-28 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783721', 'tblTempVendorCDR_20' ) start [2025-03-28 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783721', 'tblTempVendorCDR_20' ) end [2025-03-28 19:44:19] Production.INFO: ProcessCDR(1,14783721,1,1,2) [2025-03-28 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783721', 'tblTempUsageDetail_20' ) start [2025-03-28 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783721', 'tblTempUsageDetail_20' ) end [2025-03-28 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:44:23] Production.INFO: ==7001== Releasing lock... [2025-03-28 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:44:23] Production.INFO: 53 MB #Memory Used# [2025-03-28 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:45:05 [end_date_ymd] => 2025-03-28 19:45:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:45:05' and `end` < '2025-03-28 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-28 19:45:18] Production.INFO: count ==3346 [2025-03-28 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:45:05 - End Time 2025-03-28 19:45:05 [2025-03-28 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783726', 'tblTempUsageDetail_20' ) start [2025-03-28 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783726', 'tblTempUsageDetail_20' ) end [2025-03-28 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783726', 'tblTempVendorCDR_20' ) start [2025-03-28 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783726', 'tblTempVendorCDR_20' ) end [2025-03-28 19:45:19] Production.INFO: ProcessCDR(1,14783726,1,1,2) [2025-03-28 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783726', 'tblTempUsageDetail_20' ) start [2025-03-28 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783726', 'tblTempUsageDetail_20' ) end [2025-03-28 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:45:23] Production.INFO: ==7117== Releasing lock... [2025-03-28 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:45:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-28 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:46:06 [end_date_ymd] => 2025-03-28 19:46:06 [RateCDR] => 1 ) [2025-03-28 19:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:46:06' and `end` < '2025-03-28 19:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:46:19] Production.INFO: count ==3347 [2025-03-28 19:46:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:46:06 - End Time 2025-03-28 19:46:06 [2025-03-28 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783731', 'tblTempUsageDetail_20' ) start [2025-03-28 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783731', 'tblTempUsageDetail_20' ) end [2025-03-28 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783731', 'tblTempVendorCDR_20' ) start [2025-03-28 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783731', 'tblTempVendorCDR_20' ) end [2025-03-28 19:46:20] Production.INFO: ProcessCDR(1,14783731,1,1,2) [2025-03-28 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783731', 'tblTempUsageDetail_20' ) start [2025-03-28 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783731', 'tblTempUsageDetail_20' ) end [2025-03-28 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:46:24] Production.INFO: ==7271== Releasing lock... [2025-03-28 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:46:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-28 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:47:05 [end_date_ymd] => 2025-03-28 19:47:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:47:05' and `end` < '2025-03-28 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-28 19:47:18] Production.INFO: count ==3329 [2025-03-28 19:47:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:47:05 - End Time 2025-03-28 19:47:05 [2025-03-28 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783736', 'tblTempUsageDetail_20' ) start [2025-03-28 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783736', 'tblTempUsageDetail_20' ) end [2025-03-28 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783736', 'tblTempVendorCDR_20' ) start [2025-03-28 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783736', 'tblTempVendorCDR_20' ) end [2025-03-28 19:47:19] Production.INFO: ProcessCDR(1,14783736,1,1,2) [2025-03-28 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783736', 'tblTempUsageDetail_20' ) start [2025-03-28 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783736', 'tblTempUsageDetail_20' ) end [2025-03-28 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:47:23] Production.INFO: ==7381== Releasing lock... [2025-03-28 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:47:23] Production.INFO: 53 MB #Memory Used# [2025-03-28 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:48:05 [end_date_ymd] => 2025-03-28 19:48:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:48:05' and `end` < '2025-03-28 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-28 19:48:18] Production.INFO: count ==3325 [2025-03-28 19:48:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:48:05 - End Time 2025-03-28 19:48:05 [2025-03-28 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783741', 'tblTempUsageDetail_20' ) start [2025-03-28 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783741', 'tblTempUsageDetail_20' ) end [2025-03-28 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783741', 'tblTempVendorCDR_20' ) start [2025-03-28 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783741', 'tblTempVendorCDR_20' ) end [2025-03-28 19:48:19] Production.INFO: ProcessCDR(1,14783741,1,1,2) [2025-03-28 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783741', 'tblTempUsageDetail_20' ) start [2025-03-28 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783741', 'tblTempUsageDetail_20' ) end [2025-03-28 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:48:23] Production.INFO: ==7495== Releasing lock... [2025-03-28 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:48:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-28 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:49:06 [end_date_ymd] => 2025-03-28 19:49:06 [RateCDR] => 1 ) [2025-03-28 19:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:49:06' and `end` < '2025-03-28 19:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:49:19] Production.INFO: count ==3289 [2025-03-28 19:49:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:49:06 - End Time 2025-03-28 19:49:06 [2025-03-28 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783746', 'tblTempUsageDetail_20' ) start [2025-03-28 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783746', 'tblTempUsageDetail_20' ) end [2025-03-28 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783746', 'tblTempVendorCDR_20' ) start [2025-03-28 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783746', 'tblTempVendorCDR_20' ) end [2025-03-28 19:49:20] Production.INFO: ProcessCDR(1,14783746,1,1,2) [2025-03-28 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783746', 'tblTempUsageDetail_20' ) start [2025-03-28 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783746', 'tblTempUsageDetail_20' ) end [2025-03-28 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:49:23] Production.INFO: ==7613== Releasing lock... [2025-03-28 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:49:23] Production.INFO: 53.5 MB #Memory Used# [2025-03-28 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:50:06 [end_date_ymd] => 2025-03-28 19:50:06 [RateCDR] => 1 ) [2025-03-28 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-28 16:50:06' and `end` < '2025-03-28 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-28 19:50:19] Production.INFO: count ==3270 [2025-03-28 19:50:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:50:06 - End Time 2025-03-28 19:50:06 [2025-03-28 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783751', 'tblTempUsageDetail_20' ) start [2025-03-28 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783751', 'tblTempUsageDetail_20' ) end [2025-03-28 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783751', 'tblTempVendorCDR_20' ) start [2025-03-28 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783751', 'tblTempVendorCDR_20' ) end [2025-03-28 19:50:20] Production.INFO: ProcessCDR(1,14783751,1,1,2) [2025-03-28 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783751', 'tblTempUsageDetail_20' ) start [2025-03-28 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783751', 'tblTempUsageDetail_20' ) end [2025-03-28 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:50:24] Production.INFO: ==7715== Releasing lock... [2025-03-28 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:50:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-28 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:51:06 [end_date_ymd] => 2025-03-28 19:51:06 [RateCDR] => 1 ) [2025-03-28 19: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-28 16:51:06' and `end` < '2025-03-28 19: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-28 19:51:19] Production.INFO: count ==3190 [2025-03-28 19:51:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:51:06 - End Time 2025-03-28 19:51:06 [2025-03-28 19:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783757', 'tblTempUsageDetail_20' ) start [2025-03-28 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783757', 'tblTempUsageDetail_20' ) end [2025-03-28 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783757', 'tblTempVendorCDR_20' ) start [2025-03-28 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783757', 'tblTempVendorCDR_20' ) end [2025-03-28 19:51:20] Production.INFO: ProcessCDR(1,14783757,1,1,2) [2025-03-28 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783757', 'tblTempUsageDetail_20' ) start [2025-03-28 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783757', 'tblTempUsageDetail_20' ) end [2025-03-28 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:51:23] Production.INFO: ==7817== Releasing lock... [2025-03-28 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:51:23] Production.INFO: 52 MB #Memory Used# [2025-03-28 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:52:05 [end_date_ymd] => 2025-03-28 19:52:05 [RateCDR] => 1 ) [2025-03-28 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:52:05' and `end` < '2025-03-28 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:52:18] Production.INFO: count ==3185 [2025-03-28 19:52:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:52:05 - End Time 2025-03-28 19:52:05 [2025-03-28 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783762', 'tblTempUsageDetail_20' ) start [2025-03-28 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783762', 'tblTempUsageDetail_20' ) end [2025-03-28 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783762', 'tblTempVendorCDR_20' ) start [2025-03-28 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783762', 'tblTempVendorCDR_20' ) end [2025-03-28 19:52:20] Production.INFO: ProcessCDR(1,14783762,1,1,2) [2025-03-28 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783762', 'tblTempUsageDetail_20' ) start [2025-03-28 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783762', 'tblTempUsageDetail_20' ) end [2025-03-28 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:52:23] Production.INFO: ==7921== Releasing lock... [2025-03-28 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:52:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-28 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:53:05 [end_date_ymd] => 2025-03-28 19:53:05 [RateCDR] => 1 ) [2025-03-28 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:53:05' and `end` < '2025-03-28 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:53:18] Production.INFO: count ==3182 [2025-03-28 19:53:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:53:05 - End Time 2025-03-28 19:53:05 [2025-03-28 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783767', 'tblTempUsageDetail_20' ) start [2025-03-28 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783767', 'tblTempUsageDetail_20' ) end [2025-03-28 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783767', 'tblTempVendorCDR_20' ) start [2025-03-28 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783767', 'tblTempVendorCDR_20' ) end [2025-03-28 19:53:20] Production.INFO: ProcessCDR(1,14783767,1,1,2) [2025-03-28 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783767', 'tblTempUsageDetail_20' ) start [2025-03-28 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783767', 'tblTempUsageDetail_20' ) end [2025-03-28 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:53:23] Production.INFO: ==8032== Releasing lock... [2025-03-28 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:53:23] Production.INFO: 51.75 MB #Memory Used# [2025-03-28 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:54:05 [end_date_ymd] => 2025-03-28 19:54:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:54:05' and `end` < '2025-03-28 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-28 19:54:18] Production.INFO: count ==3176 [2025-03-28 19:54:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:54:05 - End Time 2025-03-28 19:54:05 [2025-03-28 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783772', 'tblTempUsageDetail_20' ) start [2025-03-28 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783772', 'tblTempUsageDetail_20' ) end [2025-03-28 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783772', 'tblTempVendorCDR_20' ) start [2025-03-28 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783772', 'tblTempVendorCDR_20' ) end [2025-03-28 19:54:19] Production.INFO: ProcessCDR(1,14783772,1,1,2) [2025-03-28 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783772', 'tblTempUsageDetail_20' ) start [2025-03-28 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783772', 'tblTempUsageDetail_20' ) end [2025-03-28 19:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:54:24] Production.INFO: ==8127== Releasing lock... [2025-03-28 19:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:54:24] Production.INFO: 52 MB #Memory Used# [2025-03-28 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:55:06 [end_date_ymd] => 2025-03-28 19:55:06 [RateCDR] => 1 ) [2025-03-28 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:55:06' and `end` < '2025-03-28 19:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:55:19] Production.INFO: count ==3173 [2025-03-28 19:55:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:55:06 - End Time 2025-03-28 19:55:06 [2025-03-28 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783777', 'tblTempUsageDetail_20' ) start [2025-03-28 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783777', 'tblTempUsageDetail_20' ) end [2025-03-28 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783777', 'tblTempVendorCDR_20' ) start [2025-03-28 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783777', 'tblTempVendorCDR_20' ) end [2025-03-28 19:55:20] Production.INFO: ProcessCDR(1,14783777,1,1,2) [2025-03-28 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783777', 'tblTempUsageDetail_20' ) start [2025-03-28 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783777', 'tblTempUsageDetail_20' ) end [2025-03-28 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:55:24] Production.INFO: ==8235== Releasing lock... [2025-03-28 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:55:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-28 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:56:05 [end_date_ymd] => 2025-03-28 19:56:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:56:05' and `end` < '2025-03-28 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-28 19:56:18] Production.INFO: count ==3177 [2025-03-28 19:56:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:56:05 - End Time 2025-03-28 19:56:05 [2025-03-28 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783782', 'tblTempUsageDetail_20' ) start [2025-03-28 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783782', 'tblTempUsageDetail_20' ) end [2025-03-28 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783782', 'tblTempVendorCDR_20' ) start [2025-03-28 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783782', 'tblTempVendorCDR_20' ) end [2025-03-28 19:56:19] Production.INFO: ProcessCDR(1,14783782,1,1,2) [2025-03-28 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783782', 'tblTempUsageDetail_20' ) start [2025-03-28 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783782', 'tblTempUsageDetail_20' ) end [2025-03-28 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:56:24] Production.INFO: ==8339== Releasing lock... [2025-03-28 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:56:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-28 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:57:05 [end_date_ymd] => 2025-03-28 19:57:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:57:05' and `end` < '2025-03-28 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-28 19:57:18] Production.INFO: count ==3173 [2025-03-28 19:57:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:57:05 - End Time 2025-03-28 19:57:05 [2025-03-28 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783787', 'tblTempUsageDetail_20' ) start [2025-03-28 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783787', 'tblTempUsageDetail_20' ) end [2025-03-28 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783787', 'tblTempVendorCDR_20' ) start [2025-03-28 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783787', 'tblTempVendorCDR_20' ) end [2025-03-28 19:57:19] Production.INFO: ProcessCDR(1,14783787,1,1,2) [2025-03-28 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783787', 'tblTempUsageDetail_20' ) start [2025-03-28 19:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783787', 'tblTempUsageDetail_20' ) end [2025-03-28 19:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:57:25] Production.INFO: ==8443== Releasing lock... [2025-03-28 19:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:57:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-28 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:58:05 [end_date_ymd] => 2025-03-28 19:58:05 [RateCDR] => 1 ) [2025-03-28 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-28 16:58:05' and `end` < '2025-03-28 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-28 19:58:18] Production.INFO: count ==3152 [2025-03-28 19:58:19] Production.ERROR: pbx CDR StartTime 2025-03-28 16:58:05 - End Time 2025-03-28 19:58:05 [2025-03-28 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783792', 'tblTempUsageDetail_20' ) start [2025-03-28 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783792', 'tblTempUsageDetail_20' ) end [2025-03-28 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783792', 'tblTempVendorCDR_20' ) start [2025-03-28 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783792', 'tblTempVendorCDR_20' ) end [2025-03-28 19:58:20] Production.INFO: ProcessCDR(1,14783792,1,1,2) [2025-03-28 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783792', 'tblTempUsageDetail_20' ) start [2025-03-28 19:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783792', 'tblTempUsageDetail_20' ) end [2025-03-28 19:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:58:25] Production.INFO: ==8546== Releasing lock... [2025-03-28 19:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:58:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-28 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 16:59:06 [end_date_ymd] => 2025-03-28 19:59:06 [RateCDR] => 1 ) [2025-03-28 19:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 16:59:06' and `end` < '2025-03-28 19:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 19:59:19] Production.INFO: count ==3169 [2025-03-28 19:59:20] Production.ERROR: pbx CDR StartTime 2025-03-28 16:59:06 - End Time 2025-03-28 19:59:06 [2025-03-28 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783797', 'tblTempUsageDetail_20' ) start [2025-03-28 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783797', 'tblTempUsageDetail_20' ) end [2025-03-28 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783797', 'tblTempVendorCDR_20' ) start [2025-03-28 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783797', 'tblTempVendorCDR_20' ) end [2025-03-28 19:59:20] Production.INFO: ProcessCDR(1,14783797,1,1,2) [2025-03-28 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 19:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783797', 'tblTempUsageDetail_20' ) start [2025-03-28 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783797', 'tblTempUsageDetail_20' ) end [2025-03-28 19:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 19:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 19:59:25] Production.INFO: ==8648== Releasing lock... [2025-03-28 19:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 19:59:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-28 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:00:06 [end_date_ymd] => 2025-03-28 20:00:06 [RateCDR] => 1 ) [2025-03-28 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-28 17:00:06' and `end` < '2025-03-28 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-28 20:00:19] Production.INFO: count ==3177 [2025-03-28 20:00:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:00:06 - End Time 2025-03-28 20:00:06 [2025-03-28 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783803', 'tblTempUsageDetail_20' ) start [2025-03-28 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783803', 'tblTempUsageDetail_20' ) end [2025-03-28 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783803', 'tblTempVendorCDR_20' ) start [2025-03-28 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783803', 'tblTempVendorCDR_20' ) end [2025-03-28 20:00:20] Production.INFO: ProcessCDR(1,14783803,1,1,2) [2025-03-28 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783803', 'tblTempUsageDetail_20' ) start [2025-03-28 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783803', 'tblTempUsageDetail_20' ) end [2025-03-28 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:00:24] Production.INFO: ==8752== Releasing lock... [2025-03-28 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:00:24] Production.INFO: 52 MB #Memory Used# [2025-03-28 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:01:06 [end_date_ymd] => 2025-03-28 20:01:06 [RateCDR] => 1 ) [2025-03-28 20:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:01:06' and `end` < '2025-03-28 20:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:01:19] Production.INFO: count ==3133 [2025-03-28 20:01:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:01:06 - End Time 2025-03-28 20:01:06 [2025-03-28 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783808', 'tblTempUsageDetail_20' ) start [2025-03-28 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783808', 'tblTempUsageDetail_20' ) end [2025-03-28 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783808', 'tblTempVendorCDR_20' ) start [2025-03-28 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783808', 'tblTempVendorCDR_20' ) end [2025-03-28 20:01:20] Production.INFO: ProcessCDR(1,14783808,1,1,2) [2025-03-28 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783808', 'tblTempUsageDetail_20' ) start [2025-03-28 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783808', 'tblTempUsageDetail_20' ) end [2025-03-28 20:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:01:26] Production.INFO: ==8914== Releasing lock... [2025-03-28 20:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:01:26] Production.INFO: 51.25 MB #Memory Used# [2025-03-28 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:02:05 [end_date_ymd] => 2025-03-28 20:02:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:02:05' and `end` < '2025-03-28 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-28 20:02:19] Production.INFO: count ==3143 [2025-03-28 20:02:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:02:05 - End Time 2025-03-28 20:02:05 [2025-03-28 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783813', 'tblTempUsageDetail_20' ) start [2025-03-28 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783813', 'tblTempUsageDetail_20' ) end [2025-03-28 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783813', 'tblTempVendorCDR_20' ) start [2025-03-28 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783813', 'tblTempVendorCDR_20' ) end [2025-03-28 20:02:20] Production.INFO: ProcessCDR(1,14783813,1,1,2) [2025-03-28 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783813', 'tblTempUsageDetail_20' ) start [2025-03-28 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783813', 'tblTempUsageDetail_20' ) end [2025-03-28 20:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:02:25] Production.INFO: ==9057== Releasing lock... [2025-03-28 20:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:02:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-28 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:03:06 [end_date_ymd] => 2025-03-28 20:03:06 [RateCDR] => 1 ) [2025-03-28 20:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:03:06' and `end` < '2025-03-28 20:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:03:19] Production.INFO: count ==3170 [2025-03-28 20:03:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:03:06 - End Time 2025-03-28 20:03:06 [2025-03-28 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783818', 'tblTempUsageDetail_20' ) start [2025-03-28 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783818', 'tblTempUsageDetail_20' ) end [2025-03-28 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783818', 'tblTempVendorCDR_20' ) start [2025-03-28 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783818', 'tblTempVendorCDR_20' ) end [2025-03-28 20:03:20] Production.INFO: ProcessCDR(1,14783818,1,1,2) [2025-03-28 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783818', 'tblTempUsageDetail_20' ) start [2025-03-28 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783818', 'tblTempUsageDetail_20' ) end [2025-03-28 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:03:23] Production.INFO: ==9161== Releasing lock... [2025-03-28 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:03:23] Production.INFO: 51.75 MB #Memory Used# [2025-03-28 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:04:05 [end_date_ymd] => 2025-03-28 20:04:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:04:05' and `end` < '2025-03-28 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-28 20:04:18] Production.INFO: count ==3160 [2025-03-28 20:04:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:04:05 - End Time 2025-03-28 20:04:05 [2025-03-28 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783823', 'tblTempUsageDetail_20' ) start [2025-03-28 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783823', 'tblTempUsageDetail_20' ) end [2025-03-28 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783823', 'tblTempVendorCDR_20' ) start [2025-03-28 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783823', 'tblTempVendorCDR_20' ) end [2025-03-28 20:04:19] Production.INFO: ProcessCDR(1,14783823,1,1,2) [2025-03-28 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783823', 'tblTempUsageDetail_20' ) start [2025-03-28 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783823', 'tblTempUsageDetail_20' ) end [2025-03-28 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:04:22] Production.INFO: ==9266== Releasing lock... [2025-03-28 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:04:22] Production.INFO: 51.5 MB #Memory Used# [2025-03-28 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:05:06 [end_date_ymd] => 2025-03-28 20:05:06 [RateCDR] => 1 ) [2025-03-28 20: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-28 17:05:06' and `end` < '2025-03-28 20: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-28 20:05:19] Production.INFO: count ==3140 [2025-03-28 20:05:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:05:06 - End Time 2025-03-28 20:05:06 [2025-03-28 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783828', 'tblTempUsageDetail_20' ) start [2025-03-28 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783828', 'tblTempUsageDetail_20' ) end [2025-03-28 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783828', 'tblTempVendorCDR_20' ) start [2025-03-28 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783828', 'tblTempVendorCDR_20' ) end [2025-03-28 20:05:20] Production.INFO: ProcessCDR(1,14783828,1,1,2) [2025-03-28 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783828', 'tblTempUsageDetail_20' ) start [2025-03-28 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783828', 'tblTempUsageDetail_20' ) end [2025-03-28 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:05:23] Production.INFO: ==9374== Releasing lock... [2025-03-28 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:05:23] Production.INFO: 52 MB #Memory Used# [2025-03-28 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:06:05 [end_date_ymd] => 2025-03-28 20:06:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:06:05' and `end` < '2025-03-28 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-28 20:06:18] Production.INFO: count ==3135 [2025-03-28 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:06:05 - End Time 2025-03-28 20:06:05 [2025-03-28 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783833', 'tblTempUsageDetail_20' ) start [2025-03-28 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783833', 'tblTempUsageDetail_20' ) end [2025-03-28 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783833', 'tblTempVendorCDR_20' ) start [2025-03-28 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783833', 'tblTempVendorCDR_20' ) end [2025-03-28 20:06:19] Production.INFO: ProcessCDR(1,14783833,1,1,2) [2025-03-28 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783833', 'tblTempUsageDetail_20' ) start [2025-03-28 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783833', 'tblTempUsageDetail_20' ) end [2025-03-28 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:06:22] Production.INFO: ==9477== Releasing lock... [2025-03-28 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:06:22] Production.INFO: 51.25 MB #Memory Used# [2025-03-28 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:07:05 [end_date_ymd] => 2025-03-28 20:07:05 [RateCDR] => 1 ) [2025-03-28 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:07:05' and `end` < '2025-03-28 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:07:18] Production.INFO: count ==3140 [2025-03-28 20:07:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:07:05 - End Time 2025-03-28 20:07:05 [2025-03-28 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783838', 'tblTempUsageDetail_20' ) start [2025-03-28 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783838', 'tblTempUsageDetail_20' ) end [2025-03-28 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783838', 'tblTempVendorCDR_20' ) start [2025-03-28 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783838', 'tblTempVendorCDR_20' ) end [2025-03-28 20:07:19] Production.INFO: ProcessCDR(1,14783838,1,1,2) [2025-03-28 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783838', 'tblTempUsageDetail_20' ) start [2025-03-28 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783838', 'tblTempUsageDetail_20' ) end [2025-03-28 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:07:23] Production.INFO: ==9583== Releasing lock... [2025-03-28 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:07:23] Production.INFO: 51.5 MB #Memory Used# [2025-03-28 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:08:05 [end_date_ymd] => 2025-03-28 20:08:05 [RateCDR] => 1 ) [2025-03-28 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:08:05' and `end` < '2025-03-28 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:08:18] Production.INFO: count ==3143 [2025-03-28 20:08:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:08:05 - End Time 2025-03-28 20:08:05 [2025-03-28 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783843', 'tblTempUsageDetail_20' ) start [2025-03-28 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783843', 'tblTempUsageDetail_20' ) end [2025-03-28 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783843', 'tblTempVendorCDR_20' ) start [2025-03-28 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783843', 'tblTempVendorCDR_20' ) end [2025-03-28 20:08:19] Production.INFO: ProcessCDR(1,14783843,1,1,2) [2025-03-28 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783843', 'tblTempUsageDetail_20' ) start [2025-03-28 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783843', 'tblTempUsageDetail_20' ) end [2025-03-28 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:08:22] Production.INFO: ==9687== Releasing lock... [2025-03-28 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:08:22] Production.INFO: 51.5 MB #Memory Used# [2025-03-28 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:09:05 [end_date_ymd] => 2025-03-28 20:09:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:09:05' and `end` < '2025-03-28 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-28 20:09:18] Production.INFO: count ==3117 [2025-03-28 20:09:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:09:05 - End Time 2025-03-28 20:09:05 [2025-03-28 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783848', 'tblTempUsageDetail_20' ) start [2025-03-28 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783848', 'tblTempUsageDetail_20' ) end [2025-03-28 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783848', 'tblTempVendorCDR_20' ) start [2025-03-28 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783848', 'tblTempVendorCDR_20' ) end [2025-03-28 20:09:19] Production.INFO: ProcessCDR(1,14783848,1,1,2) [2025-03-28 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783848', 'tblTempUsageDetail_20' ) start [2025-03-28 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783848', 'tblTempUsageDetail_20' ) end [2025-03-28 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:09:23] Production.INFO: ==9791== Releasing lock... [2025-03-28 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:09:23] Production.INFO: 51.5 MB #Memory Used# [2025-03-28 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:10:06 [end_date_ymd] => 2025-03-28 20:10:06 [RateCDR] => 1 ) [2025-03-28 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:10:06' and `end` < '2025-03-28 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:10:19] Production.INFO: count ==3117 [2025-03-28 20:10:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:10:06 - End Time 2025-03-28 20:10:06 [2025-03-28 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783854', 'tblTempUsageDetail_20' ) start [2025-03-28 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783854', 'tblTempUsageDetail_20' ) end [2025-03-28 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783854', 'tblTempVendorCDR_20' ) start [2025-03-28 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783854', 'tblTempVendorCDR_20' ) end [2025-03-28 20:10:20] Production.INFO: ProcessCDR(1,14783854,1,1,2) [2025-03-28 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783854', 'tblTempUsageDetail_20' ) start [2025-03-28 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783854', 'tblTempUsageDetail_20' ) end [2025-03-28 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:10:24] Production.INFO: ==9901== Releasing lock... [2025-03-28 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:10:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-28 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:11:05 [end_date_ymd] => 2025-03-28 20:11:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:11:05' and `end` < '2025-03-28 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-28 20:11:18] Production.INFO: count ==3087 [2025-03-28 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:11:05 - End Time 2025-03-28 20:11:05 [2025-03-28 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783859', 'tblTempUsageDetail_20' ) start [2025-03-28 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783859', 'tblTempUsageDetail_20' ) end [2025-03-28 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783859', 'tblTempVendorCDR_20' ) start [2025-03-28 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783859', 'tblTempVendorCDR_20' ) end [2025-03-28 20:11:19] Production.INFO: ProcessCDR(1,14783859,1,1,2) [2025-03-28 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783859', 'tblTempUsageDetail_20' ) start [2025-03-28 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783859', 'tblTempUsageDetail_20' ) end [2025-03-28 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:11:24] Production.INFO: ==10003== Releasing lock... [2025-03-28 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:11:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-28 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:12:06 [end_date_ymd] => 2025-03-28 20:12:06 [RateCDR] => 1 ) [2025-03-28 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-28 17:12:06' and `end` < '2025-03-28 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-28 20:12:19] Production.INFO: count ==3076 [2025-03-28 20:12:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:12:06 - End Time 2025-03-28 20:12:06 [2025-03-28 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783864', 'tblTempUsageDetail_20' ) start [2025-03-28 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783864', 'tblTempUsageDetail_20' ) end [2025-03-28 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783864', 'tblTempVendorCDR_20' ) start [2025-03-28 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783864', 'tblTempVendorCDR_20' ) end [2025-03-28 20:12:20] Production.INFO: ProcessCDR(1,14783864,1,1,2) [2025-03-28 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783864', 'tblTempUsageDetail_20' ) start [2025-03-28 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783864', 'tblTempUsageDetail_20' ) end [2025-03-28 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:12:24] Production.INFO: ==10106== Releasing lock... [2025-03-28 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:12:24] Production.INFO: 51 MB #Memory Used# [2025-03-28 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:13:05 [end_date_ymd] => 2025-03-28 20:13:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:13:05' and `end` < '2025-03-28 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-28 20:13:18] Production.INFO: count ==3063 [2025-03-28 20:13:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:13:05 - End Time 2025-03-28 20:13:05 [2025-03-28 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783869', 'tblTempUsageDetail_20' ) start [2025-03-28 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783869', 'tblTempUsageDetail_20' ) end [2025-03-28 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783869', 'tblTempVendorCDR_20' ) start [2025-03-28 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783869', 'tblTempVendorCDR_20' ) end [2025-03-28 20:13:19] Production.INFO: ProcessCDR(1,14783869,1,1,2) [2025-03-28 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783869', 'tblTempUsageDetail_20' ) start [2025-03-28 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783869', 'tblTempUsageDetail_20' ) end [2025-03-28 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:13:23] Production.INFO: ==10205== Releasing lock... [2025-03-28 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:13:23] Production.INFO: 51.5 MB #Memory Used# [2025-03-28 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:14:05 [end_date_ymd] => 2025-03-28 20:14:05 [RateCDR] => 1 ) [2025-03-28 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:14:05' and `end` < '2025-03-28 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:14:18] Production.INFO: count ==3065 [2025-03-28 20:14:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:14:05 - End Time 2025-03-28 20:14:05 [2025-03-28 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783874', 'tblTempUsageDetail_20' ) start [2025-03-28 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783874', 'tblTempUsageDetail_20' ) end [2025-03-28 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783874', 'tblTempVendorCDR_20' ) start [2025-03-28 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783874', 'tblTempVendorCDR_20' ) end [2025-03-28 20:14:19] Production.INFO: ProcessCDR(1,14783874,1,1,2) [2025-03-28 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783874', 'tblTempUsageDetail_20' ) start [2025-03-28 20:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783874', 'tblTempUsageDetail_20' ) end [2025-03-28 20:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:14:25] Production.INFO: ==10311== Releasing lock... [2025-03-28 20:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:14:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-28 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:15:05 [end_date_ymd] => 2025-03-28 20:15:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:15:05' and `end` < '2025-03-28 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-28 20:15:18] Production.INFO: count ==3060 [2025-03-28 20:15:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:15:05 - End Time 2025-03-28 20:15:05 [2025-03-28 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783879', 'tblTempUsageDetail_20' ) start [2025-03-28 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783879', 'tblTempUsageDetail_20' ) end [2025-03-28 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783879', 'tblTempVendorCDR_20' ) start [2025-03-28 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783879', 'tblTempVendorCDR_20' ) end [2025-03-28 20:15:19] Production.INFO: ProcessCDR(1,14783879,1,1,2) [2025-03-28 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783879', 'tblTempUsageDetail_20' ) start [2025-03-28 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783879', 'tblTempUsageDetail_20' ) end [2025-03-28 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:15:24] Production.INFO: ==10417== Releasing lock... [2025-03-28 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:15:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-28 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:16:06 [end_date_ymd] => 2025-03-28 20:16:06 [RateCDR] => 1 ) [2025-03-28 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-28 17:16:06' and `end` < '2025-03-28 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-28 20:16:19] Production.INFO: count ==3048 [2025-03-28 20:16:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:16:06 - End Time 2025-03-28 20:16:06 [2025-03-28 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783884', 'tblTempUsageDetail_20' ) start [2025-03-28 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783884', 'tblTempUsageDetail_20' ) end [2025-03-28 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783884', 'tblTempVendorCDR_20' ) start [2025-03-28 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783884', 'tblTempVendorCDR_20' ) end [2025-03-28 20:16:20] Production.INFO: ProcessCDR(1,14783884,1,1,2) [2025-03-28 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783884', 'tblTempUsageDetail_20' ) start [2025-03-28 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783884', 'tblTempUsageDetail_20' ) end [2025-03-28 20:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:16:25] Production.INFO: ==10518== Releasing lock... [2025-03-28 20:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:16:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-28 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:17:06 [end_date_ymd] => 2025-03-28 20:17:06 [RateCDR] => 1 ) [2025-03-28 20:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:17:06' and `end` < '2025-03-28 20:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:17:19] Production.INFO: count ==3057 [2025-03-28 20:17:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:17:06 - End Time 2025-03-28 20:17:06 [2025-03-28 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783889', 'tblTempUsageDetail_20' ) start [2025-03-28 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783889', 'tblTempUsageDetail_20' ) end [2025-03-28 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783889', 'tblTempVendorCDR_20' ) start [2025-03-28 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783889', 'tblTempVendorCDR_20' ) end [2025-03-28 20:17:20] Production.INFO: ProcessCDR(1,14783889,1,1,2) [2025-03-28 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783889', 'tblTempUsageDetail_20' ) start [2025-03-28 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783889', 'tblTempUsageDetail_20' ) end [2025-03-28 20:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:17:25] Production.INFO: ==10650== Releasing lock... [2025-03-28 20:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:17:25] Production.INFO: 52 MB #Memory Used# [2025-03-28 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:18:06 [end_date_ymd] => 2025-03-28 20:18:06 [RateCDR] => 1 ) [2025-03-28 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-28 17:18:06' and `end` < '2025-03-28 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-28 20:18:19] Production.INFO: count ==3052 [2025-03-28 20:18:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:18:06 - End Time 2025-03-28 20:18:06 [2025-03-28 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783894', 'tblTempUsageDetail_20' ) start [2025-03-28 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783894', 'tblTempUsageDetail_20' ) end [2025-03-28 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783894', 'tblTempVendorCDR_20' ) start [2025-03-28 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783894', 'tblTempVendorCDR_20' ) end [2025-03-28 20:18:20] Production.INFO: ProcessCDR(1,14783894,1,1,2) [2025-03-28 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783894', 'tblTempUsageDetail_20' ) start [2025-03-28 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783894', 'tblTempUsageDetail_20' ) end [2025-03-28 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:18:23] Production.INFO: ==10753== Releasing lock... [2025-03-28 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:18:23] Production.INFO: 50.75 MB #Memory Used# [2025-03-28 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:19:05 [end_date_ymd] => 2025-03-28 20:19:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:19:05' and `end` < '2025-03-28 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-28 20:19:18] Production.INFO: count ==3049 [2025-03-28 20:19:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:19:05 - End Time 2025-03-28 20:19:05 [2025-03-28 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783899', 'tblTempUsageDetail_20' ) start [2025-03-28 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783899', 'tblTempUsageDetail_20' ) end [2025-03-28 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783899', 'tblTempVendorCDR_20' ) start [2025-03-28 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783899', 'tblTempVendorCDR_20' ) end [2025-03-28 20:19:19] Production.INFO: ProcessCDR(1,14783899,1,1,2) [2025-03-28 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783899', 'tblTempUsageDetail_20' ) start [2025-03-28 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783899', 'tblTempUsageDetail_20' ) end [2025-03-28 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:19:24] Production.INFO: ==10861== Releasing lock... [2025-03-28 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:19:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-28 20:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:20:07 [end_date_ymd] => 2025-03-28 20:20:07 [RateCDR] => 1 ) [2025-03-28 20: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-28 17:20:07' and `end` < '2025-03-28 20: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-28 20:20:19] Production.INFO: count ==3043 [2025-03-28 20:20:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:20:07 - End Time 2025-03-28 20:20:07 [2025-03-28 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783905', 'tblTempUsageDetail_20' ) start [2025-03-28 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783905', 'tblTempUsageDetail_20' ) end [2025-03-28 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783905', 'tblTempVendorCDR_20' ) start [2025-03-28 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783905', 'tblTempVendorCDR_20' ) end [2025-03-28 20:20:21] Production.INFO: ProcessCDR(1,14783905,1,1,2) [2025-03-28 20:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783905', 'tblTempUsageDetail_20' ) start [2025-03-28 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783905', 'tblTempUsageDetail_20' ) end [2025-03-28 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:20:24] Production.INFO: ==10977== Releasing lock... [2025-03-28 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:20:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-28 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:21:05 [end_date_ymd] => 2025-03-28 20:21:05 [RateCDR] => 1 ) [2025-03-28 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:21:05' and `end` < '2025-03-28 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:21:18] Production.INFO: count ==2956 [2025-03-28 20:21:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:21:05 - End Time 2025-03-28 20:21:05 [2025-03-28 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783910', 'tblTempUsageDetail_20' ) start [2025-03-28 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783910', 'tblTempUsageDetail_20' ) end [2025-03-28 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783910', 'tblTempVendorCDR_20' ) start [2025-03-28 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783910', 'tblTempVendorCDR_20' ) end [2025-03-28 20:21:19] Production.INFO: ProcessCDR(1,14783910,1,1,2) [2025-03-28 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783910', 'tblTempUsageDetail_20' ) start [2025-03-28 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783910', 'tblTempUsageDetail_20' ) end [2025-03-28 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:21:23] Production.INFO: ==11075== Releasing lock... [2025-03-28 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:21:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-28 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:22:06 [end_date_ymd] => 2025-03-28 20:22:06 [RateCDR] => 1 ) [2025-03-28 20:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:22:06' and `end` < '2025-03-28 20:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:22:19] Production.INFO: count ==2939 [2025-03-28 20:22:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:22:06 - End Time 2025-03-28 20:22:06 [2025-03-28 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783915', 'tblTempUsageDetail_20' ) start [2025-03-28 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783915', 'tblTempUsageDetail_20' ) end [2025-03-28 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783915', 'tblTempVendorCDR_20' ) start [2025-03-28 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783915', 'tblTempVendorCDR_20' ) end [2025-03-28 20:22:20] Production.INFO: ProcessCDR(1,14783915,1,1,2) [2025-03-28 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783915', 'tblTempUsageDetail_20' ) start [2025-03-28 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783915', 'tblTempUsageDetail_20' ) end [2025-03-28 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:22:23] Production.INFO: ==11161== Releasing lock... [2025-03-28 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:22:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-28 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:23:05 [end_date_ymd] => 2025-03-28 20:23:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:23:05' and `end` < '2025-03-28 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-28 20:23:18] Production.INFO: count ==2931 [2025-03-28 20:23:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:23:05 - End Time 2025-03-28 20:23:05 [2025-03-28 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783920', 'tblTempUsageDetail_20' ) start [2025-03-28 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783920', 'tblTempUsageDetail_20' ) end [2025-03-28 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783920', 'tblTempVendorCDR_20' ) start [2025-03-28 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783920', 'tblTempVendorCDR_20' ) end [2025-03-28 20:23:19] Production.INFO: ProcessCDR(1,14783920,1,1,2) [2025-03-28 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783920', 'tblTempUsageDetail_20' ) start [2025-03-28 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783920', 'tblTempUsageDetail_20' ) end [2025-03-28 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:23:23] Production.INFO: ==11247== Releasing lock... [2025-03-28 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:23:23] Production.INFO: 50 MB #Memory Used# [2025-03-28 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:24:05 [end_date_ymd] => 2025-03-28 20:24:05 [RateCDR] => 1 ) [2025-03-28 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:24:05' and `end` < '2025-03-28 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:24:18] Production.INFO: count ==2921 [2025-03-28 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:24:05 - End Time 2025-03-28 20:24:05 [2025-03-28 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783925', 'tblTempUsageDetail_20' ) start [2025-03-28 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783925', 'tblTempUsageDetail_20' ) end [2025-03-28 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783925', 'tblTempVendorCDR_20' ) start [2025-03-28 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783925', 'tblTempVendorCDR_20' ) end [2025-03-28 20:24:19] Production.INFO: ProcessCDR(1,14783925,1,1,2) [2025-03-28 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783925', 'tblTempUsageDetail_20' ) start [2025-03-28 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783925', 'tblTempUsageDetail_20' ) end [2025-03-28 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:24:24] Production.INFO: ==11324== Releasing lock... [2025-03-28 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:24:24] Production.INFO: 50 MB #Memory Used# [2025-03-28 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:25:06 [end_date_ymd] => 2025-03-28 20:25:06 [RateCDR] => 1 ) [2025-03-28 20: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-28 17:25:06' and `end` < '2025-03-28 20: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-28 20:25:19] Production.INFO: count ==2907 [2025-03-28 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:25:06 - End Time 2025-03-28 20:25:06 [2025-03-28 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783930', 'tblTempUsageDetail_20' ) start [2025-03-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783930', 'tblTempUsageDetail_20' ) end [2025-03-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783930', 'tblTempVendorCDR_20' ) start [2025-03-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783930', 'tblTempVendorCDR_20' ) end [2025-03-28 20:25:19] Production.INFO: ProcessCDR(1,14783930,1,1,2) [2025-03-28 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783930', 'tblTempUsageDetail_20' ) start [2025-03-28 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783930', 'tblTempUsageDetail_20' ) end [2025-03-28 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:25:23] Production.INFO: ==11409== Releasing lock... [2025-03-28 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:25:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-28 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:26:06 [end_date_ymd] => 2025-03-28 20:26:06 [RateCDR] => 1 ) [2025-03-28 20:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:26:06' and `end` < '2025-03-28 20:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:26:19] Production.INFO: count ==2907 [2025-03-28 20:26:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:26:06 - End Time 2025-03-28 20:26:06 [2025-03-28 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783935', 'tblTempUsageDetail_20' ) start [2025-03-28 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783935', 'tblTempUsageDetail_20' ) end [2025-03-28 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783935', 'tblTempVendorCDR_20' ) start [2025-03-28 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783935', 'tblTempVendorCDR_20' ) end [2025-03-28 20:26:20] Production.INFO: ProcessCDR(1,14783935,1,1,2) [2025-03-28 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783935', 'tblTempUsageDetail_20' ) start [2025-03-28 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783935', 'tblTempUsageDetail_20' ) end [2025-03-28 20:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:26:25] Production.INFO: ==11494== Releasing lock... [2025-03-28 20:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:26:25] Production.INFO: 49.5 MB #Memory Used# [2025-03-28 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:27:05 [end_date_ymd] => 2025-03-28 20:27:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:27:05' and `end` < '2025-03-28 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-28 20:27:18] Production.INFO: count ==2904 [2025-03-28 20:27:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:27:05 - End Time 2025-03-28 20:27:05 [2025-03-28 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783940', 'tblTempUsageDetail_20' ) start [2025-03-28 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783940', 'tblTempUsageDetail_20' ) end [2025-03-28 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783940', 'tblTempVendorCDR_20' ) start [2025-03-28 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783940', 'tblTempVendorCDR_20' ) end [2025-03-28 20:27:19] Production.INFO: ProcessCDR(1,14783940,1,1,2) [2025-03-28 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783940', 'tblTempUsageDetail_20' ) start [2025-03-28 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783940', 'tblTempUsageDetail_20' ) end [2025-03-28 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:27:22] Production.INFO: ==11578== Releasing lock... [2025-03-28 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:27:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-28 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:28:05 [end_date_ymd] => 2025-03-28 20:28:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:28:05' and `end` < '2025-03-28 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-28 20:28:17] Production.INFO: count ==2902 [2025-03-28 20:28:18] Production.ERROR: pbx CDR StartTime 2025-03-28 17:28:05 - End Time 2025-03-28 20:28:05 [2025-03-28 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783945', 'tblTempUsageDetail_20' ) start [2025-03-28 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783945', 'tblTempUsageDetail_20' ) end [2025-03-28 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783945', 'tblTempVendorCDR_20' ) start [2025-03-28 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783945', 'tblTempVendorCDR_20' ) end [2025-03-28 20:28:18] Production.INFO: ProcessCDR(1,14783945,1,1,2) [2025-03-28 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783945', 'tblTempUsageDetail_20' ) start [2025-03-28 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783945', 'tblTempUsageDetail_20' ) end [2025-03-28 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:28:22] Production.INFO: ==11652== Releasing lock... [2025-03-28 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:28:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-28 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:29:06 [end_date_ymd] => 2025-03-28 20:29:06 [RateCDR] => 1 ) [2025-03-28 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-28 17:29:06' and `end` < '2025-03-28 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-28 20:29:19] Production.INFO: count ==2905 [2025-03-28 20:29:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:29:06 - End Time 2025-03-28 20:29:06 [2025-03-28 20:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783950', 'tblTempUsageDetail_20' ) start [2025-03-28 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783950', 'tblTempUsageDetail_20' ) end [2025-03-28 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783950', 'tblTempVendorCDR_20' ) start [2025-03-28 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783950', 'tblTempVendorCDR_20' ) end [2025-03-28 20:29:20] Production.INFO: ProcessCDR(1,14783950,1,1,2) [2025-03-28 20:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783950', 'tblTempUsageDetail_20' ) start [2025-03-28 20:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783950', 'tblTempUsageDetail_20' ) end [2025-03-28 20:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:29:25] Production.INFO: ==11740== Releasing lock... [2025-03-28 20:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:29:25] Production.INFO: 49.75 MB #Memory Used# [2025-03-28 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:30:07 [end_date_ymd] => 2025-03-28 20:30:07 [RateCDR] => 1 ) [2025-03-28 20:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:30:07' and `end` < '2025-03-28 20:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:30:20] Production.INFO: count ==2906 [2025-03-28 20:30:21] Production.ERROR: pbx CDR StartTime 2025-03-28 17:30:07 - End Time 2025-03-28 20:30:07 [2025-03-28 20:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783956', 'tblTempUsageDetail_20' ) start [2025-03-28 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783956', 'tblTempUsageDetail_20' ) end [2025-03-28 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783956', 'tblTempVendorCDR_20' ) start [2025-03-28 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783956', 'tblTempVendorCDR_20' ) end [2025-03-28 20:30:21] Production.INFO: ProcessCDR(1,14783956,1,1,2) [2025-03-28 20:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783956', 'tblTempUsageDetail_20' ) start [2025-03-28 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783956', 'tblTempUsageDetail_20' ) end [2025-03-28 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:30:24] Production.INFO: ==11828== Releasing lock... [2025-03-28 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:30:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-28 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:31:05 [end_date_ymd] => 2025-03-28 20:31:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:31:05' and `end` < '2025-03-28 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-28 20:31:18] Production.INFO: count ==2857 [2025-03-28 20:31:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:31:05 - End Time 2025-03-28 20:31:05 [2025-03-28 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783961', 'tblTempUsageDetail_20' ) start [2025-03-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783961', 'tblTempUsageDetail_20' ) end [2025-03-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783961', 'tblTempVendorCDR_20' ) start [2025-03-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783961', 'tblTempVendorCDR_20' ) end [2025-03-28 20:31:19] Production.INFO: ProcessCDR(1,14783961,1,1,2) [2025-03-28 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783961', 'tblTempUsageDetail_20' ) start [2025-03-28 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783961', 'tblTempUsageDetail_20' ) end [2025-03-28 20:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:31:24] Production.INFO: ==11913== Releasing lock... [2025-03-28 20:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:31:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:32:06 [end_date_ymd] => 2025-03-28 20:32:06 [RateCDR] => 1 ) [2025-03-28 20:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:32:06' and `end` < '2025-03-28 20:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:32:19] Production.INFO: count ==2861 [2025-03-28 20:32:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:32:06 - End Time 2025-03-28 20:32:06 [2025-03-28 20:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783966', 'tblTempUsageDetail_20' ) start [2025-03-28 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783966', 'tblTempUsageDetail_20' ) end [2025-03-28 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783966', 'tblTempVendorCDR_20' ) start [2025-03-28 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783966', 'tblTempVendorCDR_20' ) end [2025-03-28 20:32:20] Production.INFO: ProcessCDR(1,14783966,1,1,2) [2025-03-28 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783966', 'tblTempUsageDetail_20' ) start [2025-03-28 20:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783966', 'tblTempUsageDetail_20' ) end [2025-03-28 20:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:32:26] Production.INFO: ==12041== Releasing lock... [2025-03-28 20:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:32:26] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:33:05 [end_date_ymd] => 2025-03-28 20:33:05 [RateCDR] => 1 ) [2025-03-28 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:33:05' and `end` < '2025-03-28 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:33:18] Production.INFO: count ==2858 [2025-03-28 20:33:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:33:05 - End Time 2025-03-28 20:33:05 [2025-03-28 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783971', 'tblTempUsageDetail_20' ) start [2025-03-28 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783971', 'tblTempUsageDetail_20' ) end [2025-03-28 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783971', 'tblTempVendorCDR_20' ) start [2025-03-28 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783971', 'tblTempVendorCDR_20' ) end [2025-03-28 20:33:19] Production.INFO: ProcessCDR(1,14783971,1,1,2) [2025-03-28 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783971', 'tblTempUsageDetail_20' ) start [2025-03-28 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783971', 'tblTempUsageDetail_20' ) end [2025-03-28 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:33:24] Production.INFO: ==12129== Releasing lock... [2025-03-28 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:33:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:34:05 [end_date_ymd] => 2025-03-28 20:34:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:34:05' and `end` < '2025-03-28 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-28 20:34:18] Production.INFO: count ==2856 [2025-03-28 20:34:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:34:05 - End Time 2025-03-28 20:34:05 [2025-03-28 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783976', 'tblTempUsageDetail_20' ) start [2025-03-28 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783976', 'tblTempUsageDetail_20' ) end [2025-03-28 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783976', 'tblTempVendorCDR_20' ) start [2025-03-28 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783976', 'tblTempVendorCDR_20' ) end [2025-03-28 20:34:19] Production.INFO: ProcessCDR(1,14783976,1,1,2) [2025-03-28 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783976', 'tblTempUsageDetail_20' ) start [2025-03-28 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783976', 'tblTempUsageDetail_20' ) end [2025-03-28 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:34:23] Production.INFO: ==12215== Releasing lock... [2025-03-28 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:34:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:35:05 [end_date_ymd] => 2025-03-28 20:35:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:35:05' and `end` < '2025-03-28 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-28 20:35:18] Production.INFO: count ==2865 [2025-03-28 20:35:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:35:05 - End Time 2025-03-28 20:35:05 [2025-03-28 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783981', 'tblTempUsageDetail_20' ) start [2025-03-28 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783981', 'tblTempUsageDetail_20' ) end [2025-03-28 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783981', 'tblTempVendorCDR_20' ) start [2025-03-28 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783981', 'tblTempVendorCDR_20' ) end [2025-03-28 20:35:19] Production.INFO: ProcessCDR(1,14783981,1,1,2) [2025-03-28 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783981', 'tblTempUsageDetail_20' ) start [2025-03-28 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783981', 'tblTempUsageDetail_20' ) end [2025-03-28 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:35:22] Production.INFO: ==12289== Releasing lock... [2025-03-28 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:35:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:36:06 [end_date_ymd] => 2025-03-28 20:36:06 [RateCDR] => 1 ) [2025-03-28 20:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:36:06' and `end` < '2025-03-28 20:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:36:19] Production.INFO: count ==2853 [2025-03-28 20:36:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:36:06 - End Time 2025-03-28 20:36:06 [2025-03-28 20:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783986', 'tblTempUsageDetail_20' ) start [2025-03-28 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783986', 'tblTempUsageDetail_20' ) end [2025-03-28 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783986', 'tblTempVendorCDR_20' ) start [2025-03-28 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783986', 'tblTempVendorCDR_20' ) end [2025-03-28 20:36:20] Production.INFO: ProcessCDR(1,14783986,1,1,2) [2025-03-28 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783986', 'tblTempUsageDetail_20' ) start [2025-03-28 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783986', 'tblTempUsageDetail_20' ) end [2025-03-28 20:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:36:24] Production.INFO: ==12370== Releasing lock... [2025-03-28 20:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:36:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:37:05 [end_date_ymd] => 2025-03-28 20:37:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:37:05' and `end` < '2025-03-28 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-28 20:37:18] Production.INFO: count ==2850 [2025-03-28 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:37:05 - End Time 2025-03-28 20:37:05 [2025-03-28 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783991', 'tblTempUsageDetail_20' ) start [2025-03-28 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783991', 'tblTempUsageDetail_20' ) end [2025-03-28 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783991', 'tblTempVendorCDR_20' ) start [2025-03-28 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783991', 'tblTempVendorCDR_20' ) end [2025-03-28 20:37:19] Production.INFO: ProcessCDR(1,14783991,1,1,2) [2025-03-28 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783991', 'tblTempUsageDetail_20' ) start [2025-03-28 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783991', 'tblTempUsageDetail_20' ) end [2025-03-28 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:37:22] Production.INFO: ==12451== Releasing lock... [2025-03-28 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:37:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:38:06 [end_date_ymd] => 2025-03-28 20:38:06 [RateCDR] => 1 ) [2025-03-28 20: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-28 17:38:06' and `end` < '2025-03-28 20: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-28 20:38:18] Production.INFO: count ==2835 [2025-03-28 20:38:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:38:06 - End Time 2025-03-28 20:38:06 [2025-03-28 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783996', 'tblTempUsageDetail_20' ) start [2025-03-28 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14783996', 'tblTempUsageDetail_20' ) end [2025-03-28 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783996', 'tblTempVendorCDR_20' ) start [2025-03-28 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14783996', 'tblTempVendorCDR_20' ) end [2025-03-28 20:38:19] Production.INFO: ProcessCDR(1,14783996,1,1,2) [2025-03-28 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14783996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14783996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14783996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14783996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783996', 'tblTempUsageDetail_20' ) start [2025-03-28 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14783996', 'tblTempUsageDetail_20' ) end [2025-03-28 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:38:23] Production.INFO: ==12530== Releasing lock... [2025-03-28 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:38:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:39:05 [end_date_ymd] => 2025-03-28 20:39:05 [RateCDR] => 1 ) [2025-03-28 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:39:05' and `end` < '2025-03-28 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-28 20:39:18] Production.INFO: count ==2835 [2025-03-28 20:39:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:39:05 - End Time 2025-03-28 20:39:05 [2025-03-28 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784001', 'tblTempUsageDetail_20' ) start [2025-03-28 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784001', 'tblTempUsageDetail_20' ) end [2025-03-28 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784001', 'tblTempVendorCDR_20' ) start [2025-03-28 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784001', 'tblTempVendorCDR_20' ) end [2025-03-28 20:39:19] Production.INFO: ProcessCDR(1,14784001,1,1,2) [2025-03-28 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784001', 'tblTempUsageDetail_20' ) start [2025-03-28 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784001', 'tblTempUsageDetail_20' ) end [2025-03-28 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:39:22] Production.INFO: ==12603== Releasing lock... [2025-03-28 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:39:22] Production.INFO: 49 MB #Memory Used# [2025-03-28 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:40:06 [end_date_ymd] => 2025-03-28 20:40:06 [RateCDR] => 1 ) [2025-03-28 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:40:06' and `end` < '2025-03-28 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:40:19] Production.INFO: count ==2854 [2025-03-28 20:40:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:40:06 - End Time 2025-03-28 20:40:06 [2025-03-28 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784007', 'tblTempUsageDetail_20' ) start [2025-03-28 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784007', 'tblTempUsageDetail_20' ) end [2025-03-28 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784007', 'tblTempVendorCDR_20' ) start [2025-03-28 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784007', 'tblTempVendorCDR_20' ) end [2025-03-28 20:40:20] Production.INFO: ProcessCDR(1,14784007,1,1,2) [2025-03-28 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784007', 'tblTempUsageDetail_20' ) start [2025-03-28 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784007', 'tblTempUsageDetail_20' ) end [2025-03-28 20:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:40:25] Production.INFO: ==12682== Releasing lock... [2025-03-28 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:40:25] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:41:05 [end_date_ymd] => 2025-03-28 20:41:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:41:05' and `end` < '2025-03-28 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-28 20:41:17] Production.INFO: count ==2861 [2025-03-28 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-28 17:41:05 - End Time 2025-03-28 20:41:05 [2025-03-28 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784008', 'tblTempUsageDetail_20' ) start [2025-03-28 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784008', 'tblTempUsageDetail_20' ) end [2025-03-28 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784008', 'tblTempVendorCDR_20' ) start [2025-03-28 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784008', 'tblTempVendorCDR_20' ) end [2025-03-28 20:41:18] Production.INFO: ProcessCDR(1,14784008,1,1,2) [2025-03-28 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784008', 'tblTempUsageDetail_20' ) start [2025-03-28 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784008', 'tblTempUsageDetail_20' ) end [2025-03-28 20:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:41:24] Production.INFO: ==12757== Releasing lock... [2025-03-28 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:41:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:42:05 [end_date_ymd] => 2025-03-28 20:42:05 [RateCDR] => 1 ) [2025-03-28 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:42:05' and `end` < '2025-03-28 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:42:18] Production.INFO: count ==2854 [2025-03-28 20:42:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:42:05 - End Time 2025-03-28 20:42:05 [2025-03-28 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784017', 'tblTempUsageDetail_20' ) start [2025-03-28 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784017', 'tblTempUsageDetail_20' ) end [2025-03-28 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784017', 'tblTempVendorCDR_20' ) start [2025-03-28 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784017', 'tblTempVendorCDR_20' ) end [2025-03-28 20:42:19] Production.INFO: ProcessCDR(1,14784017,1,1,2) [2025-03-28 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784017', 'tblTempUsageDetail_20' ) start [2025-03-28 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784017', 'tblTempUsageDetail_20' ) end [2025-03-28 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:42:23] Production.INFO: ==12836== Releasing lock... [2025-03-28 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:42:23] Production.INFO: 50 MB #Memory Used# [2025-03-28 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:43:05 [end_date_ymd] => 2025-03-28 20:43:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:43:05' and `end` < '2025-03-28 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-28 20:43:18] Production.INFO: count ==2851 [2025-03-28 20:43:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:43:05 - End Time 2025-03-28 20:43:05 [2025-03-28 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784022', 'tblTempUsageDetail_20' ) start [2025-03-28 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784022', 'tblTempUsageDetail_20' ) end [2025-03-28 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784022', 'tblTempVendorCDR_20' ) start [2025-03-28 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784022', 'tblTempVendorCDR_20' ) end [2025-03-28 20:43:19] Production.INFO: ProcessCDR(1,14784022,1,1,2) [2025-03-28 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784022', 'tblTempUsageDetail_20' ) start [2025-03-28 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784022', 'tblTempUsageDetail_20' ) end [2025-03-28 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:43:23] Production.INFO: ==12913== Releasing lock... [2025-03-28 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:43:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:44:05 [end_date_ymd] => 2025-03-28 20:44:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:44:05' and `end` < '2025-03-28 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-28 20:44:19] Production.INFO: count ==2837 [2025-03-28 20:44:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:44:05 - End Time 2025-03-28 20:44:05 [2025-03-28 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784027', 'tblTempUsageDetail_20' ) start [2025-03-28 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784027', 'tblTempUsageDetail_20' ) end [2025-03-28 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784027', 'tblTempVendorCDR_20' ) start [2025-03-28 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784027', 'tblTempVendorCDR_20' ) end [2025-03-28 20:44:19] Production.INFO: ProcessCDR(1,14784027,1,1,2) [2025-03-28 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784027', 'tblTempUsageDetail_20' ) start [2025-03-28 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784027', 'tblTempUsageDetail_20' ) end [2025-03-28 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:44:23] Production.INFO: ==12990== Releasing lock... [2025-03-28 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:44:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:45:06 [end_date_ymd] => 2025-03-28 20:45:06 [RateCDR] => 1 ) [2025-03-28 20:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:45:06' and `end` < '2025-03-28 20:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:45:18] Production.INFO: count ==2833 [2025-03-28 20:45:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:45:06 - End Time 2025-03-28 20:45:06 [2025-03-28 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784032', 'tblTempUsageDetail_20' ) start [2025-03-28 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784032', 'tblTempUsageDetail_20' ) end [2025-03-28 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784032', 'tblTempVendorCDR_20' ) start [2025-03-28 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784032', 'tblTempVendorCDR_20' ) end [2025-03-28 20:45:19] Production.INFO: ProcessCDR(1,14784032,1,1,2) [2025-03-28 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784032', 'tblTempUsageDetail_20' ) start [2025-03-28 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784032', 'tblTempUsageDetail_20' ) end [2025-03-28 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:45:23] Production.INFO: ==13069== Releasing lock... [2025-03-28 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:45:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:46:05 [end_date_ymd] => 2025-03-28 20:46:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:46:05' and `end` < '2025-03-28 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-28 20:46:18] Production.INFO: count ==2834 [2025-03-28 20:46:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:46:05 - End Time 2025-03-28 20:46:05 [2025-03-28 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784037', 'tblTempUsageDetail_20' ) start [2025-03-28 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784037', 'tblTempUsageDetail_20' ) end [2025-03-28 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784037', 'tblTempVendorCDR_20' ) start [2025-03-28 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784037', 'tblTempVendorCDR_20' ) end [2025-03-28 20:46:19] Production.INFO: ProcessCDR(1,14784037,1,1,2) [2025-03-28 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784037', 'tblTempUsageDetail_20' ) start [2025-03-28 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784037', 'tblTempUsageDetail_20' ) end [2025-03-28 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:46:24] Production.INFO: ==13146== Releasing lock... [2025-03-28 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:46:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-28 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:47:05 [end_date_ymd] => 2025-03-28 20:47:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:47:05' and `end` < '2025-03-28 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-28 20:47:18] Production.INFO: count ==2835 [2025-03-28 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:47:05 - End Time 2025-03-28 20:47:05 [2025-03-28 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784042', 'tblTempUsageDetail_20' ) start [2025-03-28 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784042', 'tblTempUsageDetail_20' ) end [2025-03-28 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784042', 'tblTempVendorCDR_20' ) start [2025-03-28 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784042', 'tblTempVendorCDR_20' ) end [2025-03-28 20:47:19] Production.INFO: ProcessCDR(1,14784042,1,1,2) [2025-03-28 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784042', 'tblTempUsageDetail_20' ) start [2025-03-28 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784042', 'tblTempUsageDetail_20' ) end [2025-03-28 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:47:23] Production.INFO: ==13219== Releasing lock... [2025-03-28 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:47:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-28 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:48:05 [end_date_ymd] => 2025-03-28 20:48:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:48:05' and `end` < '2025-03-28 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-28 20:48:18] Production.INFO: count ==2816 [2025-03-28 20:48:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:48:05 - End Time 2025-03-28 20:48:05 [2025-03-28 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784047', 'tblTempUsageDetail_20' ) start [2025-03-28 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784047', 'tblTempUsageDetail_20' ) end [2025-03-28 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784047', 'tblTempVendorCDR_20' ) start [2025-03-28 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784047', 'tblTempVendorCDR_20' ) end [2025-03-28 20:48:19] Production.INFO: ProcessCDR(1,14784047,1,1,2) [2025-03-28 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784047', 'tblTempUsageDetail_20' ) start [2025-03-28 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784047', 'tblTempUsageDetail_20' ) end [2025-03-28 20:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:48:24] Production.INFO: ==13333== Releasing lock... [2025-03-28 20:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:48:24] Production.INFO: 49 MB #Memory Used# [2025-03-28 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:49:06 [end_date_ymd] => 2025-03-28 20:49:06 [RateCDR] => 1 ) [2025-03-28 20:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:49:06' and `end` < '2025-03-28 20:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:49:19] Production.INFO: count ==2784 [2025-03-28 20:49:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:49:06 - End Time 2025-03-28 20:49:06 [2025-03-28 20:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784052', 'tblTempUsageDetail_20' ) start [2025-03-28 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784052', 'tblTempUsageDetail_20' ) end [2025-03-28 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784052', 'tblTempVendorCDR_20' ) start [2025-03-28 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784052', 'tblTempVendorCDR_20' ) end [2025-03-28 20:49:20] Production.INFO: ProcessCDR(1,14784052,1,1,2) [2025-03-28 20:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784052', 'tblTempUsageDetail_20' ) start [2025-03-28 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784052', 'tblTempUsageDetail_20' ) end [2025-03-28 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:49:23] Production.INFO: ==13412== Releasing lock... [2025-03-28 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:49:23] Production.INFO: 49 MB #Memory Used# [2025-03-28 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:50:06 [end_date_ymd] => 2025-03-28 20:50:06 [RateCDR] => 1 ) [2025-03-28 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-28 17:50:06' and `end` < '2025-03-28 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-28 20:50:19] Production.INFO: count ==2780 [2025-03-28 20:50:20] Production.ERROR: pbx CDR StartTime 2025-03-28 17:50:06 - End Time 2025-03-28 20:50:06 [2025-03-28 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784057', 'tblTempUsageDetail_20' ) start [2025-03-28 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784057', 'tblTempUsageDetail_20' ) end [2025-03-28 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784057', 'tblTempVendorCDR_20' ) start [2025-03-28 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784057', 'tblTempVendorCDR_20' ) end [2025-03-28 20:50:20] Production.INFO: ProcessCDR(1,14784057,1,1,2) [2025-03-28 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784057', 'tblTempUsageDetail_20' ) start [2025-03-28 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784057', 'tblTempUsageDetail_20' ) end [2025-03-28 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:50:23] Production.INFO: ==13488== Releasing lock... [2025-03-28 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:50:23] Production.INFO: 49 MB #Memory Used# [2025-03-28 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:51:06 [end_date_ymd] => 2025-03-28 20:51:06 [RateCDR] => 1 ) [2025-03-28 20: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-28 17:51:06' and `end` < '2025-03-28 20: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-28 20:51:19] Production.INFO: count ==2765 [2025-03-28 20:51:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:51:06 - End Time 2025-03-28 20:51:06 [2025-03-28 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784063', 'tblTempUsageDetail_20' ) start [2025-03-28 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784063', 'tblTempUsageDetail_20' ) end [2025-03-28 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784063', 'tblTempVendorCDR_20' ) start [2025-03-28 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784063', 'tblTempVendorCDR_20' ) end [2025-03-28 20:51:19] Production.INFO: ProcessCDR(1,14784063,1,1,2) [2025-03-28 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784063', 'tblTempUsageDetail_20' ) start [2025-03-28 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784063', 'tblTempUsageDetail_20' ) end [2025-03-28 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:51:23] Production.INFO: ==13560== Releasing lock... [2025-03-28 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:51:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:52:05 [end_date_ymd] => 2025-03-28 20:52:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:52:05' and `end` < '2025-03-28 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-28 20:52:18] Production.INFO: count ==2774 [2025-03-28 20:52:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:52:05 - End Time 2025-03-28 20:52:05 [2025-03-28 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784068', 'tblTempUsageDetail_20' ) start [2025-03-28 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784068', 'tblTempUsageDetail_20' ) end [2025-03-28 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784068', 'tblTempVendorCDR_20' ) start [2025-03-28 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784068', 'tblTempVendorCDR_20' ) end [2025-03-28 20:52:19] Production.INFO: ProcessCDR(1,14784068,1,1,2) [2025-03-28 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784068', 'tblTempUsageDetail_20' ) start [2025-03-28 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784068', 'tblTempUsageDetail_20' ) end [2025-03-28 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:52:22] Production.INFO: ==13637== Releasing lock... [2025-03-28 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:52:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:53:05 [end_date_ymd] => 2025-03-28 20:53:05 [RateCDR] => 1 ) [2025-03-28 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:53:05' and `end` < '2025-03-28 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:53:18] Production.INFO: count ==2775 [2025-03-28 20:53:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:53:05 - End Time 2025-03-28 20:53:05 [2025-03-28 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784073', 'tblTempUsageDetail_20' ) start [2025-03-28 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784073', 'tblTempUsageDetail_20' ) end [2025-03-28 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784073', 'tblTempVendorCDR_20' ) start [2025-03-28 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784073', 'tblTempVendorCDR_20' ) end [2025-03-28 20:53:19] Production.INFO: ProcessCDR(1,14784073,1,1,2) [2025-03-28 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784073', 'tblTempUsageDetail_20' ) start [2025-03-28 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784073', 'tblTempUsageDetail_20' ) end [2025-03-28 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:53:24] Production.INFO: ==13711== Releasing lock... [2025-03-28 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:53:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:54:05 [end_date_ymd] => 2025-03-28 20:54:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:54:05' and `end` < '2025-03-28 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-28 20:54:18] Production.INFO: count ==2771 [2025-03-28 20:54:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:54:05 - End Time 2025-03-28 20:54:05 [2025-03-28 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784078', 'tblTempUsageDetail_20' ) start [2025-03-28 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784078', 'tblTempUsageDetail_20' ) end [2025-03-28 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784078', 'tblTempVendorCDR_20' ) start [2025-03-28 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784078', 'tblTempVendorCDR_20' ) end [2025-03-28 20:54:19] Production.INFO: ProcessCDR(1,14784078,1,1,2) [2025-03-28 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784078', 'tblTempUsageDetail_20' ) start [2025-03-28 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784078', 'tblTempUsageDetail_20' ) end [2025-03-28 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:54:22] Production.INFO: ==13781== Releasing lock... [2025-03-28 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:54:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:55:06 [end_date_ymd] => 2025-03-28 20:55:06 [RateCDR] => 1 ) [2025-03-28 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-28 17:55:06' and `end` < '2025-03-28 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-28 20:55:19] Production.INFO: count ==2759 [2025-03-28 20:55:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:55:06 - End Time 2025-03-28 20:55:06 [2025-03-28 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784083', 'tblTempUsageDetail_20' ) start [2025-03-28 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784083', 'tblTempUsageDetail_20' ) end [2025-03-28 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784083', 'tblTempVendorCDR_20' ) start [2025-03-28 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784083', 'tblTempVendorCDR_20' ) end [2025-03-28 20:55:19] Production.INFO: ProcessCDR(1,14784083,1,1,2) [2025-03-28 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784083', 'tblTempUsageDetail_20' ) start [2025-03-28 20:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784083', 'tblTempUsageDetail_20' ) end [2025-03-28 20:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:55:25] Production.INFO: ==13853== Releasing lock... [2025-03-28 20:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:55:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:56:05 [end_date_ymd] => 2025-03-28 20:56:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:56:05' and `end` < '2025-03-28 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-28 20:56:18] Production.INFO: count ==2757 [2025-03-28 20:56:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:56:05 - End Time 2025-03-28 20:56:05 [2025-03-28 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784088', 'tblTempUsageDetail_20' ) start [2025-03-28 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784088', 'tblTempUsageDetail_20' ) end [2025-03-28 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784088', 'tblTempVendorCDR_20' ) start [2025-03-28 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784088', 'tblTempVendorCDR_20' ) end [2025-03-28 20:56:19] Production.INFO: ProcessCDR(1,14784088,1,1,2) [2025-03-28 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784088', 'tblTempUsageDetail_20' ) start [2025-03-28 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784088', 'tblTempUsageDetail_20' ) end [2025-03-28 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:56:22] Production.INFO: ==13926== Releasing lock... [2025-03-28 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:56:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:57:06 [end_date_ymd] => 2025-03-28 20:57:06 [RateCDR] => 1 ) [2025-03-28 20: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-28 17:57:06' and `end` < '2025-03-28 20: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-28 20:57:19] Production.INFO: count ==2751 [2025-03-28 20:57:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:57:06 - End Time 2025-03-28 20:57:06 [2025-03-28 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784093', 'tblTempUsageDetail_20' ) start [2025-03-28 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784093', 'tblTempUsageDetail_20' ) end [2025-03-28 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784093', 'tblTempVendorCDR_20' ) start [2025-03-28 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784093', 'tblTempVendorCDR_20' ) end [2025-03-28 20:57:20] Production.INFO: ProcessCDR(1,14784093,1,1,2) [2025-03-28 20:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784093', 'tblTempUsageDetail_20' ) start [2025-03-28 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784093', 'tblTempUsageDetail_20' ) end [2025-03-28 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:57:23] Production.INFO: ==13997== Releasing lock... [2025-03-28 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:57:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:58:05 [end_date_ymd] => 2025-03-28 20:58:05 [RateCDR] => 1 ) [2025-03-28 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-28 17:58:05' and `end` < '2025-03-28 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-28 20:58:18] Production.INFO: count ==2745 [2025-03-28 20:58:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:58:05 - End Time 2025-03-28 20:58:05 [2025-03-28 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784098', 'tblTempUsageDetail_20' ) start [2025-03-28 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784098', 'tblTempUsageDetail_20' ) end [2025-03-28 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784098', 'tblTempVendorCDR_20' ) start [2025-03-28 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784098', 'tblTempVendorCDR_20' ) end [2025-03-28 20:58:19] Production.INFO: ProcessCDR(1,14784098,1,1,2) [2025-03-28 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784098', 'tblTempUsageDetail_20' ) start [2025-03-28 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784098', 'tblTempUsageDetail_20' ) end [2025-03-28 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:58:22] Production.INFO: ==14072== Releasing lock... [2025-03-28 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:58:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 17:59:05 [end_date_ymd] => 2025-03-28 20:59:05 [RateCDR] => 1 ) [2025-03-28 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 17:59:05' and `end` < '2025-03-28 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 20:59:19] Production.INFO: count ==2747 [2025-03-28 20:59:19] Production.ERROR: pbx CDR StartTime 2025-03-28 17:59:05 - End Time 2025-03-28 20:59:05 [2025-03-28 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784103', 'tblTempUsageDetail_20' ) start [2025-03-28 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784103', 'tblTempUsageDetail_20' ) end [2025-03-28 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784103', 'tblTempVendorCDR_20' ) start [2025-03-28 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784103', 'tblTempVendorCDR_20' ) end [2025-03-28 20:59:19] Production.INFO: ProcessCDR(1,14784103,1,1,2) [2025-03-28 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784103', 'tblTempUsageDetail_20' ) start [2025-03-28 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784103', 'tblTempUsageDetail_20' ) end [2025-03-28 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 20:59:23] Production.INFO: ==14152== Releasing lock... [2025-03-28 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 20:59:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:00:06 [end_date_ymd] => 2025-03-28 21:00:06 [RateCDR] => 1 ) [2025-03-28 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-28 18:00:06' and `end` < '2025-03-28 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-28 21:00:19] Production.INFO: count ==2749 [2025-03-28 21:00:20] Production.ERROR: pbx CDR StartTime 2025-03-28 18:00:06 - End Time 2025-03-28 21:00:06 [2025-03-28 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784109', 'tblTempUsageDetail_20' ) start [2025-03-28 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784109', 'tblTempUsageDetail_20' ) end [2025-03-28 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784109', 'tblTempVendorCDR_20' ) start [2025-03-28 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784109', 'tblTempVendorCDR_20' ) end [2025-03-28 21:00:20] Production.INFO: ProcessCDR(1,14784109,1,1,2) [2025-03-28 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784109', 'tblTempUsageDetail_20' ) start [2025-03-28 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784109', 'tblTempUsageDetail_20' ) end [2025-03-28 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:00:25] Production.INFO: ==14230== Releasing lock... [2025-03-28 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:00:25] Production.INFO: 49 MB #Memory Used# [2025-03-28 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:01:05 [end_date_ymd] => 2025-03-28 21:01:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:01:05' and `end` < '2025-03-28 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-28 21:01:18] Production.INFO: count ==2755 [2025-03-28 21:01:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:01:05 - End Time 2025-03-28 21:01:05 [2025-03-28 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784114', 'tblTempUsageDetail_20' ) start [2025-03-28 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784114', 'tblTempUsageDetail_20' ) end [2025-03-28 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784114', 'tblTempVendorCDR_20' ) start [2025-03-28 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784114', 'tblTempVendorCDR_20' ) end [2025-03-28 21:01:19] Production.INFO: ProcessCDR(1,14784114,1,1,2) [2025-03-28 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784114', 'tblTempUsageDetail_20' ) start [2025-03-28 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784114', 'tblTempUsageDetail_20' ) end [2025-03-28 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:01:23] Production.INFO: ==14318== Releasing lock... [2025-03-28 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:01:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:02:06 [end_date_ymd] => 2025-03-28 21:02:06 [RateCDR] => 1 ) [2025-03-28 21:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:02:06' and `end` < '2025-03-28 21:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:02:19] Production.INFO: count ==2746 [2025-03-28 21:02:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:02:06 - End Time 2025-03-28 21:02:06 [2025-03-28 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784119', 'tblTempUsageDetail_20' ) start [2025-03-28 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784119', 'tblTempUsageDetail_20' ) end [2025-03-28 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784119', 'tblTempVendorCDR_20' ) start [2025-03-28 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784119', 'tblTempVendorCDR_20' ) end [2025-03-28 21:02:20] Production.INFO: ProcessCDR(1,14784119,1,1,2) [2025-03-28 21:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784119', 'tblTempUsageDetail_20' ) start [2025-03-28 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784119', 'tblTempUsageDetail_20' ) end [2025-03-28 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:02:23] Production.INFO: ==14393== Releasing lock... [2025-03-28 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:02:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:03:05 [end_date_ymd] => 2025-03-28 21:03:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:03:05' and `end` < '2025-03-28 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-28 21:03:18] Production.INFO: count ==2749 [2025-03-28 21:03:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:03:05 - End Time 2025-03-28 21:03:05 [2025-03-28 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784124', 'tblTempUsageDetail_20' ) start [2025-03-28 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784124', 'tblTempUsageDetail_20' ) end [2025-03-28 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784124', 'tblTempVendorCDR_20' ) start [2025-03-28 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784124', 'tblTempVendorCDR_20' ) end [2025-03-28 21:03:19] Production.INFO: ProcessCDR(1,14784124,1,1,2) [2025-03-28 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784124', 'tblTempUsageDetail_20' ) start [2025-03-28 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784124', 'tblTempUsageDetail_20' ) end [2025-03-28 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:03:23] Production.INFO: ==14503== Releasing lock... [2025-03-28 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:03:23] Production.INFO: 49 MB #Memory Used# [2025-03-28 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:04:05 [end_date_ymd] => 2025-03-28 21:04:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:04:05' and `end` < '2025-03-28 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-28 21:04:18] Production.INFO: count ==2759 [2025-03-28 21:04:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:04:05 - End Time 2025-03-28 21:04:05 [2025-03-28 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784129', 'tblTempUsageDetail_20' ) start [2025-03-28 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784129', 'tblTempUsageDetail_20' ) end [2025-03-28 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784129', 'tblTempVendorCDR_20' ) start [2025-03-28 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784129', 'tblTempVendorCDR_20' ) end [2025-03-28 21:04:19] Production.INFO: ProcessCDR(1,14784129,1,1,2) [2025-03-28 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784129', 'tblTempUsageDetail_20' ) start [2025-03-28 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784129', 'tblTempUsageDetail_20' ) end [2025-03-28 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:04:24] Production.INFO: ==14578== Releasing lock... [2025-03-28 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:04:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:05:05 [end_date_ymd] => 2025-03-28 21:05:05 [RateCDR] => 1 ) [2025-03-28 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:05:05' and `end` < '2025-03-28 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:05:18] Production.INFO: count ==2773 [2025-03-28 21:05:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:05:05 - End Time 2025-03-28 21:05:05 [2025-03-28 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784134', 'tblTempUsageDetail_20' ) start [2025-03-28 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784134', 'tblTempUsageDetail_20' ) end [2025-03-28 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784134', 'tblTempVendorCDR_20' ) start [2025-03-28 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784134', 'tblTempVendorCDR_20' ) end [2025-03-28 21:05:19] Production.INFO: ProcessCDR(1,14784134,1,1,2) [2025-03-28 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784134', 'tblTempUsageDetail_20' ) start [2025-03-28 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784134', 'tblTempUsageDetail_20' ) end [2025-03-28 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:05:22] Production.INFO: ==14656== Releasing lock... [2025-03-28 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:05:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:06:06 [end_date_ymd] => 2025-03-28 21:06:06 [RateCDR] => 1 ) [2025-03-28 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-28 18:06:06' and `end` < '2025-03-28 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-28 21:06:19] Production.INFO: count ==2777 [2025-03-28 21:06:20] Production.ERROR: pbx CDR StartTime 2025-03-28 18:06:06 - End Time 2025-03-28 21:06:06 [2025-03-28 21:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784139', 'tblTempUsageDetail_20' ) start [2025-03-28 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784139', 'tblTempUsageDetail_20' ) end [2025-03-28 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784139', 'tblTempVendorCDR_20' ) start [2025-03-28 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784139', 'tblTempVendorCDR_20' ) end [2025-03-28 21:06:20] Production.INFO: ProcessCDR(1,14784139,1,1,2) [2025-03-28 21:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784139', 'tblTempUsageDetail_20' ) start [2025-03-28 21:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784139', 'tblTempUsageDetail_20' ) end [2025-03-28 21:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:06:25] Production.INFO: ==14740== Releasing lock... [2025-03-28 21:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:06:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:07:05 [end_date_ymd] => 2025-03-28 21:07:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:07:05' and `end` < '2025-03-28 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-28 21:07:18] Production.INFO: count ==2787 [2025-03-28 21:07:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:07:05 - End Time 2025-03-28 21:07:05 [2025-03-28 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784144', 'tblTempUsageDetail_20' ) start [2025-03-28 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784144', 'tblTempUsageDetail_20' ) end [2025-03-28 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784144', 'tblTempVendorCDR_20' ) start [2025-03-28 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784144', 'tblTempVendorCDR_20' ) end [2025-03-28 21:07:19] Production.INFO: ProcessCDR(1,14784144,1,1,2) [2025-03-28 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784144', 'tblTempUsageDetail_20' ) start [2025-03-28 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784144', 'tblTempUsageDetail_20' ) end [2025-03-28 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:07:22] Production.INFO: ==14814== Releasing lock... [2025-03-28 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:07:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:08:05 [end_date_ymd] => 2025-03-28 21:08:05 [RateCDR] => 1 ) [2025-03-28 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:08:05' and `end` < '2025-03-28 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:08:18] Production.INFO: count ==2789 [2025-03-28 21:08:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:08:05 - End Time 2025-03-28 21:08:05 [2025-03-28 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784149', 'tblTempUsageDetail_20' ) start [2025-03-28 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784149', 'tblTempUsageDetail_20' ) end [2025-03-28 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784149', 'tblTempVendorCDR_20' ) start [2025-03-28 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784149', 'tblTempVendorCDR_20' ) end [2025-03-28 21:08:19] Production.INFO: ProcessCDR(1,14784149,1,1,2) [2025-03-28 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784149', 'tblTempUsageDetail_20' ) start [2025-03-28 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784149', 'tblTempUsageDetail_20' ) end [2025-03-28 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:08:23] Production.INFO: ==14900== Releasing lock... [2025-03-28 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:08:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:09:05 [end_date_ymd] => 2025-03-28 21:09:05 [RateCDR] => 1 ) [2025-03-28 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:09:05' and `end` < '2025-03-28 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:09:18] Production.INFO: count ==2781 [2025-03-28 21:09:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:09:05 - End Time 2025-03-28 21:09:05 [2025-03-28 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784154', 'tblTempUsageDetail_20' ) start [2025-03-28 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784154', 'tblTempUsageDetail_20' ) end [2025-03-28 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784154', 'tblTempVendorCDR_20' ) start [2025-03-28 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784154', 'tblTempVendorCDR_20' ) end [2025-03-28 21:09:19] Production.INFO: ProcessCDR(1,14784154,1,1,2) [2025-03-28 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784154', 'tblTempUsageDetail_20' ) start [2025-03-28 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784154', 'tblTempUsageDetail_20' ) end [2025-03-28 21:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:09:24] Production.INFO: ==14979== Releasing lock... [2025-03-28 21:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:09:24] Production.INFO: 49 MB #Memory Used# [2025-03-28 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:10:06 [end_date_ymd] => 2025-03-28 21:10:06 [RateCDR] => 1 ) [2025-03-28 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-28 18:10:06' and `end` < '2025-03-28 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-28 21:10:19] Production.INFO: count ==2787 [2025-03-28 21:10:20] Production.ERROR: pbx CDR StartTime 2025-03-28 18:10:06 - End Time 2025-03-28 21:10:06 [2025-03-28 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784159', 'tblTempUsageDetail_20' ) start [2025-03-28 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784159', 'tblTempUsageDetail_20' ) end [2025-03-28 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784159', 'tblTempVendorCDR_20' ) start [2025-03-28 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784159', 'tblTempVendorCDR_20' ) end [2025-03-28 21:10:20] Production.INFO: ProcessCDR(1,14784159,1,1,2) [2025-03-28 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784159', 'tblTempUsageDetail_20' ) start [2025-03-28 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784159', 'tblTempUsageDetail_20' ) end [2025-03-28 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:10:23] Production.INFO: ==15053== Releasing lock... [2025-03-28 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:10:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:11:04 [end_date_ymd] => 2025-03-28 21:11:04 [RateCDR] => 1 ) [2025-03-28 21:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:11:04' and `end` < '2025-03-28 21:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:11:17] Production.INFO: count ==2755 [2025-03-28 21:11:18] Production.ERROR: pbx CDR StartTime 2025-03-28 18:11:04 - End Time 2025-03-28 21:11:04 [2025-03-28 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784165', 'tblTempUsageDetail_20' ) start [2025-03-28 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784165', 'tblTempUsageDetail_20' ) end [2025-03-28 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784165', 'tblTempVendorCDR_20' ) start [2025-03-28 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784165', 'tblTempVendorCDR_20' ) end [2025-03-28 21:11:18] Production.INFO: ProcessCDR(1,14784165,1,1,2) [2025-03-28 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784165', 'tblTempUsageDetail_20' ) start [2025-03-28 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784165', 'tblTempUsageDetail_20' ) end [2025-03-28 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:11:22] Production.INFO: ==15134== Releasing lock... [2025-03-28 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:11:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:12:05 [end_date_ymd] => 2025-03-28 21:12:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:12:05' and `end` < '2025-03-28 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:12:18] Production.INFO: count ==2734 [2025-03-28 21:12:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:12:05 - End Time 2025-03-28 21:12:05 [2025-03-28 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784170', 'tblTempUsageDetail_20' ) start [2025-03-28 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784170', 'tblTempUsageDetail_20' ) end [2025-03-28 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784170', 'tblTempVendorCDR_20' ) start [2025-03-28 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784170', 'tblTempVendorCDR_20' ) end [2025-03-28 21:12:19] Production.INFO: ProcessCDR(1,14784170,1,1,2) [2025-03-28 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784170', 'tblTempUsageDetail_20' ) start [2025-03-28 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784170', 'tblTempUsageDetail_20' ) end [2025-03-28 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:12:24] Production.INFO: ==15211== Releasing lock... [2025-03-28 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:12:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-28 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:13:05 [end_date_ymd] => 2025-03-28 21:13:05 [RateCDR] => 1 ) [2025-03-28 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:13:05' and `end` < '2025-03-28 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:13:18] Production.INFO: count ==2720 [2025-03-28 21:13:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:13:05 - End Time 2025-03-28 21:13:05 [2025-03-28 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784175', 'tblTempUsageDetail_20' ) start [2025-03-28 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784175', 'tblTempUsageDetail_20' ) end [2025-03-28 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784175', 'tblTempVendorCDR_20' ) start [2025-03-28 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784175', 'tblTempVendorCDR_20' ) end [2025-03-28 21:13:19] Production.INFO: ProcessCDR(1,14784175,1,1,2) [2025-03-28 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784175', 'tblTempUsageDetail_20' ) start [2025-03-28 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784175', 'tblTempUsageDetail_20' ) end [2025-03-28 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:13:24] Production.INFO: ==15287== Releasing lock... [2025-03-28 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:13:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-28 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:14:05 [end_date_ymd] => 2025-03-28 21:14:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:14:05' and `end` < '2025-03-28 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-28 21:14:18] Production.INFO: count ==2724 [2025-03-28 21:14:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:14:05 - End Time 2025-03-28 21:14:05 [2025-03-28 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784180', 'tblTempUsageDetail_20' ) start [2025-03-28 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784180', 'tblTempUsageDetail_20' ) end [2025-03-28 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784180', 'tblTempVendorCDR_20' ) start [2025-03-28 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784180', 'tblTempVendorCDR_20' ) end [2025-03-28 21:14:19] Production.INFO: ProcessCDR(1,14784180,1,1,2) [2025-03-28 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784180', 'tblTempUsageDetail_20' ) start [2025-03-28 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784180', 'tblTempUsageDetail_20' ) end [2025-03-28 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:14:24] Production.INFO: ==15362== Releasing lock... [2025-03-28 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:14:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-28 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:15:05 [end_date_ymd] => 2025-03-28 21:15:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:15:05' and `end` < '2025-03-28 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-28 21:15:18] Production.INFO: count ==2725 [2025-03-28 21:15:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:15:05 - End Time 2025-03-28 21:15:05 [2025-03-28 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784185', 'tblTempUsageDetail_20' ) start [2025-03-28 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784185', 'tblTempUsageDetail_20' ) end [2025-03-28 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784185', 'tblTempVendorCDR_20' ) start [2025-03-28 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784185', 'tblTempVendorCDR_20' ) end [2025-03-28 21:15:19] Production.INFO: ProcessCDR(1,14784185,1,1,2) [2025-03-28 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784185', 'tblTempUsageDetail_20' ) start [2025-03-28 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784185', 'tblTempUsageDetail_20' ) end [2025-03-28 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:15:22] Production.INFO: ==15439== Releasing lock... [2025-03-28 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:15:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-28 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:16:06 [end_date_ymd] => 2025-03-28 21:16:06 [RateCDR] => 1 ) [2025-03-28 21: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-28 18:16:06' and `end` < '2025-03-28 21: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-28 21:16:19] Production.INFO: count ==2722 [2025-03-28 21:16:20] Production.ERROR: pbx CDR StartTime 2025-03-28 18:16:06 - End Time 2025-03-28 21:16:06 [2025-03-28 21:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784190', 'tblTempUsageDetail_20' ) start [2025-03-28 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784190', 'tblTempUsageDetail_20' ) end [2025-03-28 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784190', 'tblTempVendorCDR_20' ) start [2025-03-28 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784190', 'tblTempVendorCDR_20' ) end [2025-03-28 21:16:20] Production.INFO: ProcessCDR(1,14784190,1,1,2) [2025-03-28 21:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784190', 'tblTempUsageDetail_20' ) start [2025-03-28 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784190', 'tblTempUsageDetail_20' ) end [2025-03-28 21:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:16:24] Production.INFO: ==15516== Releasing lock... [2025-03-28 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:16:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-28 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:17:05 [end_date_ymd] => 2025-03-28 21:17:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:17:05' and `end` < '2025-03-28 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-28 21:17:18] Production.INFO: count ==2727 [2025-03-28 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-28 18:17:05 - End Time 2025-03-28 21:17:05 [2025-03-28 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784195', 'tblTempUsageDetail_20' ) start [2025-03-28 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784195', 'tblTempUsageDetail_20' ) end [2025-03-28 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784195', 'tblTempVendorCDR_20' ) start [2025-03-28 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784195', 'tblTempVendorCDR_20' ) end [2025-03-28 21:17:18] Production.INFO: ProcessCDR(1,14784195,1,1,2) [2025-03-28 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784195', 'tblTempUsageDetail_20' ) start [2025-03-28 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784195', 'tblTempUsageDetail_20' ) end [2025-03-28 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:17:24] Production.INFO: ==15591== Releasing lock... [2025-03-28 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:17:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-28 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:18:05 [end_date_ymd] => 2025-03-28 21:18:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:18:05' and `end` < '2025-03-28 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-28 21:18:18] Production.INFO: count ==2721 [2025-03-28 21:18:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:18:05 - End Time 2025-03-28 21:18:05 [2025-03-28 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784200', 'tblTempUsageDetail_20' ) start [2025-03-28 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784200', 'tblTempUsageDetail_20' ) end [2025-03-28 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784200', 'tblTempVendorCDR_20' ) start [2025-03-28 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784200', 'tblTempVendorCDR_20' ) end [2025-03-28 21:18:19] Production.INFO: ProcessCDR(1,14784200,1,1,2) [2025-03-28 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784200', 'tblTempUsageDetail_20' ) start [2025-03-28 21:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784200', 'tblTempUsageDetail_20' ) end [2025-03-28 21:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:18:24] Production.INFO: ==15678== Releasing lock... [2025-03-28 21:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:18:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-28 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:19:05 [end_date_ymd] => 2025-03-28 21:19:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:19:05' and `end` < '2025-03-28 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-28 21:19:18] Production.INFO: count ==2718 [2025-03-28 21:19:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:19:05 - End Time 2025-03-28 21:19:05 [2025-03-28 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784205', 'tblTempUsageDetail_20' ) start [2025-03-28 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784205', 'tblTempUsageDetail_20' ) end [2025-03-28 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784205', 'tblTempVendorCDR_20' ) start [2025-03-28 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784205', 'tblTempVendorCDR_20' ) end [2025-03-28 21:19:19] Production.INFO: ProcessCDR(1,14784205,1,1,2) [2025-03-28 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784205', 'tblTempUsageDetail_20' ) start [2025-03-28 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784205', 'tblTempUsageDetail_20' ) end [2025-03-28 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:19:22] Production.INFO: ==15791== Releasing lock... [2025-03-28 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:19:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-28 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:20:06 [end_date_ymd] => 2025-03-28 21:20:06 [RateCDR] => 1 ) [2025-03-28 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:20:06' and `end` < '2025-03-28 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:20:19] Production.INFO: count ==2716 [2025-03-28 21:20:20] Production.ERROR: pbx CDR StartTime 2025-03-28 18:20:06 - End Time 2025-03-28 21:20:06 [2025-03-28 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784210', 'tblTempUsageDetail_20' ) start [2025-03-28 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784210', 'tblTempUsageDetail_20' ) end [2025-03-28 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784210', 'tblTempVendorCDR_20' ) start [2025-03-28 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784210', 'tblTempVendorCDR_20' ) end [2025-03-28 21:20:20] Production.INFO: ProcessCDR(1,14784210,1,1,2) [2025-03-28 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784210', 'tblTempUsageDetail_20' ) start [2025-03-28 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784210', 'tblTempUsageDetail_20' ) end [2025-03-28 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:20:24] Production.INFO: ==15868== Releasing lock... [2025-03-28 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:20:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-28 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:21:05 [end_date_ymd] => 2025-03-28 21:21:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:21:05' and `end` < '2025-03-28 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-28 21:21:18] Production.INFO: count ==2676 [2025-03-28 21:21:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:21:05 - End Time 2025-03-28 21:21:05 [2025-03-28 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784216', 'tblTempUsageDetail_20' ) start [2025-03-28 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784216', 'tblTempUsageDetail_20' ) end [2025-03-28 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784216', 'tblTempVendorCDR_20' ) start [2025-03-28 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784216', 'tblTempVendorCDR_20' ) end [2025-03-28 21:21:19] Production.INFO: ProcessCDR(1,14784216,1,1,2) [2025-03-28 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784216', 'tblTempUsageDetail_20' ) start [2025-03-28 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784216', 'tblTempUsageDetail_20' ) end [2025-03-28 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:21:23] Production.INFO: ==15946== Releasing lock... [2025-03-28 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:21:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-28 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:22:06 [end_date_ymd] => 2025-03-28 21:22:06 [RateCDR] => 1 ) [2025-03-28 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:22:06' and `end` < '2025-03-28 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:22:19] Production.INFO: count ==2680 [2025-03-28 21:22:20] Production.ERROR: pbx CDR StartTime 2025-03-28 18:22:06 - End Time 2025-03-28 21:22:06 [2025-03-28 21:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784221', 'tblTempUsageDetail_20' ) start [2025-03-28 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784221', 'tblTempUsageDetail_20' ) end [2025-03-28 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784221', 'tblTempVendorCDR_20' ) start [2025-03-28 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784221', 'tblTempVendorCDR_20' ) end [2025-03-28 21:22:20] Production.INFO: ProcessCDR(1,14784221,1,1,2) [2025-03-28 21:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784221', 'tblTempUsageDetail_20' ) start [2025-03-28 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784221', 'tblTempUsageDetail_20' ) end [2025-03-28 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:22:23] Production.INFO: ==16027== Releasing lock... [2025-03-28 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:22:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-28 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:23:05 [end_date_ymd] => 2025-03-28 21:23:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:23:05' and `end` < '2025-03-28 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-28 21:23:17] Production.INFO: count ==2690 [2025-03-28 21:23:18] Production.ERROR: pbx CDR StartTime 2025-03-28 18:23:05 - End Time 2025-03-28 21:23:05 [2025-03-28 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784226', 'tblTempUsageDetail_20' ) start [2025-03-28 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784226', 'tblTempUsageDetail_20' ) end [2025-03-28 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784226', 'tblTempVendorCDR_20' ) start [2025-03-28 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784226', 'tblTempVendorCDR_20' ) end [2025-03-28 21:23:18] Production.INFO: ProcessCDR(1,14784226,1,1,2) [2025-03-28 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784226', 'tblTempUsageDetail_20' ) start [2025-03-28 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784226', 'tblTempUsageDetail_20' ) end [2025-03-28 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:23:23] Production.INFO: ==16105== Releasing lock... [2025-03-28 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:23:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-28 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:24:05 [end_date_ymd] => 2025-03-28 21:24:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:24:05' and `end` < '2025-03-28 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-28 21:24:18] Production.INFO: count ==2694 [2025-03-28 21:24:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:24:05 - End Time 2025-03-28 21:24:05 [2025-03-28 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784231', 'tblTempUsageDetail_20' ) start [2025-03-28 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784231', 'tblTempUsageDetail_20' ) end [2025-03-28 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784231', 'tblTempVendorCDR_20' ) start [2025-03-28 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784231', 'tblTempVendorCDR_20' ) end [2025-03-28 21:24:19] Production.INFO: ProcessCDR(1,14784231,1,1,2) [2025-03-28 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784231', 'tblTempUsageDetail_20' ) start [2025-03-28 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784231', 'tblTempUsageDetail_20' ) end [2025-03-28 21:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:24:24] Production.INFO: ==16181== Releasing lock... [2025-03-28 21:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:24:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-28 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:25:05 [end_date_ymd] => 2025-03-28 21:25:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:25:05' and `end` < '2025-03-28 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-28 21:25:18] Production.INFO: count ==2688 [2025-03-28 21:25:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:25:05 - End Time 2025-03-28 21:25:05 [2025-03-28 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784236', 'tblTempUsageDetail_20' ) start [2025-03-28 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784236', 'tblTempUsageDetail_20' ) end [2025-03-28 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784236', 'tblTempVendorCDR_20' ) start [2025-03-28 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784236', 'tblTempVendorCDR_20' ) end [2025-03-28 21:25:19] Production.INFO: ProcessCDR(1,14784236,1,1,2) [2025-03-28 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784236', 'tblTempUsageDetail_20' ) start [2025-03-28 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784236', 'tblTempUsageDetail_20' ) end [2025-03-28 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:25:23] Production.INFO: ==16254== Releasing lock... [2025-03-28 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:25:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-28 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:26:05 [end_date_ymd] => 2025-03-28 21:26:05 [RateCDR] => 1 ) [2025-03-28 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:26:05' and `end` < '2025-03-28 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:26:18] Production.INFO: count ==2672 [2025-03-28 21:26:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:26:05 - End Time 2025-03-28 21:26:05 [2025-03-28 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784241', 'tblTempUsageDetail_20' ) start [2025-03-28 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784241', 'tblTempUsageDetail_20' ) end [2025-03-28 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784241', 'tblTempVendorCDR_20' ) start [2025-03-28 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784241', 'tblTempVendorCDR_20' ) end [2025-03-28 21:26:19] Production.INFO: ProcessCDR(1,14784241,1,1,2) [2025-03-28 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784241', 'tblTempUsageDetail_20' ) start [2025-03-28 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784241', 'tblTempUsageDetail_20' ) end [2025-03-28 21:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:26:24] Production.INFO: ==16334== Releasing lock... [2025-03-28 21:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:26:24] Production.INFO: 48 MB #Memory Used# [2025-03-28 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:27:06 [end_date_ymd] => 2025-03-28 21:27:06 [RateCDR] => 1 ) [2025-03-28 21:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:27:06' and `end` < '2025-03-28 21:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:27:19] Production.INFO: count ==2665 [2025-03-28 21:27:20] Production.ERROR: pbx CDR StartTime 2025-03-28 18:27:06 - End Time 2025-03-28 21:27:06 [2025-03-28 21:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784246', 'tblTempUsageDetail_20' ) start [2025-03-28 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784246', 'tblTempUsageDetail_20' ) end [2025-03-28 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784246', 'tblTempVendorCDR_20' ) start [2025-03-28 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784246', 'tblTempVendorCDR_20' ) end [2025-03-28 21:27:20] Production.INFO: ProcessCDR(1,14784246,1,1,2) [2025-03-28 21:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784246', 'tblTempUsageDetail_20' ) start [2025-03-28 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784246', 'tblTempUsageDetail_20' ) end [2025-03-28 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:27:23] Production.INFO: ==16419== Releasing lock... [2025-03-28 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:27:23] Production.INFO: 48 MB #Memory Used# [2025-03-28 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:28:05 [end_date_ymd] => 2025-03-28 21:28:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:28:05' and `end` < '2025-03-28 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-28 21:28:18] Production.INFO: count ==2656 [2025-03-28 21:28:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:28:05 - End Time 2025-03-28 21:28:05 [2025-03-28 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784251', 'tblTempUsageDetail_20' ) start [2025-03-28 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784251', 'tblTempUsageDetail_20' ) end [2025-03-28 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784251', 'tblTempVendorCDR_20' ) start [2025-03-28 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784251', 'tblTempVendorCDR_20' ) end [2025-03-28 21:28:19] Production.INFO: ProcessCDR(1,14784251,1,1,2) [2025-03-28 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784251', 'tblTempUsageDetail_20' ) start [2025-03-28 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784251', 'tblTempUsageDetail_20' ) end [2025-03-28 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:28:24] Production.INFO: ==16492== Releasing lock... [2025-03-28 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:28:24] Production.INFO: 48 MB #Memory Used# [2025-03-28 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:29:05 [end_date_ymd] => 2025-03-28 21:29:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:29:05' and `end` < '2025-03-28 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-28 21:29:18] Production.INFO: count ==2656 [2025-03-28 21:29:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:29:05 - End Time 2025-03-28 21:29:05 [2025-03-28 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784256', 'tblTempUsageDetail_20' ) start [2025-03-28 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784256', 'tblTempUsageDetail_20' ) end [2025-03-28 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784256', 'tblTempVendorCDR_20' ) start [2025-03-28 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784256', 'tblTempVendorCDR_20' ) end [2025-03-28 21:29:19] Production.INFO: ProcessCDR(1,14784256,1,1,2) [2025-03-28 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784256', 'tblTempUsageDetail_20' ) start [2025-03-28 21:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784256', 'tblTempUsageDetail_20' ) end [2025-03-28 21:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:29:24] Production.INFO: ==16567== Releasing lock... [2025-03-28 21:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:29:24] Production.INFO: 48 MB #Memory Used# [2025-03-28 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:30:06 [end_date_ymd] => 2025-03-28 21:30:06 [RateCDR] => 1 ) [2025-03-28 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-28 18:30:06' and `end` < '2025-03-28 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-28 21:30:19] Production.INFO: count ==2646 [2025-03-28 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:30:06 - End Time 2025-03-28 21:30:06 [2025-03-28 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784262', 'tblTempUsageDetail_20' ) start [2025-03-28 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784262', 'tblTempUsageDetail_20' ) end [2025-03-28 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784262', 'tblTempVendorCDR_20' ) start [2025-03-28 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784262', 'tblTempVendorCDR_20' ) end [2025-03-28 21:30:19] Production.INFO: ProcessCDR(1,14784262,1,1,2) [2025-03-28 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784262', 'tblTempUsageDetail_20' ) start [2025-03-28 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784262', 'tblTempUsageDetail_20' ) end [2025-03-28 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:30:23] Production.INFO: ==16644== Releasing lock... [2025-03-28 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:30:23] Production.INFO: 48 MB #Memory Used# [2025-03-28 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:31:06 [end_date_ymd] => 2025-03-28 21:31:06 [RateCDR] => 1 ) [2025-03-28 21: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-28 18:31:06' and `end` < '2025-03-28 21: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-28 21:31:19] Production.INFO: count ==2581 [2025-03-28 21:31:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:31:06 - End Time 2025-03-28 21:31:06 [2025-03-28 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784267', 'tblTempUsageDetail_20' ) start [2025-03-28 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784267', 'tblTempUsageDetail_20' ) end [2025-03-28 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784267', 'tblTempVendorCDR_20' ) start [2025-03-28 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784267', 'tblTempVendorCDR_20' ) end [2025-03-28 21:31:19] Production.INFO: ProcessCDR(1,14784267,1,1,2) [2025-03-28 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784267', 'tblTempUsageDetail_20' ) start [2025-03-28 21:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784267', 'tblTempUsageDetail_20' ) end [2025-03-28 21:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:31:25] Production.INFO: ==16728== Releasing lock... [2025-03-28 21:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:31:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-28 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:32:06 [end_date_ymd] => 2025-03-28 21:32:06 [RateCDR] => 1 ) [2025-03-28 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:32:06' and `end` < '2025-03-28 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:32:19] Production.INFO: count ==2568 [2025-03-28 21:32:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:32:06 - End Time 2025-03-28 21:32:06 [2025-03-28 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784272', 'tblTempUsageDetail_20' ) start [2025-03-28 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784272', 'tblTempUsageDetail_20' ) end [2025-03-28 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784272', 'tblTempVendorCDR_20' ) start [2025-03-28 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784272', 'tblTempVendorCDR_20' ) end [2025-03-28 21:32:19] Production.INFO: ProcessCDR(1,14784272,1,1,2) [2025-03-28 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784272', 'tblTempUsageDetail_20' ) start [2025-03-28 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784272', 'tblTempUsageDetail_20' ) end [2025-03-28 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:32:23] Production.INFO: ==16800== Releasing lock... [2025-03-28 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:32:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-28 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:33:06 [end_date_ymd] => 2025-03-28 21:33:06 [RateCDR] => 1 ) [2025-03-28 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-28 18:33:06' and `end` < '2025-03-28 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-28 21:33:19] Production.INFO: count ==2559 [2025-03-28 21:33:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:33:06 - End Time 2025-03-28 21:33:06 [2025-03-28 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784277', 'tblTempUsageDetail_20' ) start [2025-03-28 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784277', 'tblTempUsageDetail_20' ) end [2025-03-28 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784277', 'tblTempVendorCDR_20' ) start [2025-03-28 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784277', 'tblTempVendorCDR_20' ) end [2025-03-28 21:33:20] Production.INFO: ProcessCDR(1,14784277,1,1,2) [2025-03-28 21:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784277', 'tblTempUsageDetail_20' ) start [2025-03-28 21:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784277', 'tblTempUsageDetail_20' ) end [2025-03-28 21:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:33:25] Production.INFO: ==16877== Releasing lock... [2025-03-28 21:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:33:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-28 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:34:05 [end_date_ymd] => 2025-03-28 21:34:05 [RateCDR] => 1 ) [2025-03-28 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:34:05' and `end` < '2025-03-28 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:34:18] Production.INFO: count ==2556 [2025-03-28 21:34:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:34:05 - End Time 2025-03-28 21:34:05 [2025-03-28 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784282', 'tblTempUsageDetail_20' ) start [2025-03-28 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784282', 'tblTempUsageDetail_20' ) end [2025-03-28 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784282', 'tblTempVendorCDR_20' ) start [2025-03-28 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784282', 'tblTempVendorCDR_20' ) end [2025-03-28 21:34:19] Production.INFO: ProcessCDR(1,14784282,1,1,2) [2025-03-28 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784282', 'tblTempUsageDetail_20' ) start [2025-03-28 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784282', 'tblTempUsageDetail_20' ) end [2025-03-28 21:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:34:24] Production.INFO: ==16991== Releasing lock... [2025-03-28 21:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:34:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-28 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:35:05 [end_date_ymd] => 2025-03-28 21:35:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:35:05' and `end` < '2025-03-28 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-28 21:35:18] Production.INFO: count ==2531 [2025-03-28 21:35:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:35:05 - End Time 2025-03-28 21:35:05 [2025-03-28 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784287', 'tblTempUsageDetail_20' ) start [2025-03-28 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784287', 'tblTempUsageDetail_20' ) end [2025-03-28 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784287', 'tblTempVendorCDR_20' ) start [2025-03-28 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784287', 'tblTempVendorCDR_20' ) end [2025-03-28 21:35:19] Production.INFO: ProcessCDR(1,14784287,1,1,2) [2025-03-28 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784287', 'tblTempUsageDetail_20' ) start [2025-03-28 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784287', 'tblTempUsageDetail_20' ) end [2025-03-28 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:35:22] Production.INFO: ==17063== Releasing lock... [2025-03-28 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:35:22] Production.INFO: 47 MB #Memory Used# [2025-03-28 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:36:05 [end_date_ymd] => 2025-03-28 21:36:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:36:05' and `end` < '2025-03-28 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-28 21:36:18] Production.INFO: count ==2506 [2025-03-28 21:36:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:36:05 - End Time 2025-03-28 21:36:05 [2025-03-28 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784292', 'tblTempUsageDetail_20' ) start [2025-03-28 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784292', 'tblTempUsageDetail_20' ) end [2025-03-28 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784292', 'tblTempVendorCDR_20' ) start [2025-03-28 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784292', 'tblTempVendorCDR_20' ) end [2025-03-28 21:36:19] Production.INFO: ProcessCDR(1,14784292,1,1,2) [2025-03-28 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784292', 'tblTempUsageDetail_20' ) start [2025-03-28 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784292', 'tblTempUsageDetail_20' ) end [2025-03-28 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:36:22] Production.INFO: ==17138== Releasing lock... [2025-03-28 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:36:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-28 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:37:05 [end_date_ymd] => 2025-03-28 21:37:05 [RateCDR] => 1 ) [2025-03-28 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:37:05' and `end` < '2025-03-28 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:37:18] Production.INFO: count ==2506 [2025-03-28 21:37:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:37:05 - End Time 2025-03-28 21:37:05 [2025-03-28 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784297', 'tblTempUsageDetail_20' ) start [2025-03-28 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784297', 'tblTempUsageDetail_20' ) end [2025-03-28 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784297', 'tblTempVendorCDR_20' ) start [2025-03-28 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784297', 'tblTempVendorCDR_20' ) end [2025-03-28 21:37:19] Production.INFO: ProcessCDR(1,14784297,1,1,2) [2025-03-28 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784297', 'tblTempUsageDetail_20' ) start [2025-03-28 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784297', 'tblTempUsageDetail_20' ) end [2025-03-28 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:37:22] Production.INFO: ==17217== Releasing lock... [2025-03-28 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:37:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-28 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:38:05 [end_date_ymd] => 2025-03-28 21:38:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:38:05' and `end` < '2025-03-28 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-28 21:38:18] Production.INFO: count ==2501 [2025-03-28 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-28 18:38:05 - End Time 2025-03-28 21:38:05 [2025-03-28 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784302', 'tblTempUsageDetail_20' ) start [2025-03-28 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784302', 'tblTempUsageDetail_20' ) end [2025-03-28 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784302', 'tblTempVendorCDR_20' ) start [2025-03-28 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784302', 'tblTempVendorCDR_20' ) end [2025-03-28 21:38:18] Production.INFO: ProcessCDR(1,14784302,1,1,2) [2025-03-28 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784302', 'tblTempUsageDetail_20' ) start [2025-03-28 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784302', 'tblTempUsageDetail_20' ) end [2025-03-28 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:38:22] Production.INFO: ==17292== Releasing lock... [2025-03-28 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:38:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-28 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:39:05 [end_date_ymd] => 2025-03-28 21:39:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:39:05' and `end` < '2025-03-28 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-28 21:39:18] Production.INFO: count ==2474 [2025-03-28 21:39:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:39:05 - End Time 2025-03-28 21:39:05 [2025-03-28 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784307', 'tblTempUsageDetail_20' ) start [2025-03-28 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784307', 'tblTempUsageDetail_20' ) end [2025-03-28 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784307', 'tblTempVendorCDR_20' ) start [2025-03-28 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784307', 'tblTempVendorCDR_20' ) end [2025-03-28 21:39:19] Production.INFO: ProcessCDR(1,14784307,1,1,2) [2025-03-28 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784307', 'tblTempUsageDetail_20' ) start [2025-03-28 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784307', 'tblTempUsageDetail_20' ) end [2025-03-28 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:39:22] Production.INFO: ==17373== Releasing lock... [2025-03-28 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:39:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-28 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:40:05 [end_date_ymd] => 2025-03-28 21:40:05 [RateCDR] => 1 ) [2025-03-28 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:40:05' and `end` < '2025-03-28 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:40:18] Production.INFO: count ==2463 [2025-03-28 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:40:05 - End Time 2025-03-28 21:40:05 [2025-03-28 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784313', 'tblTempUsageDetail_20' ) start [2025-03-28 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784313', 'tblTempUsageDetail_20' ) end [2025-03-28 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784313', 'tblTempVendorCDR_20' ) start [2025-03-28 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784313', 'tblTempVendorCDR_20' ) end [2025-03-28 21:40:19] Production.INFO: ProcessCDR(1,14784313,1,1,2) [2025-03-28 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784313', 'tblTempUsageDetail_20' ) start [2025-03-28 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784313', 'tblTempUsageDetail_20' ) end [2025-03-28 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:40:22] Production.INFO: ==17453== Releasing lock... [2025-03-28 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:40:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-28 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:41:06 [end_date_ymd] => 2025-03-28 21:41:06 [RateCDR] => 1 ) [2025-03-28 21: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-28 18:41:06' and `end` < '2025-03-28 21: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-28 21:41:18] Production.INFO: count ==2406 [2025-03-28 21:41:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:41:06 - End Time 2025-03-28 21:41:06 [2025-03-28 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784318', 'tblTempUsageDetail_20' ) start [2025-03-28 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784318', 'tblTempUsageDetail_20' ) end [2025-03-28 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784318', 'tblTempVendorCDR_20' ) start [2025-03-28 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784318', 'tblTempVendorCDR_20' ) end [2025-03-28 21:41:19] Production.INFO: ProcessCDR(1,14784318,1,1,2) [2025-03-28 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784318', 'tblTempUsageDetail_20' ) start [2025-03-28 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784318', 'tblTempUsageDetail_20' ) end [2025-03-28 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:41:23] Production.INFO: ==17527== Releasing lock... [2025-03-28 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:41:23] Production.INFO: 46 MB #Memory Used# [2025-03-28 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:42:05 [end_date_ymd] => 2025-03-28 21:42:05 [RateCDR] => 1 ) [2025-03-28 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:42:05' and `end` < '2025-03-28 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:42:17] Production.INFO: count ==2402 [2025-03-28 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-28 18:42:05 - End Time 2025-03-28 21:42:05 [2025-03-28 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784323', 'tblTempUsageDetail_20' ) start [2025-03-28 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784323', 'tblTempUsageDetail_20' ) end [2025-03-28 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784323', 'tblTempVendorCDR_20' ) start [2025-03-28 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784323', 'tblTempVendorCDR_20' ) end [2025-03-28 21:42:18] Production.INFO: ProcessCDR(1,14784323,1,1,2) [2025-03-28 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784323', 'tblTempUsageDetail_20' ) start [2025-03-28 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784323', 'tblTempUsageDetail_20' ) end [2025-03-28 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:42:23] Production.INFO: ==17601== Releasing lock... [2025-03-28 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:42:23] Production.INFO: 46 MB #Memory Used# [2025-03-28 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:43:05 [end_date_ymd] => 2025-03-28 21:43:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:43:05' and `end` < '2025-03-28 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-28 21:43:18] Production.INFO: count ==2399 [2025-03-28 21:43:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:43:05 - End Time 2025-03-28 21:43:05 [2025-03-28 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784328', 'tblTempUsageDetail_20' ) start [2025-03-28 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784328', 'tblTempUsageDetail_20' ) end [2025-03-28 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784328', 'tblTempVendorCDR_20' ) start [2025-03-28 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784328', 'tblTempVendorCDR_20' ) end [2025-03-28 21:43:19] Production.INFO: ProcessCDR(1,14784328,1,1,2) [2025-03-28 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784328', 'tblTempUsageDetail_20' ) start [2025-03-28 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784328', 'tblTempUsageDetail_20' ) end [2025-03-28 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:43:22] Production.INFO: ==17676== Releasing lock... [2025-03-28 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:43:22] Production.INFO: 46 MB #Memory Used# [2025-03-28 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:44:05 [end_date_ymd] => 2025-03-28 21:44:05 [RateCDR] => 1 ) [2025-03-28 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:44:05' and `end` < '2025-03-28 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:44:18] Production.INFO: count ==2389 [2025-03-28 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-28 18:44:05 - End Time 2025-03-28 21:44:05 [2025-03-28 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784333', 'tblTempUsageDetail_20' ) start [2025-03-28 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784333', 'tblTempUsageDetail_20' ) end [2025-03-28 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784333', 'tblTempVendorCDR_20' ) start [2025-03-28 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784333', 'tblTempVendorCDR_20' ) end [2025-03-28 21:44:18] Production.INFO: ProcessCDR(1,14784333,1,1,2) [2025-03-28 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784333', 'tblTempUsageDetail_20' ) start [2025-03-28 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784333', 'tblTempUsageDetail_20' ) end [2025-03-28 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:44:23] Production.INFO: ==17751== Releasing lock... [2025-03-28 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:44:23] Production.INFO: 46 MB #Memory Used# [2025-03-28 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:45:05 [end_date_ymd] => 2025-03-28 21:45:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:45:05' and `end` < '2025-03-28 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-28 21:45:18] Production.INFO: count ==2391 [2025-03-28 21:45:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:45:05 - End Time 2025-03-28 21:45:05 [2025-03-28 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784338', 'tblTempUsageDetail_20' ) start [2025-03-28 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784338', 'tblTempUsageDetail_20' ) end [2025-03-28 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784338', 'tblTempVendorCDR_20' ) start [2025-03-28 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784338', 'tblTempVendorCDR_20' ) end [2025-03-28 21:45:19] Production.INFO: ProcessCDR(1,14784338,1,1,2) [2025-03-28 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784338', 'tblTempUsageDetail_20' ) start [2025-03-28 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784338', 'tblTempUsageDetail_20' ) end [2025-03-28 21:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:45:24] Production.INFO: ==17826== Releasing lock... [2025-03-28 21:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:45:24] Production.INFO: 46 MB #Memory Used# [2025-03-28 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:46:06 [end_date_ymd] => 2025-03-28 21:46:06 [RateCDR] => 1 ) [2025-03-28 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-28 18:46:06' and `end` < '2025-03-28 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-28 21:46:18] Production.INFO: count ==2385 [2025-03-28 21:46:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:46:06 - End Time 2025-03-28 21:46:06 [2025-03-28 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784343', 'tblTempUsageDetail_20' ) start [2025-03-28 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784343', 'tblTempUsageDetail_20' ) end [2025-03-28 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784343', 'tblTempVendorCDR_20' ) start [2025-03-28 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784343', 'tblTempVendorCDR_20' ) end [2025-03-28 21:46:19] Production.INFO: ProcessCDR(1,14784343,1,1,2) [2025-03-28 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784343', 'tblTempUsageDetail_20' ) start [2025-03-28 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784343', 'tblTempUsageDetail_20' ) end [2025-03-28 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:46:23] Production.INFO: ==17908== Releasing lock... [2025-03-28 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:46:23] Production.INFO: 46 MB #Memory Used# [2025-03-28 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:47:05 [end_date_ymd] => 2025-03-28 21:47:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:47:05' and `end` < '2025-03-28 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-28 21:47:18] Production.INFO: count ==2383 [2025-03-28 21:47:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:47:05 - End Time 2025-03-28 21:47:05 [2025-03-28 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784348', 'tblTempUsageDetail_20' ) start [2025-03-28 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784348', 'tblTempUsageDetail_20' ) end [2025-03-28 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784348', 'tblTempVendorCDR_20' ) start [2025-03-28 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784348', 'tblTempVendorCDR_20' ) end [2025-03-28 21:47:19] Production.INFO: ProcessCDR(1,14784348,1,1,2) [2025-03-28 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784348', 'tblTempUsageDetail_20' ) start [2025-03-28 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784348', 'tblTempUsageDetail_20' ) end [2025-03-28 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:47:22] Production.INFO: ==17986== Releasing lock... [2025-03-28 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:47:22] Production.INFO: 46 MB #Memory Used# [2025-03-28 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:48:06 [end_date_ymd] => 2025-03-28 21:48:06 [RateCDR] => 1 ) [2025-03-28 21: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-28 18:48:06' and `end` < '2025-03-28 21: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-28 21:48:19] Production.INFO: count ==2382 [2025-03-28 21:48:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:48:06 - End Time 2025-03-28 21:48:06 [2025-03-28 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784353', 'tblTempUsageDetail_20' ) start [2025-03-28 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784353', 'tblTempUsageDetail_20' ) end [2025-03-28 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784353', 'tblTempVendorCDR_20' ) start [2025-03-28 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784353', 'tblTempVendorCDR_20' ) end [2025-03-28 21:48:19] Production.INFO: ProcessCDR(1,14784353,1,1,2) [2025-03-28 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784353', 'tblTempUsageDetail_20' ) start [2025-03-28 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784353', 'tblTempUsageDetail_20' ) end [2025-03-28 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:48:23] Production.INFO: ==18061== Releasing lock... [2025-03-28 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:48:23] Production.INFO: 46 MB #Memory Used# [2025-03-28 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:49:05 [end_date_ymd] => 2025-03-28 21:49:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:49:05' and `end` < '2025-03-28 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-28 21:49:18] Production.INFO: count ==2383 [2025-03-28 21:49:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:49:05 - End Time 2025-03-28 21:49:05 [2025-03-28 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784358', 'tblTempUsageDetail_20' ) start [2025-03-28 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784358', 'tblTempUsageDetail_20' ) end [2025-03-28 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784358', 'tblTempVendorCDR_20' ) start [2025-03-28 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784358', 'tblTempVendorCDR_20' ) end [2025-03-28 21:49:19] Production.INFO: ProcessCDR(1,14784358,1,1,2) [2025-03-28 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784358', 'tblTempUsageDetail_20' ) start [2025-03-28 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784358', 'tblTempUsageDetail_20' ) end [2025-03-28 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:49:22] Production.INFO: ==18136== Releasing lock... [2025-03-28 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:49:22] Production.INFO: 46 MB #Memory Used# [2025-03-28 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:50:06 [end_date_ymd] => 2025-03-28 21:50:06 [RateCDR] => 1 ) [2025-03-28 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-28 18:50:06' and `end` < '2025-03-28 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-28 21:50:19] Production.INFO: count ==2370 [2025-03-28 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:50:06 - End Time 2025-03-28 21:50:06 [2025-03-28 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784363', 'tblTempUsageDetail_20' ) start [2025-03-28 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784363', 'tblTempUsageDetail_20' ) end [2025-03-28 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784363', 'tblTempVendorCDR_20' ) start [2025-03-28 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784363', 'tblTempVendorCDR_20' ) end [2025-03-28 21:50:19] Production.INFO: ProcessCDR(1,14784363,1,1,2) [2025-03-28 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784363', 'tblTempUsageDetail_20' ) start [2025-03-28 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784363', 'tblTempUsageDetail_20' ) end [2025-03-28 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:50:23] Production.INFO: ==18253== Releasing lock... [2025-03-28 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:50:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-28 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:51:05 [end_date_ymd] => 2025-03-28 21:51:05 [RateCDR] => 1 ) [2025-03-28 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:51:05' and `end` < '2025-03-28 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:51:18] Production.INFO: count ==2315 [2025-03-28 21:51:18] Production.ERROR: pbx CDR StartTime 2025-03-28 18:51:05 - End Time 2025-03-28 21:51:05 [2025-03-28 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784369', 'tblTempUsageDetail_20' ) start [2025-03-28 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784369', 'tblTempUsageDetail_20' ) end [2025-03-28 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784369', 'tblTempVendorCDR_20' ) start [2025-03-28 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784369', 'tblTempVendorCDR_20' ) end [2025-03-28 21:51:18] Production.INFO: ProcessCDR(1,14784369,1,1,2) [2025-03-28 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784369', 'tblTempUsageDetail_20' ) start [2025-03-28 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784369', 'tblTempUsageDetail_20' ) end [2025-03-28 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:51:22] Production.INFO: ==18329== Releasing lock... [2025-03-28 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:51:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-28 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:52:06 [end_date_ymd] => 2025-03-28 21:52:06 [RateCDR] => 1 ) [2025-03-28 21: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-28 18:52:06' and `end` < '2025-03-28 21: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-28 21:52:19] Production.INFO: count ==2308 [2025-03-28 21:52:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:52:06 - End Time 2025-03-28 21:52:06 [2025-03-28 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784374', 'tblTempUsageDetail_20' ) start [2025-03-28 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784374', 'tblTempUsageDetail_20' ) end [2025-03-28 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784374', 'tblTempVendorCDR_20' ) start [2025-03-28 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784374', 'tblTempVendorCDR_20' ) end [2025-03-28 21:52:19] Production.INFO: ProcessCDR(1,14784374,1,1,2) [2025-03-28 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784374', 'tblTempUsageDetail_20' ) start [2025-03-28 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784374', 'tblTempUsageDetail_20' ) end [2025-03-28 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:52:23] Production.INFO: ==18406== Releasing lock... [2025-03-28 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:52:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-28 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:53:05 [end_date_ymd] => 2025-03-28 21:53:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:53:05' and `end` < '2025-03-28 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-28 21:53:18] Production.INFO: count ==2313 [2025-03-28 21:53:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:53:05 - End Time 2025-03-28 21:53:05 [2025-03-28 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784379', 'tblTempUsageDetail_20' ) start [2025-03-28 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784379', 'tblTempUsageDetail_20' ) end [2025-03-28 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784379', 'tblTempVendorCDR_20' ) start [2025-03-28 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784379', 'tblTempVendorCDR_20' ) end [2025-03-28 21:53:19] Production.INFO: ProcessCDR(1,14784379,1,1,2) [2025-03-28 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784379', 'tblTempUsageDetail_20' ) start [2025-03-28 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784379', 'tblTempUsageDetail_20' ) end [2025-03-28 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:53:23] Production.INFO: ==18478== Releasing lock... [2025-03-28 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:53:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-28 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:54:06 [end_date_ymd] => 2025-03-28 21:54:06 [RateCDR] => 1 ) [2025-03-28 21: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-28 18:54:06' and `end` < '2025-03-28 21: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-28 21:54:18] Production.INFO: count ==2316 [2025-03-28 21:54:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:54:06 - End Time 2025-03-28 21:54:06 [2025-03-28 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784384', 'tblTempUsageDetail_20' ) start [2025-03-28 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784384', 'tblTempUsageDetail_20' ) end [2025-03-28 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784384', 'tblTempVendorCDR_20' ) start [2025-03-28 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784384', 'tblTempVendorCDR_20' ) end [2025-03-28 21:54:19] Production.INFO: ProcessCDR(1,14784384,1,1,2) [2025-03-28 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784384', 'tblTempUsageDetail_20' ) start [2025-03-28 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784384', 'tblTempUsageDetail_20' ) end [2025-03-28 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:54:23] Production.INFO: ==18553== Releasing lock... [2025-03-28 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:54:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-28 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:55:05 [end_date_ymd] => 2025-03-28 21:55:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:55:05' and `end` < '2025-03-28 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-28 21:55:18] Production.INFO: count ==2320 [2025-03-28 21:55:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:55:05 - End Time 2025-03-28 21:55:05 [2025-03-28 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784389', 'tblTempUsageDetail_20' ) start [2025-03-28 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784389', 'tblTempUsageDetail_20' ) end [2025-03-28 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784389', 'tblTempVendorCDR_20' ) start [2025-03-28 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784389', 'tblTempVendorCDR_20' ) end [2025-03-28 21:55:19] Production.INFO: ProcessCDR(1,14784389,1,1,2) [2025-03-28 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784389', 'tblTempUsageDetail_20' ) start [2025-03-28 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784389', 'tblTempUsageDetail_20' ) end [2025-03-28 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:55:23] Production.INFO: ==18628== Releasing lock... [2025-03-28 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:55:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-28 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:56:05 [end_date_ymd] => 2025-03-28 21:56:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:56:05' and `end` < '2025-03-28 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-28 21:56:18] Production.INFO: count ==2320 [2025-03-28 21:56:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:56:05 - End Time 2025-03-28 21:56:05 [2025-03-28 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784394', 'tblTempUsageDetail_20' ) start [2025-03-28 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784394', 'tblTempUsageDetail_20' ) end [2025-03-28 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784394', 'tblTempVendorCDR_20' ) start [2025-03-28 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784394', 'tblTempVendorCDR_20' ) end [2025-03-28 21:56:19] Production.INFO: ProcessCDR(1,14784394,1,1,2) [2025-03-28 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784394', 'tblTempUsageDetail_20' ) start [2025-03-28 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784394', 'tblTempUsageDetail_20' ) end [2025-03-28 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:56:22] Production.INFO: ==18704== Releasing lock... [2025-03-28 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:56:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-28 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:57:04 [end_date_ymd] => 2025-03-28 21:57:04 [RateCDR] => 1 ) [2025-03-28 21:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 18:57:04' and `end` < '2025-03-28 21:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 21:57:17] Production.INFO: count ==2321 [2025-03-28 21:57:18] Production.ERROR: pbx CDR StartTime 2025-03-28 18:57:04 - End Time 2025-03-28 21:57:04 [2025-03-28 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784399', 'tblTempUsageDetail_20' ) start [2025-03-28 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784399', 'tblTempUsageDetail_20' ) end [2025-03-28 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784399', 'tblTempVendorCDR_20' ) start [2025-03-28 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784399', 'tblTempVendorCDR_20' ) end [2025-03-28 21:57:18] Production.INFO: ProcessCDR(1,14784399,1,1,2) [2025-03-28 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784399', 'tblTempUsageDetail_20' ) start [2025-03-28 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784399', 'tblTempUsageDetail_20' ) end [2025-03-28 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:57:23] Production.INFO: ==18779== Releasing lock... [2025-03-28 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:57:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-28 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:58:06 [end_date_ymd] => 2025-03-28 21:58:06 [RateCDR] => 1 ) [2025-03-28 21: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-28 18:58:06' and `end` < '2025-03-28 21: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-28 21:58:18] Production.INFO: count ==2327 [2025-03-28 21:58:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:58:06 - End Time 2025-03-28 21:58:06 [2025-03-28 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784404', 'tblTempUsageDetail_20' ) start [2025-03-28 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784404', 'tblTempUsageDetail_20' ) end [2025-03-28 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784404', 'tblTempVendorCDR_20' ) start [2025-03-28 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784404', 'tblTempVendorCDR_20' ) end [2025-03-28 21:58:19] Production.INFO: ProcessCDR(1,14784404,1,1,2) [2025-03-28 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784404', 'tblTempUsageDetail_20' ) start [2025-03-28 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784404', 'tblTempUsageDetail_20' ) end [2025-03-28 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:58:22] Production.INFO: ==18853== Releasing lock... [2025-03-28 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:58:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-28 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 18:59:05 [end_date_ymd] => 2025-03-28 21:59:05 [RateCDR] => 1 ) [2025-03-28 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-28 18:59:05' and `end` < '2025-03-28 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-28 21:59:18] Production.INFO: count ==2307 [2025-03-28 21:59:19] Production.ERROR: pbx CDR StartTime 2025-03-28 18:59:05 - End Time 2025-03-28 21:59:05 [2025-03-28 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784409', 'tblTempUsageDetail_20' ) start [2025-03-28 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784409', 'tblTempUsageDetail_20' ) end [2025-03-28 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784409', 'tblTempVendorCDR_20' ) start [2025-03-28 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784409', 'tblTempVendorCDR_20' ) end [2025-03-28 21:59:19] Production.INFO: ProcessCDR(1,14784409,1,1,2) [2025-03-28 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784409', 'tblTempUsageDetail_20' ) start [2025-03-28 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784409', 'tblTempUsageDetail_20' ) end [2025-03-28 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 21:59:22] Production.INFO: ==18925== Releasing lock... [2025-03-28 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 21:59:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-28 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:00:06 [end_date_ymd] => 2025-03-28 22:00:06 [RateCDR] => 1 ) [2025-03-28 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-28 19:00:06' and `end` < '2025-03-28 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-28 22:00:19] Production.INFO: count ==2297 [2025-03-28 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:00:06 - End Time 2025-03-28 22:00:06 [2025-03-28 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784415', 'tblTempUsageDetail_20' ) start [2025-03-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784415', 'tblTempUsageDetail_20' ) end [2025-03-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784415', 'tblTempVendorCDR_20' ) start [2025-03-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784415', 'tblTempVendorCDR_20' ) end [2025-03-28 22:00:19] Production.INFO: ProcessCDR(1,14784415,1,1,2) [2025-03-28 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784415', 'tblTempUsageDetail_20' ) start [2025-03-28 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784415', 'tblTempUsageDetail_20' ) end [2025-03-28 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:00:23] Production.INFO: ==19000== Releasing lock... [2025-03-28 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:00:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-28 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:01:06 [end_date_ymd] => 2025-03-28 22:01:06 [RateCDR] => 1 ) [2025-03-28 22:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:01:06' and `end` < '2025-03-28 22:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:01:18] Production.INFO: count ==2256 [2025-03-28 22:01:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:01:06 - End Time 2025-03-28 22:01:06 [2025-03-28 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784420', 'tblTempUsageDetail_20' ) start [2025-03-28 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784420', 'tblTempUsageDetail_20' ) end [2025-03-28 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784420', 'tblTempVendorCDR_20' ) start [2025-03-28 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784420', 'tblTempVendorCDR_20' ) end [2025-03-28 22:01:19] Production.INFO: ProcessCDR(1,14784420,1,1,2) [2025-03-28 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784420', 'tblTempUsageDetail_20' ) start [2025-03-28 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784420', 'tblTempUsageDetail_20' ) end [2025-03-28 22:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:01:23] Production.INFO: ==19093== Releasing lock... [2025-03-28 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:01:23] Production.INFO: 45 MB #Memory Used# [2025-03-28 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:02:05 [end_date_ymd] => 2025-03-28 22:02:05 [RateCDR] => 1 ) [2025-03-28 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:02:05' and `end` < '2025-03-28 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:02:18] Production.INFO: count ==2255 [2025-03-28 22:02:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:02:05 - End Time 2025-03-28 22:02:05 [2025-03-28 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784425', 'tblTempUsageDetail_20' ) start [2025-03-28 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784425', 'tblTempUsageDetail_20' ) end [2025-03-28 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784425', 'tblTempVendorCDR_20' ) start [2025-03-28 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784425', 'tblTempVendorCDR_20' ) end [2025-03-28 22:02:19] Production.INFO: ProcessCDR(1,14784425,1,1,2) [2025-03-28 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784425', 'tblTempUsageDetail_20' ) start [2025-03-28 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784425', 'tblTempUsageDetail_20' ) end [2025-03-28 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:02:24] Production.INFO: ==19166== Releasing lock... [2025-03-28 22:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:02:24] Production.INFO: 45 MB #Memory Used# [2025-03-28 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:03:06 [end_date_ymd] => 2025-03-28 22:03:06 [RateCDR] => 1 ) [2025-03-28 22:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:03:06' and `end` < '2025-03-28 22:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:03:18] Production.INFO: count ==2260 [2025-03-28 22:03:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:03:06 - End Time 2025-03-28 22:03:06 [2025-03-28 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784430', 'tblTempUsageDetail_20' ) start [2025-03-28 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784430', 'tblTempUsageDetail_20' ) end [2025-03-28 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784430', 'tblTempVendorCDR_20' ) start [2025-03-28 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784430', 'tblTempVendorCDR_20' ) end [2025-03-28 22:03:19] Production.INFO: ProcessCDR(1,14784430,1,1,2) [2025-03-28 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784430', 'tblTempUsageDetail_20' ) start [2025-03-28 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784430', 'tblTempUsageDetail_20' ) end [2025-03-28 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:03:23] Production.INFO: ==19239== Releasing lock... [2025-03-28 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:03:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-28 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:04:05 [end_date_ymd] => 2025-03-28 22:04:05 [RateCDR] => 1 ) [2025-03-28 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:04:05' and `end` < '2025-03-28 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:04:18] Production.INFO: count ==2242 [2025-03-28 22:04:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:04:05 - End Time 2025-03-28 22:04:05 [2025-03-28 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784435', 'tblTempUsageDetail_20' ) start [2025-03-28 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784435', 'tblTempUsageDetail_20' ) end [2025-03-28 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784435', 'tblTempVendorCDR_20' ) start [2025-03-28 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784435', 'tblTempVendorCDR_20' ) end [2025-03-28 22:04:19] Production.INFO: ProcessCDR(1,14784435,1,1,2) [2025-03-28 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784435', 'tblTempUsageDetail_20' ) start [2025-03-28 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784435', 'tblTempUsageDetail_20' ) end [2025-03-28 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:04:22] Production.INFO: ==19316== Releasing lock... [2025-03-28 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:04:22] Production.INFO: 45 MB #Memory Used# [2025-03-28 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:05:05 [end_date_ymd] => 2025-03-28 22:05:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:05:05' and `end` < '2025-03-28 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-28 22:05:18] Production.INFO: count ==2241 [2025-03-28 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:05:05 - End Time 2025-03-28 22:05:05 [2025-03-28 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784440', 'tblTempUsageDetail_20' ) start [2025-03-28 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784440', 'tblTempUsageDetail_20' ) end [2025-03-28 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784440', 'tblTempVendorCDR_20' ) start [2025-03-28 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784440', 'tblTempVendorCDR_20' ) end [2025-03-28 22:05:18] Production.INFO: ProcessCDR(1,14784440,1,1,2) [2025-03-28 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784440', 'tblTempUsageDetail_20' ) start [2025-03-28 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784440', 'tblTempUsageDetail_20' ) end [2025-03-28 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:05:22] Production.INFO: ==19430== Releasing lock... [2025-03-28 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:05:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-28 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:06:05 [end_date_ymd] => 2025-03-28 22:06:05 [RateCDR] => 1 ) [2025-03-28 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:06:05' and `end` < '2025-03-28 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:06:17] Production.INFO: count ==2243 [2025-03-28 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:06:05 - End Time 2025-03-28 22:06:05 [2025-03-28 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784445', 'tblTempUsageDetail_20' ) start [2025-03-28 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784445', 'tblTempUsageDetail_20' ) end [2025-03-28 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784445', 'tblTempVendorCDR_20' ) start [2025-03-28 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784445', 'tblTempVendorCDR_20' ) end [2025-03-28 22:06:18] Production.INFO: ProcessCDR(1,14784445,1,1,2) [2025-03-28 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784445', 'tblTempUsageDetail_20' ) start [2025-03-28 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784445', 'tblTempUsageDetail_20' ) end [2025-03-28 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:06:21] Production.INFO: ==19513== Releasing lock... [2025-03-28 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:06:21] Production.INFO: 45 MB #Memory Used# [2025-03-28 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:07:05 [end_date_ymd] => 2025-03-28 22:07:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:07:05' and `end` < '2025-03-28 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-28 22:07:18] Production.INFO: count ==2241 [2025-03-28 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:07:05 - End Time 2025-03-28 22:07:05 [2025-03-28 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784450', 'tblTempUsageDetail_20' ) start [2025-03-28 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784450', 'tblTempUsageDetail_20' ) end [2025-03-28 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784450', 'tblTempVendorCDR_20' ) start [2025-03-28 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784450', 'tblTempVendorCDR_20' ) end [2025-03-28 22:07:19] Production.INFO: ProcessCDR(1,14784450,1,1,2) [2025-03-28 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784450', 'tblTempUsageDetail_20' ) start [2025-03-28 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784450', 'tblTempUsageDetail_20' ) end [2025-03-28 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:07:22] Production.INFO: ==19589== Releasing lock... [2025-03-28 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:07:22] Production.INFO: 45 MB #Memory Used# [2025-03-28 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:08:05 [end_date_ymd] => 2025-03-28 22:08:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:08:05' and `end` < '2025-03-28 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-28 22:08:18] Production.INFO: count ==2217 [2025-03-28 22:08:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:08:05 - End Time 2025-03-28 22:08:05 [2025-03-28 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784455', 'tblTempUsageDetail_20' ) start [2025-03-28 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784455', 'tblTempUsageDetail_20' ) end [2025-03-28 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784455', 'tblTempVendorCDR_20' ) start [2025-03-28 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784455', 'tblTempVendorCDR_20' ) end [2025-03-28 22:08:19] Production.INFO: ProcessCDR(1,14784455,1,1,2) [2025-03-28 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784455', 'tblTempUsageDetail_20' ) start [2025-03-28 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784455', 'tblTempUsageDetail_20' ) end [2025-03-28 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:08:22] Production.INFO: ==19663== Releasing lock... [2025-03-28 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:08:22] Production.INFO: 45 MB #Memory Used# [2025-03-28 22:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:09:06 [end_date_ymd] => 2025-03-28 22:09:06 [RateCDR] => 1 ) [2025-03-28 22:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:09:06' and `end` < '2025-03-28 22:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:09:18] Production.INFO: count ==2216 [2025-03-28 22:09:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:09:06 - End Time 2025-03-28 22:09:06 [2025-03-28 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784460', 'tblTempUsageDetail_20' ) start [2025-03-28 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784460', 'tblTempUsageDetail_20' ) end [2025-03-28 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784460', 'tblTempVendorCDR_20' ) start [2025-03-28 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784460', 'tblTempVendorCDR_20' ) end [2025-03-28 22:09:19] Production.INFO: ProcessCDR(1,14784460,1,1,2) [2025-03-28 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784460', 'tblTempUsageDetail_20' ) start [2025-03-28 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784460', 'tblTempUsageDetail_20' ) end [2025-03-28 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:09:23] Production.INFO: ==19736== Releasing lock... [2025-03-28 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:09:23] Production.INFO: 45 MB #Memory Used# [2025-03-28 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:10:05 [end_date_ymd] => 2025-03-28 22:10:05 [RateCDR] => 1 ) [2025-03-28 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:10:05' and `end` < '2025-03-28 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:10:18] Production.INFO: count ==2219 [2025-03-28 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:10:05 - End Time 2025-03-28 22:10:05 [2025-03-28 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784466', 'tblTempUsageDetail_20' ) start [2025-03-28 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784466', 'tblTempUsageDetail_20' ) end [2025-03-28 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784466', 'tblTempVendorCDR_20' ) start [2025-03-28 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784466', 'tblTempVendorCDR_20' ) end [2025-03-28 22:10:19] Production.INFO: ProcessCDR(1,14784466,1,1,2) [2025-03-28 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784466', 'tblTempUsageDetail_20' ) start [2025-03-28 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784466', 'tblTempUsageDetail_20' ) end [2025-03-28 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:10:23] Production.INFO: ==19811== Releasing lock... [2025-03-28 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:10:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-28 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:11:06 [end_date_ymd] => 2025-03-28 22:11:06 [RateCDR] => 1 ) [2025-03-28 22:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:11:06' and `end` < '2025-03-28 22:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:11:19] Production.INFO: count ==2167 [2025-03-28 22:11:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:11:06 - End Time 2025-03-28 22:11:06 [2025-03-28 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784471', 'tblTempUsageDetail_20' ) start [2025-03-28 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784471', 'tblTempUsageDetail_20' ) end [2025-03-28 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784471', 'tblTempVendorCDR_20' ) start [2025-03-28 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784471', 'tblTempVendorCDR_20' ) end [2025-03-28 22:11:19] Production.INFO: ProcessCDR(1,14784471,1,1,2) [2025-03-28 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784471', 'tblTempUsageDetail_20' ) start [2025-03-28 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784471', 'tblTempUsageDetail_20' ) end [2025-03-28 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:11:23] Production.INFO: ==19886== Releasing lock... [2025-03-28 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:11:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-28 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:12:05 [end_date_ymd] => 2025-03-28 22:12:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:12:05' and `end` < '2025-03-28 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-28 22:12:18] Production.INFO: count ==2171 [2025-03-28 22:12:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:12:05 - End Time 2025-03-28 22:12:05 [2025-03-28 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784476', 'tblTempUsageDetail_20' ) start [2025-03-28 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784476', 'tblTempUsageDetail_20' ) end [2025-03-28 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784476', 'tblTempVendorCDR_20' ) start [2025-03-28 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784476', 'tblTempVendorCDR_20' ) end [2025-03-28 22:12:19] Production.INFO: ProcessCDR(1,14784476,1,1,2) [2025-03-28 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784476', 'tblTempUsageDetail_20' ) start [2025-03-28 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784476', 'tblTempUsageDetail_20' ) end [2025-03-28 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:12:22] Production.INFO: ==19958== Releasing lock... [2025-03-28 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:12:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-28 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:13:05 [end_date_ymd] => 2025-03-28 22:13:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:13:05' and `end` < '2025-03-28 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-28 22:13:18] Production.INFO: count ==2163 [2025-03-28 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:13:05 - End Time 2025-03-28 22:13:05 [2025-03-28 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784481', 'tblTempUsageDetail_20' ) start [2025-03-28 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784481', 'tblTempUsageDetail_20' ) end [2025-03-28 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784481', 'tblTempVendorCDR_20' ) start [2025-03-28 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784481', 'tblTempVendorCDR_20' ) end [2025-03-28 22:13:18] Production.INFO: ProcessCDR(1,14784481,1,1,2) [2025-03-28 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784481', 'tblTempUsageDetail_20' ) start [2025-03-28 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784481', 'tblTempUsageDetail_20' ) end [2025-03-28 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:13:22] Production.INFO: ==20029== Releasing lock... [2025-03-28 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:13:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-28 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:14:05 [end_date_ymd] => 2025-03-28 22:14:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:14:05' and `end` < '2025-03-28 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-28 22:14:18] Production.INFO: count ==2168 [2025-03-28 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:14:05 - End Time 2025-03-28 22:14:05 [2025-03-28 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784486', 'tblTempUsageDetail_20' ) start [2025-03-28 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784486', 'tblTempUsageDetail_20' ) end [2025-03-28 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784486', 'tblTempVendorCDR_20' ) start [2025-03-28 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784486', 'tblTempVendorCDR_20' ) end [2025-03-28 22:14:19] Production.INFO: ProcessCDR(1,14784486,1,1,2) [2025-03-28 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784486', 'tblTempUsageDetail_20' ) start [2025-03-28 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784486', 'tblTempUsageDetail_20' ) end [2025-03-28 22:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:14:24] Production.INFO: ==20102== Releasing lock... [2025-03-28 22:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:14:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-28 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:15:05 [end_date_ymd] => 2025-03-28 22:15:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:15:05' and `end` < '2025-03-28 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-28 22:15:18] Production.INFO: count ==2177 [2025-03-28 22:15:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:15:05 - End Time 2025-03-28 22:15:05 [2025-03-28 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784491', 'tblTempUsageDetail_20' ) start [2025-03-28 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784491', 'tblTempUsageDetail_20' ) end [2025-03-28 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784491', 'tblTempVendorCDR_20' ) start [2025-03-28 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784491', 'tblTempVendorCDR_20' ) end [2025-03-28 22:15:19] Production.INFO: ProcessCDR(1,14784491,1,1,2) [2025-03-28 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784491', 'tblTempUsageDetail_20' ) start [2025-03-28 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784491', 'tblTempUsageDetail_20' ) end [2025-03-28 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:15:22] Production.INFO: ==20175== Releasing lock... [2025-03-28 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:15:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-28 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:16:05 [end_date_ymd] => 2025-03-28 22:16:05 [RateCDR] => 1 ) [2025-03-28 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:16:05' and `end` < '2025-03-28 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:16:18] Production.INFO: count ==2175 [2025-03-28 22:16:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:16:05 - End Time 2025-03-28 22:16:05 [2025-03-28 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784496', 'tblTempUsageDetail_20' ) start [2025-03-28 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784496', 'tblTempUsageDetail_20' ) end [2025-03-28 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784496', 'tblTempVendorCDR_20' ) start [2025-03-28 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784496', 'tblTempVendorCDR_20' ) end [2025-03-28 22:16:19] Production.INFO: ProcessCDR(1,14784496,1,1,2) [2025-03-28 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784496', 'tblTempUsageDetail_20' ) start [2025-03-28 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784496', 'tblTempUsageDetail_20' ) end [2025-03-28 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:16:22] Production.INFO: ==20247== Releasing lock... [2025-03-28 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:16:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-28 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:17:05 [end_date_ymd] => 2025-03-28 22:17:05 [RateCDR] => 1 ) [2025-03-28 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:17:05' and `end` < '2025-03-28 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:17:18] Production.INFO: count ==2181 [2025-03-28 22:17:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:17:05 - End Time 2025-03-28 22:17:05 [2025-03-28 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784501', 'tblTempUsageDetail_20' ) start [2025-03-28 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784501', 'tblTempUsageDetail_20' ) end [2025-03-28 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784501', 'tblTempVendorCDR_20' ) start [2025-03-28 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784501', 'tblTempVendorCDR_20' ) end [2025-03-28 22:17:19] Production.INFO: ProcessCDR(1,14784501,1,1,2) [2025-03-28 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784501', 'tblTempUsageDetail_20' ) start [2025-03-28 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784501', 'tblTempUsageDetail_20' ) end [2025-03-28 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:17:22] Production.INFO: ==20328== Releasing lock... [2025-03-28 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:17:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-28 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:18:05 [end_date_ymd] => 2025-03-28 22:18:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:18:05' and `end` < '2025-03-28 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-28 22:18:18] Production.INFO: count ==2166 [2025-03-28 22:18:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:18:05 - End Time 2025-03-28 22:18:05 [2025-03-28 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784506', 'tblTempUsageDetail_20' ) start [2025-03-28 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784506', 'tblTempUsageDetail_20' ) end [2025-03-28 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784506', 'tblTempVendorCDR_20' ) start [2025-03-28 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784506', 'tblTempVendorCDR_20' ) end [2025-03-28 22:18:19] Production.INFO: ProcessCDR(1,14784506,1,1,2) [2025-03-28 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784506', 'tblTempUsageDetail_20' ) start [2025-03-28 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784506', 'tblTempUsageDetail_20' ) end [2025-03-28 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:18:22] Production.INFO: ==20419== Releasing lock... [2025-03-28 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:18:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-28 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:19:05 [end_date_ymd] => 2025-03-28 22:19:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:19:05' and `end` < '2025-03-28 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-28 22:19:18] Production.INFO: count ==2172 [2025-03-28 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:19:05 - End Time 2025-03-28 22:19:05 [2025-03-28 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784511', 'tblTempUsageDetail_20' ) start [2025-03-28 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784511', 'tblTempUsageDetail_20' ) end [2025-03-28 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784511', 'tblTempVendorCDR_20' ) start [2025-03-28 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784511', 'tblTempVendorCDR_20' ) end [2025-03-28 22:19:19] Production.INFO: ProcessCDR(1,14784511,1,1,2) [2025-03-28 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784511', 'tblTempUsageDetail_20' ) start [2025-03-28 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784511', 'tblTempUsageDetail_20' ) end [2025-03-28 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:19:22] Production.INFO: ==20518== Releasing lock... [2025-03-28 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:19:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-28 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:20:06 [end_date_ymd] => 2025-03-28 22:20:06 [RateCDR] => 1 ) [2025-03-28 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:20:06' and `end` < '2025-03-28 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:20:19] Production.INFO: count ==2157 [2025-03-28 22:20:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:20:06 - End Time 2025-03-28 22:20:06 [2025-03-28 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784516', 'tblTempUsageDetail_20' ) start [2025-03-28 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784516', 'tblTempUsageDetail_20' ) end [2025-03-28 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784516', 'tblTempVendorCDR_20' ) start [2025-03-28 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784516', 'tblTempVendorCDR_20' ) end [2025-03-28 22:20:19] Production.INFO: ProcessCDR(1,14784516,1,1,2) [2025-03-28 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784516', 'tblTempUsageDetail_20' ) start [2025-03-28 22:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784516', 'tblTempUsageDetail_20' ) end [2025-03-28 22:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:20:24] Production.INFO: ==20656== Releasing lock... [2025-03-28 22:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:20:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-28 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:21:05 [end_date_ymd] => 2025-03-28 22:21:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:21:05' and `end` < '2025-03-28 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-28 22:21:18] Production.INFO: count ==2127 [2025-03-28 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:21:05 - End Time 2025-03-28 22:21:05 [2025-03-28 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784522', 'tblTempUsageDetail_20' ) start [2025-03-28 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784522', 'tblTempUsageDetail_20' ) end [2025-03-28 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784522', 'tblTempVendorCDR_20' ) start [2025-03-28 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784522', 'tblTempVendorCDR_20' ) end [2025-03-28 22:21:19] Production.INFO: ProcessCDR(1,14784522,1,1,2) [2025-03-28 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784522', 'tblTempUsageDetail_20' ) start [2025-03-28 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784522', 'tblTempUsageDetail_20' ) end [2025-03-28 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:21:22] Production.INFO: ==20750== Releasing lock... [2025-03-28 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:21:22] Production.INFO: 44 MB #Memory Used# [2025-03-28 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:22:05 [end_date_ymd] => 2025-03-28 22:22:05 [RateCDR] => 1 ) [2025-03-28 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:22:05' and `end` < '2025-03-28 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:22:18] Production.INFO: count ==2112 [2025-03-28 22:22:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:22:05 - End Time 2025-03-28 22:22:05 [2025-03-28 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784527', 'tblTempUsageDetail_20' ) start [2025-03-28 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784527', 'tblTempUsageDetail_20' ) end [2025-03-28 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784527', 'tblTempVendorCDR_20' ) start [2025-03-28 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784527', 'tblTempVendorCDR_20' ) end [2025-03-28 22:22:19] Production.INFO: ProcessCDR(1,14784527,1,1,2) [2025-03-28 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784527', 'tblTempUsageDetail_20' ) start [2025-03-28 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784527', 'tblTempUsageDetail_20' ) end [2025-03-28 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:22:22] Production.INFO: ==20821== Releasing lock... [2025-03-28 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:22:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-28 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:23:05 [end_date_ymd] => 2025-03-28 22:23:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:23:05' and `end` < '2025-03-28 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-28 22:23:18] Production.INFO: count ==2107 [2025-03-28 22:23:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:23:05 - End Time 2025-03-28 22:23:05 [2025-03-28 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784532', 'tblTempUsageDetail_20' ) start [2025-03-28 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784532', 'tblTempUsageDetail_20' ) end [2025-03-28 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784532', 'tblTempVendorCDR_20' ) start [2025-03-28 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784532', 'tblTempVendorCDR_20' ) end [2025-03-28 22:23:18] Production.INFO: ProcessCDR(1,14784532,1,1,2) [2025-03-28 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784532', 'tblTempUsageDetail_20' ) start [2025-03-28 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784532', 'tblTempUsageDetail_20' ) end [2025-03-28 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:23:22] Production.INFO: ==20899== Releasing lock... [2025-03-28 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:23:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-28 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:24:06 [end_date_ymd] => 2025-03-28 22:24:06 [RateCDR] => 1 ) [2025-03-28 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-28 19:24:06' and `end` < '2025-03-28 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-28 22:24:18] Production.INFO: count ==2103 [2025-03-28 22:24:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:24:06 - End Time 2025-03-28 22:24:06 [2025-03-28 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784537', 'tblTempUsageDetail_20' ) start [2025-03-28 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784537', 'tblTempUsageDetail_20' ) end [2025-03-28 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784537', 'tblTempVendorCDR_20' ) start [2025-03-28 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784537', 'tblTempVendorCDR_20' ) end [2025-03-28 22:24:19] Production.INFO: ProcessCDR(1,14784537,1,1,2) [2025-03-28 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784537', 'tblTempUsageDetail_20' ) start [2025-03-28 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784537', 'tblTempUsageDetail_20' ) end [2025-03-28 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:24:22] Production.INFO: ==20976== Releasing lock... [2025-03-28 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:24:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-28 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:25:05 [end_date_ymd] => 2025-03-28 22:25:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:25:05' and `end` < '2025-03-28 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-28 22:25:18] Production.INFO: count ==2094 [2025-03-28 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:25:05 - End Time 2025-03-28 22:25:05 [2025-03-28 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784542', 'tblTempUsageDetail_20' ) start [2025-03-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784542', 'tblTempUsageDetail_20' ) end [2025-03-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784542', 'tblTempVendorCDR_20' ) start [2025-03-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784542', 'tblTempVendorCDR_20' ) end [2025-03-28 22:25:18] Production.INFO: ProcessCDR(1,14784542,1,1,2) [2025-03-28 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784542', 'tblTempUsageDetail_20' ) start [2025-03-28 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784542', 'tblTempUsageDetail_20' ) end [2025-03-28 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:25:22] Production.INFO: ==21052== Releasing lock... [2025-03-28 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:25:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-28 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:26:05 [end_date_ymd] => 2025-03-28 22:26:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:26:05' and `end` < '2025-03-28 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-28 22:26:18] Production.INFO: count ==2086 [2025-03-28 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:26:05 - End Time 2025-03-28 22:26:05 [2025-03-28 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784547', 'tblTempUsageDetail_20' ) start [2025-03-28 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784547', 'tblTempUsageDetail_20' ) end [2025-03-28 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784547', 'tblTempVendorCDR_20' ) start [2025-03-28 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784547', 'tblTempVendorCDR_20' ) end [2025-03-28 22:26:18] Production.INFO: ProcessCDR(1,14784547,1,1,2) [2025-03-28 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784547', 'tblTempUsageDetail_20' ) start [2025-03-28 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784547', 'tblTempUsageDetail_20' ) end [2025-03-28 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:26:22] Production.INFO: ==21127== Releasing lock... [2025-03-28 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:26:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-28 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:27:05 [end_date_ymd] => 2025-03-28 22:27:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:27:05' and `end` < '2025-03-28 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-28 22:27:18] Production.INFO: count ==2087 [2025-03-28 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:27:05 - End Time 2025-03-28 22:27:05 [2025-03-28 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784552', 'tblTempUsageDetail_20' ) start [2025-03-28 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784552', 'tblTempUsageDetail_20' ) end [2025-03-28 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784552', 'tblTempVendorCDR_20' ) start [2025-03-28 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784552', 'tblTempVendorCDR_20' ) end [2025-03-28 22:27:18] Production.INFO: ProcessCDR(1,14784552,1,1,2) [2025-03-28 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784552', 'tblTempUsageDetail_20' ) start [2025-03-28 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784552', 'tblTempUsageDetail_20' ) end [2025-03-28 22:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:27:23] Production.INFO: ==21201== Releasing lock... [2025-03-28 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:27:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-28 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:28:06 [end_date_ymd] => 2025-03-28 22:28:06 [RateCDR] => 1 ) [2025-03-28 22: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-28 19:28:06' and `end` < '2025-03-28 22: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-28 22:28:19] Production.INFO: count ==2088 [2025-03-28 22:28:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:28:06 - End Time 2025-03-28 22:28:06 [2025-03-28 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784557', 'tblTempUsageDetail_20' ) start [2025-03-28 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784557', 'tblTempUsageDetail_20' ) end [2025-03-28 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784557', 'tblTempVendorCDR_20' ) start [2025-03-28 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784557', 'tblTempVendorCDR_20' ) end [2025-03-28 22:28:19] Production.INFO: ProcessCDR(1,14784557,1,1,2) [2025-03-28 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784557', 'tblTempUsageDetail_20' ) start [2025-03-28 22:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784557', 'tblTempUsageDetail_20' ) end [2025-03-28 22:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:28:24] Production.INFO: ==21296== Releasing lock... [2025-03-28 22:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:28:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-28 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:29:05 [end_date_ymd] => 2025-03-28 22:29:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:29:05' and `end` < '2025-03-28 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-28 22:29:18] Production.INFO: count ==2078 [2025-03-28 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:29:05 - End Time 2025-03-28 22:29:05 [2025-03-28 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784562', 'tblTempUsageDetail_20' ) start [2025-03-28 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784562', 'tblTempUsageDetail_20' ) end [2025-03-28 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784562', 'tblTempVendorCDR_20' ) start [2025-03-28 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784562', 'tblTempVendorCDR_20' ) end [2025-03-28 22:29:18] Production.INFO: ProcessCDR(1,14784562,1,1,2) [2025-03-28 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784562', 'tblTempUsageDetail_20' ) start [2025-03-28 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784562', 'tblTempUsageDetail_20' ) end [2025-03-28 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:29:22] Production.INFO: ==21366== Releasing lock... [2025-03-28 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:29:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-28 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:30:06 [end_date_ymd] => 2025-03-28 22:30:06 [RateCDR] => 1 ) [2025-03-28 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-28 19:30:06' and `end` < '2025-03-28 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-28 22:30:19] Production.INFO: count ==2065 [2025-03-28 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:30:06 - End Time 2025-03-28 22:30:06 [2025-03-28 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784567', 'tblTempUsageDetail_20' ) start [2025-03-28 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784567', 'tblTempUsageDetail_20' ) end [2025-03-28 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784567', 'tblTempVendorCDR_20' ) start [2025-03-28 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784567', 'tblTempVendorCDR_20' ) end [2025-03-28 22:30:19] Production.INFO: ProcessCDR(1,14784567,1,1,2) [2025-03-28 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784567', 'tblTempUsageDetail_20' ) start [2025-03-28 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784567', 'tblTempUsageDetail_20' ) end [2025-03-28 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:30:23] Production.INFO: ==21448== Releasing lock... [2025-03-28 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:30:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-28 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:31:04 [end_date_ymd] => 2025-03-28 22:31:04 [RateCDR] => 1 ) [2025-03-28 22: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-28 19:31:04' and `end` < '2025-03-28 22: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-28 22:31:17] Production.INFO: count ==1998 [2025-03-28 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:31:04 - End Time 2025-03-28 22:31:04 [2025-03-28 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784573', 'tblTempUsageDetail_20' ) start [2025-03-28 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784573', 'tblTempUsageDetail_20' ) end [2025-03-28 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784573', 'tblTempVendorCDR_20' ) start [2025-03-28 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784573', 'tblTempVendorCDR_20' ) end [2025-03-28 22:31:18] Production.INFO: ProcessCDR(1,14784573,1,1,2) [2025-03-28 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784573', 'tblTempUsageDetail_20' ) start [2025-03-28 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784573', 'tblTempUsageDetail_20' ) end [2025-03-28 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:31:21] Production.INFO: ==21521== Releasing lock... [2025-03-28 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:31:21] Production.INFO: 43 MB #Memory Used# [2025-03-28 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:32:06 [end_date_ymd] => 2025-03-28 22:32:06 [RateCDR] => 1 ) [2025-03-28 22: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-28 19:32:06' and `end` < '2025-03-28 22: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-28 22:32:18] Production.INFO: count ==1999 [2025-03-28 22:32:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:32:06 - End Time 2025-03-28 22:32:06 [2025-03-28 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784578', 'tblTempUsageDetail_20' ) start [2025-03-28 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784578', 'tblTempUsageDetail_20' ) end [2025-03-28 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784578', 'tblTempVendorCDR_20' ) start [2025-03-28 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784578', 'tblTempVendorCDR_20' ) end [2025-03-28 22:32:19] Production.INFO: ProcessCDR(1,14784578,1,1,2) [2025-03-28 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784578', 'tblTempUsageDetail_20' ) start [2025-03-28 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784578', 'tblTempUsageDetail_20' ) end [2025-03-28 22:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:32:24] Production.INFO: ==21594== Releasing lock... [2025-03-28 22:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:32:24] Production.INFO: 43 MB #Memory Used# [2025-03-28 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:33:04 [end_date_ymd] => 2025-03-28 22:33:04 [RateCDR] => 1 ) [2025-03-28 22:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:33:04' and `end` < '2025-03-28 22:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:33:17] Production.INFO: count ==1998 [2025-03-28 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:33:04 - End Time 2025-03-28 22:33:04 [2025-03-28 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784583', 'tblTempUsageDetail_20' ) start [2025-03-28 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784583', 'tblTempUsageDetail_20' ) end [2025-03-28 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784583', 'tblTempVendorCDR_20' ) start [2025-03-28 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784583', 'tblTempVendorCDR_20' ) end [2025-03-28 22:33:18] Production.INFO: ProcessCDR(1,14784583,1,1,2) [2025-03-28 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784583', 'tblTempUsageDetail_20' ) start [2025-03-28 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784583', 'tblTempUsageDetail_20' ) end [2025-03-28 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:33:21] Production.INFO: ==21671== Releasing lock... [2025-03-28 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:33:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-28 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:34:05 [end_date_ymd] => 2025-03-28 22:34:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:34:05' and `end` < '2025-03-28 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-28 22:34:18] Production.INFO: count ==2009 [2025-03-28 22:34:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:34:05 - End Time 2025-03-28 22:34:05 [2025-03-28 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784588', 'tblTempUsageDetail_20' ) start [2025-03-28 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784588', 'tblTempUsageDetail_20' ) end [2025-03-28 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784588', 'tblTempVendorCDR_20' ) start [2025-03-28 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784588', 'tblTempVendorCDR_20' ) end [2025-03-28 22:34:19] Production.INFO: ProcessCDR(1,14784588,1,1,2) [2025-03-28 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784588', 'tblTempUsageDetail_20' ) start [2025-03-28 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784588', 'tblTempUsageDetail_20' ) end [2025-03-28 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:34:22] Production.INFO: ==21744== Releasing lock... [2025-03-28 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:34:22] Production.INFO: 43 MB #Memory Used# [2025-03-28 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:35:05 [end_date_ymd] => 2025-03-28 22:35:05 [RateCDR] => 1 ) [2025-03-28 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:35:05' and `end` < '2025-03-28 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:35:18] Production.INFO: count ==2018 [2025-03-28 22:35:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:35:05 - End Time 2025-03-28 22:35:05 [2025-03-28 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784593', 'tblTempUsageDetail_20' ) start [2025-03-28 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784593', 'tblTempUsageDetail_20' ) end [2025-03-28 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784593', 'tblTempVendorCDR_20' ) start [2025-03-28 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784593', 'tblTempVendorCDR_20' ) end [2025-03-28 22:35:19] Production.INFO: ProcessCDR(1,14784593,1,1,2) [2025-03-28 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784593', 'tblTempUsageDetail_20' ) start [2025-03-28 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784593', 'tblTempUsageDetail_20' ) end [2025-03-28 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:35:22] Production.INFO: ==21813== Releasing lock... [2025-03-28 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:35:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-28 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:36:05 [end_date_ymd] => 2025-03-28 22:36:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:36:05' and `end` < '2025-03-28 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-28 22:36:17] Production.INFO: count ==2041 [2025-03-28 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:36:05 - End Time 2025-03-28 22:36:05 [2025-03-28 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784598', 'tblTempUsageDetail_20' ) start [2025-03-28 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784598', 'tblTempUsageDetail_20' ) end [2025-03-28 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784598', 'tblTempVendorCDR_20' ) start [2025-03-28 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784598', 'tblTempVendorCDR_20' ) end [2025-03-28 22:36:18] Production.INFO: ProcessCDR(1,14784598,1,1,2) [2025-03-28 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784598', 'tblTempUsageDetail_20' ) start [2025-03-28 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784598', 'tblTempUsageDetail_20' ) end [2025-03-28 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:36:21] Production.INFO: ==21926== Releasing lock... [2025-03-28 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:36:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-28 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:37:05 [end_date_ymd] => 2025-03-28 22:37:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:37:05' and `end` < '2025-03-28 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-28 22:37:18] Production.INFO: count ==2031 [2025-03-28 22:37:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:37:05 - End Time 2025-03-28 22:37:05 [2025-03-28 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784603', 'tblTempUsageDetail_20' ) start [2025-03-28 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784603', 'tblTempUsageDetail_20' ) end [2025-03-28 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784603', 'tblTempVendorCDR_20' ) start [2025-03-28 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784603', 'tblTempVendorCDR_20' ) end [2025-03-28 22:37:19] Production.INFO: ProcessCDR(1,14784603,1,1,2) [2025-03-28 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784603', 'tblTempUsageDetail_20' ) start [2025-03-28 22:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784603', 'tblTempUsageDetail_20' ) end [2025-03-28 22:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:37:24] Production.INFO: ==22002== Releasing lock... [2025-03-28 22:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:37:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-28 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:38:05 [end_date_ymd] => 2025-03-28 22:38:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:38:05' and `end` < '2025-03-28 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-28 22:38:18] Production.INFO: count ==2030 [2025-03-28 22:38:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:38:05 - End Time 2025-03-28 22:38:05 [2025-03-28 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784608', 'tblTempUsageDetail_20' ) start [2025-03-28 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784608', 'tblTempUsageDetail_20' ) end [2025-03-28 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784608', 'tblTempVendorCDR_20' ) start [2025-03-28 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784608', 'tblTempVendorCDR_20' ) end [2025-03-28 22:38:19] Production.INFO: ProcessCDR(1,14784608,1,1,2) [2025-03-28 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784608', 'tblTempUsageDetail_20' ) start [2025-03-28 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784608', 'tblTempUsageDetail_20' ) end [2025-03-28 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:38:23] Production.INFO: ==22073== Releasing lock... [2025-03-28 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:38:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-28 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:39:06 [end_date_ymd] => 2025-03-28 22:39:06 [RateCDR] => 1 ) [2025-03-28 22: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-28 19:39:06' and `end` < '2025-03-28 22: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-28 22:39:19] Production.INFO: count ==2014 [2025-03-28 22:39:20] Production.ERROR: pbx CDR StartTime 2025-03-28 19:39:06 - End Time 2025-03-28 22:39:06 [2025-03-28 22:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784613', 'tblTempUsageDetail_20' ) start [2025-03-28 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784613', 'tblTempUsageDetail_20' ) end [2025-03-28 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784613', 'tblTempVendorCDR_20' ) start [2025-03-28 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784613', 'tblTempVendorCDR_20' ) end [2025-03-28 22:39:20] Production.INFO: ProcessCDR(1,14784613,1,1,2) [2025-03-28 22:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784613', 'tblTempUsageDetail_20' ) start [2025-03-28 22:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784613', 'tblTempUsageDetail_20' ) end [2025-03-28 22:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:39:26] Production.INFO: ==22153== Releasing lock... [2025-03-28 22:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:39:26] Production.INFO: 43.25 MB #Memory Used# [2025-03-28 22:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:40:07 [end_date_ymd] => 2025-03-28 22:40:07 [RateCDR] => 1 ) [2025-03-28 22:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:40:07' and `end` < '2025-03-28 22:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:40:19] Production.INFO: count ==2009 [2025-03-28 22:40:20] Production.ERROR: pbx CDR StartTime 2025-03-28 19:40:07 - End Time 2025-03-28 22:40:07 [2025-03-28 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784619', 'tblTempUsageDetail_20' ) start [2025-03-28 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784619', 'tblTempUsageDetail_20' ) end [2025-03-28 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784619', 'tblTempVendorCDR_20' ) start [2025-03-28 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784619', 'tblTempVendorCDR_20' ) end [2025-03-28 22:40:20] Production.INFO: ProcessCDR(1,14784619,1,1,2) [2025-03-28 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784619', 'tblTempUsageDetail_20' ) start [2025-03-28 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784619', 'tblTempUsageDetail_20' ) end [2025-03-28 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:40:23] Production.INFO: ==22228== Releasing lock... [2025-03-28 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:40:23] Production.INFO: 43 MB #Memory Used# [2025-03-28 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:41:05 [end_date_ymd] => 2025-03-28 22:41:05 [RateCDR] => 1 ) [2025-03-28 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:41:05' and `end` < '2025-03-28 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:41:17] Production.INFO: count ==1955 [2025-03-28 22:41:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:41:05 - End Time 2025-03-28 22:41:05 [2025-03-28 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784624', 'tblTempUsageDetail_20' ) start [2025-03-28 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784624', 'tblTempUsageDetail_20' ) end [2025-03-28 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784624', 'tblTempVendorCDR_20' ) start [2025-03-28 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784624', 'tblTempVendorCDR_20' ) end [2025-03-28 22:41:18] Production.INFO: ProcessCDR(1,14784624,1,1,2) [2025-03-28 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784624', 'tblTempUsageDetail_20' ) start [2025-03-28 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784624', 'tblTempUsageDetail_20' ) end [2025-03-28 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:41:22] Production.INFO: ==22304== Releasing lock... [2025-03-28 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:41:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-28 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:42:06 [end_date_ymd] => 2025-03-28 22:42:06 [RateCDR] => 1 ) [2025-03-28 22:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:42:06' and `end` < '2025-03-28 22:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:42:19] Production.INFO: count ==1955 [2025-03-28 22:42:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:42:06 - End Time 2025-03-28 22:42:06 [2025-03-28 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784629', 'tblTempUsageDetail_20' ) start [2025-03-28 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784629', 'tblTempUsageDetail_20' ) end [2025-03-28 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784629', 'tblTempVendorCDR_20' ) start [2025-03-28 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784629', 'tblTempVendorCDR_20' ) end [2025-03-28 22:42:19] Production.INFO: ProcessCDR(1,14784629,1,1,2) [2025-03-28 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784629', 'tblTempUsageDetail_20' ) start [2025-03-28 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784629', 'tblTempUsageDetail_20' ) end [2025-03-28 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:42:23] Production.INFO: ==22382== Releasing lock... [2025-03-28 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:42:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-28 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:43:05 [end_date_ymd] => 2025-03-28 22:43:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:43:05' and `end` < '2025-03-28 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-28 22:43:18] Production.INFO: count ==1956 [2025-03-28 22:43:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:43:05 - End Time 2025-03-28 22:43:05 [2025-03-28 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784634', 'tblTempUsageDetail_20' ) start [2025-03-28 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784634', 'tblTempUsageDetail_20' ) end [2025-03-28 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784634', 'tblTempVendorCDR_20' ) start [2025-03-28 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784634', 'tblTempVendorCDR_20' ) end [2025-03-28 22:43:19] Production.INFO: ProcessCDR(1,14784634,1,1,2) [2025-03-28 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784634', 'tblTempUsageDetail_20' ) start [2025-03-28 22:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784634', 'tblTempUsageDetail_20' ) end [2025-03-28 22:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:43:24] Production.INFO: ==22459== Releasing lock... [2025-03-28 22:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:43:24] Production.INFO: 43 MB #Memory Used# [2025-03-28 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:44:06 [end_date_ymd] => 2025-03-28 22:44:06 [RateCDR] => 1 ) [2025-03-28 22: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-28 19:44:06' and `end` < '2025-03-28 22: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-28 22:44:19] Production.INFO: count ==1940 [2025-03-28 22:44:20] Production.ERROR: pbx CDR StartTime 2025-03-28 19:44:06 - End Time 2025-03-28 22:44:06 [2025-03-28 22:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784639', 'tblTempUsageDetail_20' ) start [2025-03-28 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784639', 'tblTempUsageDetail_20' ) end [2025-03-28 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784639', 'tblTempVendorCDR_20' ) start [2025-03-28 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784639', 'tblTempVendorCDR_20' ) end [2025-03-28 22:44:20] Production.INFO: ProcessCDR(1,14784639,1,1,2) [2025-03-28 22:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784639', 'tblTempUsageDetail_20' ) start [2025-03-28 22:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784639', 'tblTempUsageDetail_20' ) end [2025-03-28 22:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:44:25] Production.INFO: ==22532== Releasing lock... [2025-03-28 22:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:44:25] Production.INFO: 42.5 MB #Memory Used# [2025-03-28 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:45:05 [end_date_ymd] => 2025-03-28 22:45:05 [RateCDR] => 1 ) [2025-03-28 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:45:05' and `end` < '2025-03-28 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:45:18] Production.INFO: count ==1951 [2025-03-28 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:45:05 - End Time 2025-03-28 22:45:05 [2025-03-28 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784644', 'tblTempUsageDetail_20' ) start [2025-03-28 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784644', 'tblTempUsageDetail_20' ) end [2025-03-28 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784644', 'tblTempVendorCDR_20' ) start [2025-03-28 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784644', 'tblTempVendorCDR_20' ) end [2025-03-28 22:45:19] Production.INFO: ProcessCDR(1,14784644,1,1,2) [2025-03-28 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784644', 'tblTempUsageDetail_20' ) start [2025-03-28 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784644', 'tblTempUsageDetail_20' ) end [2025-03-28 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:45:22] Production.INFO: ==22613== Releasing lock... [2025-03-28 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:45:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-28 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:46:04 [end_date_ymd] => 2025-03-28 22:46:04 [RateCDR] => 1 ) [2025-03-28 22:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:46:04' and `end` < '2025-03-28 22:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:46:17] Production.INFO: count ==1950 [2025-03-28 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:46:04 - End Time 2025-03-28 22:46:04 [2025-03-28 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784649', 'tblTempUsageDetail_20' ) start [2025-03-28 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784649', 'tblTempUsageDetail_20' ) end [2025-03-28 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784649', 'tblTempVendorCDR_20' ) start [2025-03-28 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784649', 'tblTempVendorCDR_20' ) end [2025-03-28 22:46:18] Production.INFO: ProcessCDR(1,14784649,1,1,2) [2025-03-28 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784649', 'tblTempUsageDetail_20' ) start [2025-03-28 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784649', 'tblTempUsageDetail_20' ) end [2025-03-28 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:46:23] Production.INFO: ==22695== Releasing lock... [2025-03-28 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:46:23] Production.INFO: 43 MB #Memory Used# [2025-03-28 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:47:05 [end_date_ymd] => 2025-03-28 22:47:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:47:05' and `end` < '2025-03-28 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-28 22:47:18] Production.INFO: count ==1946 [2025-03-28 22:47:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:47:05 - End Time 2025-03-28 22:47:05 [2025-03-28 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784654', 'tblTempUsageDetail_20' ) start [2025-03-28 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784654', 'tblTempUsageDetail_20' ) end [2025-03-28 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784654', 'tblTempVendorCDR_20' ) start [2025-03-28 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784654', 'tblTempVendorCDR_20' ) end [2025-03-28 22:47:19] Production.INFO: ProcessCDR(1,14784654,1,1,2) [2025-03-28 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784654', 'tblTempUsageDetail_20' ) start [2025-03-28 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784654', 'tblTempUsageDetail_20' ) end [2025-03-28 22:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:47:24] Production.INFO: ==22779== Releasing lock... [2025-03-28 22:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:47:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-28 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:48:06 [end_date_ymd] => 2025-03-28 22:48:06 [RateCDR] => 1 ) [2025-03-28 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-28 19:48:06' and `end` < '2025-03-28 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-28 22:48:19] Production.INFO: count ==1944 [2025-03-28 22:48:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:48:06 - End Time 2025-03-28 22:48:06 [2025-03-28 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784659', 'tblTempUsageDetail_20' ) start [2025-03-28 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784659', 'tblTempUsageDetail_20' ) end [2025-03-28 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784659', 'tblTempVendorCDR_20' ) start [2025-03-28 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784659', 'tblTempVendorCDR_20' ) end [2025-03-28 22:48:19] Production.INFO: ProcessCDR(1,14784659,1,1,2) [2025-03-28 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784659', 'tblTempUsageDetail_20' ) start [2025-03-28 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784659', 'tblTempUsageDetail_20' ) end [2025-03-28 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:48:23] Production.INFO: ==22856== Releasing lock... [2025-03-28 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:48:23] Production.INFO: 43 MB #Memory Used# [2025-03-28 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:49:05 [end_date_ymd] => 2025-03-28 22:49:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:49:05' and `end` < '2025-03-28 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-28 22:49:18] Production.INFO: count ==1948 [2025-03-28 22:49:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:49:05 - End Time 2025-03-28 22:49:05 [2025-03-28 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784664', 'tblTempUsageDetail_20' ) start [2025-03-28 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784664', 'tblTempUsageDetail_20' ) end [2025-03-28 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784664', 'tblTempVendorCDR_20' ) start [2025-03-28 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784664', 'tblTempVendorCDR_20' ) end [2025-03-28 22:49:19] Production.INFO: ProcessCDR(1,14784664,1,1,2) [2025-03-28 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784664', 'tblTempUsageDetail_20' ) start [2025-03-28 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784664', 'tblTempUsageDetail_20' ) end [2025-03-28 22:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:49:24] Production.INFO: ==22938== Releasing lock... [2025-03-28 22:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:49:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-28 22:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:50:07 [end_date_ymd] => 2025-03-28 22:50:07 [RateCDR] => 1 ) [2025-03-28 22:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:50:07' and `end` < '2025-03-28 22: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-28 22:50:20] Production.INFO: count ==1961 [2025-03-28 22:50:20] Production.ERROR: pbx CDR StartTime 2025-03-28 19:50:07 - End Time 2025-03-28 22:50:07 [2025-03-28 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784670', 'tblTempUsageDetail_20' ) start [2025-03-28 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784670', 'tblTempUsageDetail_20' ) end [2025-03-28 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784670', 'tblTempVendorCDR_20' ) start [2025-03-28 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784670', 'tblTempVendorCDR_20' ) end [2025-03-28 22:50:20] Production.INFO: ProcessCDR(1,14784670,1,1,2) [2025-03-28 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784670', 'tblTempUsageDetail_20' ) start [2025-03-28 22:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784670', 'tblTempUsageDetail_20' ) end [2025-03-28 22:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:50:26] Production.INFO: ==23021== Releasing lock... [2025-03-28 22:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:50:26] Production.INFO: 42.75 MB #Memory Used# [2025-03-28 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:51:05 [end_date_ymd] => 2025-03-28 22:51:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:51:05' and `end` < '2025-03-28 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-28 22:51:18] Production.INFO: count ==1963 [2025-03-28 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:51:05 - End Time 2025-03-28 22:51:05 [2025-03-28 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784675', 'tblTempUsageDetail_20' ) start [2025-03-28 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784675', 'tblTempUsageDetail_20' ) end [2025-03-28 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784675', 'tblTempVendorCDR_20' ) start [2025-03-28 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784675', 'tblTempVendorCDR_20' ) end [2025-03-28 22:51:19] Production.INFO: ProcessCDR(1,14784675,1,1,2) [2025-03-28 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784675', 'tblTempUsageDetail_20' ) start [2025-03-28 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784675', 'tblTempUsageDetail_20' ) end [2025-03-28 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:51:22] Production.INFO: ==23140== Releasing lock... [2025-03-28 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:51:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-28 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:52:05 [end_date_ymd] => 2025-03-28 22:52:05 [RateCDR] => 1 ) [2025-03-28 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:52:05' and `end` < '2025-03-28 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:52:18] Production.INFO: count ==1959 [2025-03-28 22:52:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:52:05 - End Time 2025-03-28 22:52:05 [2025-03-28 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784680', 'tblTempUsageDetail_20' ) start [2025-03-28 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784680', 'tblTempUsageDetail_20' ) end [2025-03-28 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784680', 'tblTempVendorCDR_20' ) start [2025-03-28 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784680', 'tblTempVendorCDR_20' ) end [2025-03-28 22:52:19] Production.INFO: ProcessCDR(1,14784680,1,1,2) [2025-03-28 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784680', 'tblTempUsageDetail_20' ) start [2025-03-28 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784680', 'tblTempUsageDetail_20' ) end [2025-03-28 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:52:22] Production.INFO: ==23221== Releasing lock... [2025-03-28 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:52:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-28 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:53:05 [end_date_ymd] => 2025-03-28 22:53:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:53:05' and `end` < '2025-03-28 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-28 22:53:18] Production.INFO: count ==1943 [2025-03-28 22:53:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:53:05 - End Time 2025-03-28 22:53:05 [2025-03-28 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784685', 'tblTempUsageDetail_20' ) start [2025-03-28 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784685', 'tblTempUsageDetail_20' ) end [2025-03-28 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784685', 'tblTempVendorCDR_20' ) start [2025-03-28 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784685', 'tblTempVendorCDR_20' ) end [2025-03-28 22:53:18] Production.INFO: ProcessCDR(1,14784685,1,1,2) [2025-03-28 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784685', 'tblTempUsageDetail_20' ) start [2025-03-28 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784685', 'tblTempUsageDetail_20' ) end [2025-03-28 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:53:22] Production.INFO: ==23299== Releasing lock... [2025-03-28 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:53:22] Production.INFO: 43 MB #Memory Used# [2025-03-28 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:54:05 [end_date_ymd] => 2025-03-28 22:54:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:54:05' and `end` < '2025-03-28 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-28 22:54:18] Production.INFO: count ==1936 [2025-03-28 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:54:05 - End Time 2025-03-28 22:54:05 [2025-03-28 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784690', 'tblTempUsageDetail_20' ) start [2025-03-28 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784690', 'tblTempUsageDetail_20' ) end [2025-03-28 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784690', 'tblTempVendorCDR_20' ) start [2025-03-28 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784690', 'tblTempVendorCDR_20' ) end [2025-03-28 22:54:18] Production.INFO: ProcessCDR(1,14784690,1,1,2) [2025-03-28 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784690', 'tblTempUsageDetail_20' ) start [2025-03-28 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784690', 'tblTempUsageDetail_20' ) end [2025-03-28 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:54:22] Production.INFO: ==23383== Releasing lock... [2025-03-28 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:54:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-28 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:55:05 [end_date_ymd] => 2025-03-28 22:55:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:55:05' and `end` < '2025-03-28 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-28 22:55:18] Production.INFO: count ==1939 [2025-03-28 22:55:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:55:05 - End Time 2025-03-28 22:55:05 [2025-03-28 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784695', 'tblTempUsageDetail_20' ) start [2025-03-28 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784695', 'tblTempUsageDetail_20' ) end [2025-03-28 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784695', 'tblTempVendorCDR_20' ) start [2025-03-28 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784695', 'tblTempVendorCDR_20' ) end [2025-03-28 22:55:19] Production.INFO: ProcessCDR(1,14784695,1,1,2) [2025-03-28 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784695', 'tblTempUsageDetail_20' ) start [2025-03-28 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784695', 'tblTempUsageDetail_20' ) end [2025-03-28 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:55:23] Production.INFO: ==23462== Releasing lock... [2025-03-28 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:55:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-28 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:56:06 [end_date_ymd] => 2025-03-28 22:56:06 [RateCDR] => 1 ) [2025-03-28 22:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:56:06' and `end` < '2025-03-28 22:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:56:18] Production.INFO: count ==1938 [2025-03-28 22:56:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:56:06 - End Time 2025-03-28 22:56:06 [2025-03-28 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784700', 'tblTempUsageDetail_20' ) start [2025-03-28 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784700', 'tblTempUsageDetail_20' ) end [2025-03-28 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784700', 'tblTempVendorCDR_20' ) start [2025-03-28 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784700', 'tblTempVendorCDR_20' ) end [2025-03-28 22:56:19] Production.INFO: ProcessCDR(1,14784700,1,1,2) [2025-03-28 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784700', 'tblTempUsageDetail_20' ) start [2025-03-28 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784700', 'tblTempUsageDetail_20' ) end [2025-03-28 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:56:23] Production.INFO: ==23545== Releasing lock... [2025-03-28 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:56:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-28 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:57:05 [end_date_ymd] => 2025-03-28 22:57:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:57:05' and `end` < '2025-03-28 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-28 22:57:18] Production.INFO: count ==1939 [2025-03-28 22:57:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:57:05 - End Time 2025-03-28 22:57:05 [2025-03-28 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784705', 'tblTempUsageDetail_20' ) start [2025-03-28 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784705', 'tblTempUsageDetail_20' ) end [2025-03-28 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784705', 'tblTempVendorCDR_20' ) start [2025-03-28 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784705', 'tblTempVendorCDR_20' ) end [2025-03-28 22:57:19] Production.INFO: ProcessCDR(1,14784705,1,1,2) [2025-03-28 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784705', 'tblTempUsageDetail_20' ) start [2025-03-28 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784705', 'tblTempUsageDetail_20' ) end [2025-03-28 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:57:22] Production.INFO: ==23628== Releasing lock... [2025-03-28 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:57:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-28 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:58:06 [end_date_ymd] => 2025-03-28 22:58:06 [RateCDR] => 1 ) [2025-03-28 22:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 19:58:06' and `end` < '2025-03-28 22:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 22:58:19] Production.INFO: count ==1939 [2025-03-28 22:58:19] Production.ERROR: pbx CDR StartTime 2025-03-28 19:58:06 - End Time 2025-03-28 22:58:06 [2025-03-28 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784710', 'tblTempUsageDetail_20' ) start [2025-03-28 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784710', 'tblTempUsageDetail_20' ) end [2025-03-28 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784710', 'tblTempVendorCDR_20' ) start [2025-03-28 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784710', 'tblTempVendorCDR_20' ) end [2025-03-28 22:58:19] Production.INFO: ProcessCDR(1,14784710,1,1,2) [2025-03-28 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784710', 'tblTempUsageDetail_20' ) start [2025-03-28 22:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784710', 'tblTempUsageDetail_20' ) end [2025-03-28 22:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:58:24] Production.INFO: ==23712== Releasing lock... [2025-03-28 22:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:58:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-28 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 19:59:05 [end_date_ymd] => 2025-03-28 22:59:05 [RateCDR] => 1 ) [2025-03-28 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-28 19:59:05' and `end` < '2025-03-28 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-28 22:59:17] Production.INFO: count ==1914 [2025-03-28 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-28 19:59:05 - End Time 2025-03-28 22:59:05 [2025-03-28 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784715', 'tblTempUsageDetail_20' ) start [2025-03-28 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784715', 'tblTempUsageDetail_20' ) end [2025-03-28 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784715', 'tblTempVendorCDR_20' ) start [2025-03-28 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784715', 'tblTempVendorCDR_20' ) end [2025-03-28 22:59:18] Production.INFO: ProcessCDR(1,14784715,1,1,2) [2025-03-28 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784715', 'tblTempUsageDetail_20' ) start [2025-03-28 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784715', 'tblTempUsageDetail_20' ) end [2025-03-28 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 22:59:22] Production.INFO: ==23795== Releasing lock... [2025-03-28 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 22:59:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-28 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:00:07 [end_date_ymd] => 2025-03-28 23:00:07 [RateCDR] => 1 ) [2025-03-28 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-28 20:00:07' and `end` < '2025-03-28 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-28 23:00:20] Production.INFO: count ==1905 [2025-03-28 23:00:20] Production.ERROR: pbx CDR StartTime 2025-03-28 20:00:07 - End Time 2025-03-28 23:00:07 [2025-03-28 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784721', 'tblTempUsageDetail_20' ) start [2025-03-28 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784721', 'tblTempUsageDetail_20' ) end [2025-03-28 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784721', 'tblTempVendorCDR_20' ) start [2025-03-28 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784721', 'tblTempVendorCDR_20' ) end [2025-03-28 23:00:20] Production.INFO: ProcessCDR(1,14784721,1,1,2) [2025-03-28 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784721', 'tblTempUsageDetail_20' ) start [2025-03-28 23:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784721', 'tblTempUsageDetail_20' ) end [2025-03-28 23:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:00:25] Production.INFO: ==23879== Releasing lock... [2025-03-28 23:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:00:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-28 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:01:05 [end_date_ymd] => 2025-03-28 23:01:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:01:05' and `end` < '2025-03-28 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-28 23:01:17] Production.INFO: count ==1843 [2025-03-28 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:01:05 - End Time 2025-03-28 23:01:05 [2025-03-28 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784726', 'tblTempUsageDetail_20' ) start [2025-03-28 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784726', 'tblTempUsageDetail_20' ) end [2025-03-28 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784726', 'tblTempVendorCDR_20' ) start [2025-03-28 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784726', 'tblTempVendorCDR_20' ) end [2025-03-28 23:01:18] Production.INFO: ProcessCDR(1,14784726,1,1,2) [2025-03-28 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784726', 'tblTempUsageDetail_20' ) start [2025-03-28 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784726', 'tblTempUsageDetail_20' ) end [2025-03-28 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:01:23] Production.INFO: ==24054== Releasing lock... [2025-03-28 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:01:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-28 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:02:05 [end_date_ymd] => 2025-03-28 23:02:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:02:05' and `end` < '2025-03-28 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-28 23:02:18] Production.INFO: count ==1829 [2025-03-28 23:02:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:02:05 - End Time 2025-03-28 23:02:05 [2025-03-28 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784731', 'tblTempUsageDetail_20' ) start [2025-03-28 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784731', 'tblTempUsageDetail_20' ) end [2025-03-28 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784731', 'tblTempVendorCDR_20' ) start [2025-03-28 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784731', 'tblTempVendorCDR_20' ) end [2025-03-28 23:02:19] Production.INFO: ProcessCDR(1,14784731,1,1,2) [2025-03-28 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784731', 'tblTempUsageDetail_20' ) start [2025-03-28 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784731', 'tblTempUsageDetail_20' ) end [2025-03-28 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:02:22] Production.INFO: ==24134== Releasing lock... [2025-03-28 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:02:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-28 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:03:05 [end_date_ymd] => 2025-03-28 23:03:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:03:05' and `end` < '2025-03-28 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-28 23:03:17] Production.INFO: count ==1826 [2025-03-28 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:03:05 - End Time 2025-03-28 23:03:05 [2025-03-28 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784736', 'tblTempUsageDetail_20' ) start [2025-03-28 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784736', 'tblTempUsageDetail_20' ) end [2025-03-28 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784736', 'tblTempVendorCDR_20' ) start [2025-03-28 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784736', 'tblTempVendorCDR_20' ) end [2025-03-28 23:03:18] Production.INFO: ProcessCDR(1,14784736,1,1,2) [2025-03-28 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784736', 'tblTempUsageDetail_20' ) start [2025-03-28 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784736', 'tblTempUsageDetail_20' ) end [2025-03-28 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:03:21] Production.INFO: ==24212== Releasing lock... [2025-03-28 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:03:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-28 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:04:05 [end_date_ymd] => 2025-03-28 23:04:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:04:05' and `end` < '2025-03-28 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-28 23:04:18] Production.INFO: count ==1830 [2025-03-28 23:04:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:04:05 - End Time 2025-03-28 23:04:05 [2025-03-28 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784741', 'tblTempUsageDetail_20' ) start [2025-03-28 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784741', 'tblTempUsageDetail_20' ) end [2025-03-28 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784741', 'tblTempVendorCDR_20' ) start [2025-03-28 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784741', 'tblTempVendorCDR_20' ) end [2025-03-28 23:04:19] Production.INFO: ProcessCDR(1,14784741,1,1,2) [2025-03-28 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784741', 'tblTempUsageDetail_20' ) start [2025-03-28 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784741', 'tblTempUsageDetail_20' ) end [2025-03-28 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:04:22] Production.INFO: ==24298== Releasing lock... [2025-03-28 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:04:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-28 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:05:05 [end_date_ymd] => 2025-03-28 23:05:05 [RateCDR] => 1 ) [2025-03-28 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:05:05' and `end` < '2025-03-28 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:05:17] Production.INFO: count ==1827 [2025-03-28 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:05:05 - End Time 2025-03-28 23:05:05 [2025-03-28 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784746', 'tblTempUsageDetail_20' ) start [2025-03-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784746', 'tblTempUsageDetail_20' ) end [2025-03-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784746', 'tblTempVendorCDR_20' ) start [2025-03-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784746', 'tblTempVendorCDR_20' ) end [2025-03-28 23:05:18] Production.INFO: ProcessCDR(1,14784746,1,1,2) [2025-03-28 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784746', 'tblTempUsageDetail_20' ) start [2025-03-28 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784746', 'tblTempUsageDetail_20' ) end [2025-03-28 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:05:22] Production.INFO: ==24455== Releasing lock... [2025-03-28 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:05:22] Production.INFO: 42 MB #Memory Used# [2025-03-28 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:06:05 [end_date_ymd] => 2025-03-28 23:06:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:06:05' and `end` < '2025-03-28 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-28 23:06:18] Production.INFO: count ==1828 [2025-03-28 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:06:05 - End Time 2025-03-28 23:06:05 [2025-03-28 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784751', 'tblTempUsageDetail_20' ) start [2025-03-28 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784751', 'tblTempUsageDetail_20' ) end [2025-03-28 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784751', 'tblTempVendorCDR_20' ) start [2025-03-28 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784751', 'tblTempVendorCDR_20' ) end [2025-03-28 23:06:18] Production.INFO: ProcessCDR(1,14784751,1,1,2) [2025-03-28 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784751', 'tblTempUsageDetail_20' ) start [2025-03-28 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784751', 'tblTempUsageDetail_20' ) end [2025-03-28 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:06:23] Production.INFO: ==24538== Releasing lock... [2025-03-28 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:06:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-28 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:07:05 [end_date_ymd] => 2025-03-28 23:07:05 [RateCDR] => 1 ) [2025-03-28 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:07:05' and `end` < '2025-03-28 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:07:18] Production.INFO: count ==1811 [2025-03-28 23:07:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:07:05 - End Time 2025-03-28 23:07:05 [2025-03-28 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784756', 'tblTempUsageDetail_20' ) start [2025-03-28 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784756', 'tblTempUsageDetail_20' ) end [2025-03-28 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784756', 'tblTempVendorCDR_20' ) start [2025-03-28 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784756', 'tblTempVendorCDR_20' ) end [2025-03-28 23:07:19] Production.INFO: ProcessCDR(1,14784756,1,1,2) [2025-03-28 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784756', 'tblTempUsageDetail_20' ) start [2025-03-28 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784756', 'tblTempUsageDetail_20' ) end [2025-03-28 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:07:22] Production.INFO: ==24654== Releasing lock... [2025-03-28 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:07:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:08:06 [end_date_ymd] => 2025-03-28 23:08:06 [RateCDR] => 1 ) [2025-03-28 23: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-28 20:08:06' and `end` < '2025-03-28 23: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-28 23:08:18] Production.INFO: count ==1805 [2025-03-28 23:08:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:08:06 - End Time 2025-03-28 23:08:06 [2025-03-28 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784761', 'tblTempUsageDetail_20' ) start [2025-03-28 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784761', 'tblTempUsageDetail_20' ) end [2025-03-28 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784761', 'tblTempVendorCDR_20' ) start [2025-03-28 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784761', 'tblTempVendorCDR_20' ) end [2025-03-28 23:08:19] Production.INFO: ProcessCDR(1,14784761,1,1,2) [2025-03-28 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784761', 'tblTempUsageDetail_20' ) start [2025-03-28 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784761', 'tblTempUsageDetail_20' ) end [2025-03-28 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:08:22] Production.INFO: ==24814== Releasing lock... [2025-03-28 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:08:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:09:06 [end_date_ymd] => 2025-03-28 23:09:06 [RateCDR] => 1 ) [2025-03-28 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-28 20:09:06' and `end` < '2025-03-28 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-28 23:09:18] Production.INFO: count ==1805 [2025-03-28 23:09:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:09:06 - End Time 2025-03-28 23:09:06 [2025-03-28 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784766', 'tblTempUsageDetail_20' ) start [2025-03-28 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784766', 'tblTempUsageDetail_20' ) end [2025-03-28 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784766', 'tblTempVendorCDR_20' ) start [2025-03-28 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784766', 'tblTempVendorCDR_20' ) end [2025-03-28 23:09:19] Production.INFO: ProcessCDR(1,14784766,1,1,2) [2025-03-28 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784766', 'tblTempUsageDetail_20' ) start [2025-03-28 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784766', 'tblTempUsageDetail_20' ) end [2025-03-28 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:09:22] Production.INFO: ==24894== Releasing lock... [2025-03-28 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:09:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:10:06 [end_date_ymd] => 2025-03-28 23:10:06 [RateCDR] => 1 ) [2025-03-28 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-28 20:10:06' and `end` < '2025-03-28 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-28 23:10:19] Production.INFO: count ==1805 [2025-03-28 23:10:20] Production.ERROR: pbx CDR StartTime 2025-03-28 20:10:06 - End Time 2025-03-28 23:10:06 [2025-03-28 23:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784771', 'tblTempUsageDetail_20' ) start [2025-03-28 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784771', 'tblTempUsageDetail_20' ) end [2025-03-28 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784771', 'tblTempVendorCDR_20' ) start [2025-03-28 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784771', 'tblTempVendorCDR_20' ) end [2025-03-28 23:10:20] Production.INFO: ProcessCDR(1,14784771,1,1,2) [2025-03-28 23:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784771', 'tblTempUsageDetail_20' ) start [2025-03-28 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784771', 'tblTempUsageDetail_20' ) end [2025-03-28 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:10:23] Production.INFO: ==24974== Releasing lock... [2025-03-28 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:10:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-28 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:11:05 [end_date_ymd] => 2025-03-28 23:11:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:11:05' and `end` < '2025-03-28 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-28 23:11:18] Production.INFO: count ==1783 [2025-03-28 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:11:05 - End Time 2025-03-28 23:11:05 [2025-03-28 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784777', 'tblTempUsageDetail_20' ) start [2025-03-28 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784777', 'tblTempUsageDetail_20' ) end [2025-03-28 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784777', 'tblTempVendorCDR_20' ) start [2025-03-28 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784777', 'tblTempVendorCDR_20' ) end [2025-03-28 23:11:18] Production.INFO: ProcessCDR(1,14784777,1,1,2) [2025-03-28 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784777', 'tblTempUsageDetail_20' ) start [2025-03-28 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784777', 'tblTempUsageDetail_20' ) end [2025-03-28 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:11:22] Production.INFO: ==25057== Releasing lock... [2025-03-28 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:11:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-28 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:12:05 [end_date_ymd] => 2025-03-28 23:12:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:12:05' and `end` < '2025-03-28 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-28 23:12:18] Production.INFO: count ==1802 [2025-03-28 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:12:05 - End Time 2025-03-28 23:12:05 [2025-03-28 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784782', 'tblTempUsageDetail_20' ) start [2025-03-28 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784782', 'tblTempUsageDetail_20' ) end [2025-03-28 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784782', 'tblTempVendorCDR_20' ) start [2025-03-28 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784782', 'tblTempVendorCDR_20' ) end [2025-03-28 23:12:19] Production.INFO: ProcessCDR(1,14784782,1,1,2) [2025-03-28 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784782', 'tblTempUsageDetail_20' ) start [2025-03-28 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784782', 'tblTempUsageDetail_20' ) end [2025-03-28 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:12:22] Production.INFO: ==25217== Releasing lock... [2025-03-28 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:12:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-28 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:13:05 [end_date_ymd] => 2025-03-28 23:13:05 [RateCDR] => 1 ) [2025-03-28 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:13:05' and `end` < '2025-03-28 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:13:18] Production.INFO: count ==1802 [2025-03-28 23:13:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:13:05 - End Time 2025-03-28 23:13:05 [2025-03-28 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784787', 'tblTempUsageDetail_20' ) start [2025-03-28 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784787', 'tblTempUsageDetail_20' ) end [2025-03-28 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784787', 'tblTempVendorCDR_20' ) start [2025-03-28 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784787', 'tblTempVendorCDR_20' ) end [2025-03-28 23:13:19] Production.INFO: ProcessCDR(1,14784787,1,1,2) [2025-03-28 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784787', 'tblTempUsageDetail_20' ) start [2025-03-28 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784787', 'tblTempUsageDetail_20' ) end [2025-03-28 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:13:22] Production.INFO: ==25297== Releasing lock... [2025-03-28 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:13:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:14:05 [end_date_ymd] => 2025-03-28 23:14:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:14:05' and `end` < '2025-03-28 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-28 23:14:17] Production.INFO: count ==1796 [2025-03-28 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:14:05 - End Time 2025-03-28 23:14:05 [2025-03-28 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784792', 'tblTempUsageDetail_20' ) start [2025-03-28 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784792', 'tblTempUsageDetail_20' ) end [2025-03-28 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784792', 'tblTempVendorCDR_20' ) start [2025-03-28 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784792', 'tblTempVendorCDR_20' ) end [2025-03-28 23:14:18] Production.INFO: ProcessCDR(1,14784792,1,1,2) [2025-03-28 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784792', 'tblTempUsageDetail_20' ) start [2025-03-28 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784792', 'tblTempUsageDetail_20' ) end [2025-03-28 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:14:21] Production.INFO: ==25371== Releasing lock... [2025-03-28 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:14:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-28 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:15:05 [end_date_ymd] => 2025-03-28 23:15:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:15:05' and `end` < '2025-03-28 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-28 23:15:18] Production.INFO: count ==1803 [2025-03-28 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:15:05 - End Time 2025-03-28 23:15:05 [2025-03-28 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784797', 'tblTempUsageDetail_20' ) start [2025-03-28 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784797', 'tblTempUsageDetail_20' ) end [2025-03-28 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784797', 'tblTempVendorCDR_20' ) start [2025-03-28 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784797', 'tblTempVendorCDR_20' ) end [2025-03-28 23:15:18] Production.INFO: ProcessCDR(1,14784797,1,1,2) [2025-03-28 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784797', 'tblTempUsageDetail_20' ) start [2025-03-28 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784797', 'tblTempUsageDetail_20' ) end [2025-03-28 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:15:22] Production.INFO: ==25532== Releasing lock... [2025-03-28 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:15:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-28 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:16:05 [end_date_ymd] => 2025-03-28 23:16:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:16:05' and `end` < '2025-03-28 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-28 23:16:18] Production.INFO: count ==1809 [2025-03-28 23:16:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:16:05 - End Time 2025-03-28 23:16:05 [2025-03-28 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784802', 'tblTempUsageDetail_20' ) start [2025-03-28 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784802', 'tblTempUsageDetail_20' ) end [2025-03-28 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784802', 'tblTempVendorCDR_20' ) start [2025-03-28 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784802', 'tblTempVendorCDR_20' ) end [2025-03-28 23:16:18] Production.INFO: ProcessCDR(1,14784802,1,1,2) [2025-03-28 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784802', 'tblTempUsageDetail_20' ) start [2025-03-28 23:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784802', 'tblTempUsageDetail_20' ) end [2025-03-28 23:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:16:24] Production.INFO: ==25610== Releasing lock... [2025-03-28 23:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:16:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-28 23:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:17:06 [end_date_ymd] => 2025-03-28 23:17:06 [RateCDR] => 1 ) [2025-03-28 23:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:17:06' and `end` < '2025-03-28 23:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:17:18] Production.INFO: count ==1787 [2025-03-28 23:17:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:17:06 - End Time 2025-03-28 23:17:06 [2025-03-28 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784807', 'tblTempUsageDetail_20' ) start [2025-03-28 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784807', 'tblTempUsageDetail_20' ) end [2025-03-28 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784807', 'tblTempVendorCDR_20' ) start [2025-03-28 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784807', 'tblTempVendorCDR_20' ) end [2025-03-28 23:17:19] Production.INFO: ProcessCDR(1,14784807,1,1,2) [2025-03-28 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784807', 'tblTempUsageDetail_20' ) start [2025-03-28 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784807', 'tblTempUsageDetail_20' ) end [2025-03-28 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:17:22] Production.INFO: ==25685== Releasing lock... [2025-03-28 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:17:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-28 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:18:05 [end_date_ymd] => 2025-03-28 23:18:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:18:05' and `end` < '2025-03-28 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-28 23:18:18] Production.INFO: count ==1781 [2025-03-28 23:18:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:18:05 - End Time 2025-03-28 23:18:05 [2025-03-28 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784812', 'tblTempUsageDetail_20' ) start [2025-03-28 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784812', 'tblTempUsageDetail_20' ) end [2025-03-28 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784812', 'tblTempVendorCDR_20' ) start [2025-03-28 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784812', 'tblTempVendorCDR_20' ) end [2025-03-28 23:18:19] Production.INFO: ProcessCDR(1,14784812,1,1,2) [2025-03-28 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784812', 'tblTempUsageDetail_20' ) start [2025-03-28 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784812', 'tblTempUsageDetail_20' ) end [2025-03-28 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:18:22] Production.INFO: ==25760== Releasing lock... [2025-03-28 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:18:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-28 23:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:19:06 [end_date_ymd] => 2025-03-28 23:19:06 [RateCDR] => 1 ) [2025-03-28 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-28 20:19:06' and `end` < '2025-03-28 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-28 23:19:18] Production.INFO: count ==1775 [2025-03-28 23:19:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:19:06 - End Time 2025-03-28 23:19:06 [2025-03-28 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784817', 'tblTempUsageDetail_20' ) start [2025-03-28 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784817', 'tblTempUsageDetail_20' ) end [2025-03-28 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784817', 'tblTempVendorCDR_20' ) start [2025-03-28 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784817', 'tblTempVendorCDR_20' ) end [2025-03-28 23:19:19] Production.INFO: ProcessCDR(1,14784817,1,1,2) [2025-03-28 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784817', 'tblTempUsageDetail_20' ) start [2025-03-28 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784817', 'tblTempUsageDetail_20' ) end [2025-03-28 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:19:23] Production.INFO: ==25833== Releasing lock... [2025-03-28 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:19:23] Production.INFO: 41 MB #Memory Used# [2025-03-28 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:20:06 [end_date_ymd] => 2025-03-28 23:20:06 [RateCDR] => 1 ) [2025-03-28 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:20:06' and `end` < '2025-03-28 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:20:18] Production.INFO: count ==1782 [2025-03-28 23:20:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:20:06 - End Time 2025-03-28 23:20:06 [2025-03-28 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784823', 'tblTempUsageDetail_20' ) start [2025-03-28 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784823', 'tblTempUsageDetail_20' ) end [2025-03-28 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784823', 'tblTempVendorCDR_20' ) start [2025-03-28 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784823', 'tblTempVendorCDR_20' ) end [2025-03-28 23:20:19] Production.INFO: ProcessCDR(1,14784823,1,1,2) [2025-03-28 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784823', 'tblTempUsageDetail_20' ) start [2025-03-28 23:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784823', 'tblTempUsageDetail_20' ) end [2025-03-28 23:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:20:24] Production.INFO: ==25910== Releasing lock... [2025-03-28 23:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:20:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-28 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:21:06 [end_date_ymd] => 2025-03-28 23:21:06 [RateCDR] => 1 ) [2025-03-28 23:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:21:06' and `end` < '2025-03-28 23:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:21:18] Production.INFO: count ==1776 [2025-03-28 23:21:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:21:06 - End Time 2025-03-28 23:21:06 [2025-03-28 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784828', 'tblTempUsageDetail_20' ) start [2025-03-28 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784828', 'tblTempUsageDetail_20' ) end [2025-03-28 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784828', 'tblTempVendorCDR_20' ) start [2025-03-28 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784828', 'tblTempVendorCDR_20' ) end [2025-03-28 23:21:19] Production.INFO: ProcessCDR(1,14784828,1,1,2) [2025-03-28 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784828', 'tblTempUsageDetail_20' ) start [2025-03-28 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784828', 'tblTempUsageDetail_20' ) end [2025-03-28 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:21:22] Production.INFO: ==25986== Releasing lock... [2025-03-28 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:21:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:22:05 [end_date_ymd] => 2025-03-28 23:22:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:22:05' and `end` < '2025-03-28 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-28 23:22:18] Production.INFO: count ==1783 [2025-03-28 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:22:05 - End Time 2025-03-28 23:22:05 [2025-03-28 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784833', 'tblTempUsageDetail_20' ) start [2025-03-28 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784833', 'tblTempUsageDetail_20' ) end [2025-03-28 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784833', 'tblTempVendorCDR_20' ) start [2025-03-28 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784833', 'tblTempVendorCDR_20' ) end [2025-03-28 23:22:18] Production.INFO: ProcessCDR(1,14784833,1,1,2) [2025-03-28 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784833', 'tblTempUsageDetail_20' ) start [2025-03-28 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784833', 'tblTempUsageDetail_20' ) end [2025-03-28 23:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:22:23] Production.INFO: ==26100== Releasing lock... [2025-03-28 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:22:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-28 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:23:05 [end_date_ymd] => 2025-03-28 23:23:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:23:05' and `end` < '2025-03-28 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-28 23:23:18] Production.INFO: count ==1783 [2025-03-28 23:23:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:23:05 - End Time 2025-03-28 23:23:05 [2025-03-28 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784838', 'tblTempUsageDetail_20' ) start [2025-03-28 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784838', 'tblTempUsageDetail_20' ) end [2025-03-28 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784838', 'tblTempVendorCDR_20' ) start [2025-03-28 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784838', 'tblTempVendorCDR_20' ) end [2025-03-28 23:23:19] Production.INFO: ProcessCDR(1,14784838,1,1,2) [2025-03-28 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784838', 'tblTempUsageDetail_20' ) start [2025-03-28 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784838', 'tblTempUsageDetail_20' ) end [2025-03-28 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:23:22] Production.INFO: ==26174== Releasing lock... [2025-03-28 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:23:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-28 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:24:05 [end_date_ymd] => 2025-03-28 23:24:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:24:05' and `end` < '2025-03-28 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-28 23:24:17] Production.INFO: count ==1782 [2025-03-28 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:24:05 - End Time 2025-03-28 23:24:05 [2025-03-28 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784843', 'tblTempUsageDetail_20' ) start [2025-03-28 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784843', 'tblTempUsageDetail_20' ) end [2025-03-28 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784843', 'tblTempVendorCDR_20' ) start [2025-03-28 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784843', 'tblTempVendorCDR_20' ) end [2025-03-28 23:24:18] Production.INFO: ProcessCDR(1,14784843,1,1,2) [2025-03-28 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784843', 'tblTempUsageDetail_20' ) start [2025-03-28 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784843', 'tblTempUsageDetail_20' ) end [2025-03-28 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:24:21] Production.INFO: ==26256== Releasing lock... [2025-03-28 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:24:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-28 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:25:05 [end_date_ymd] => 2025-03-28 23:25:05 [RateCDR] => 1 ) [2025-03-28 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:25:05' and `end` < '2025-03-28 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:25:18] Production.INFO: count ==1780 [2025-03-28 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:25:05 - End Time 2025-03-28 23:25:05 [2025-03-28 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784848', 'tblTempUsageDetail_20' ) start [2025-03-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784848', 'tblTempUsageDetail_20' ) end [2025-03-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784848', 'tblTempVendorCDR_20' ) start [2025-03-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784848', 'tblTempVendorCDR_20' ) end [2025-03-28 23:25:18] Production.INFO: ProcessCDR(1,14784848,1,1,2) [2025-03-28 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784848', 'tblTempUsageDetail_20' ) start [2025-03-28 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784848', 'tblTempUsageDetail_20' ) end [2025-03-28 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:25:22] Production.INFO: ==26333== Releasing lock... [2025-03-28 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:25:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-28 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:26:05 [end_date_ymd] => 2025-03-28 23:26:05 [RateCDR] => 1 ) [2025-03-28 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:26:05' and `end` < '2025-03-28 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:26:17] Production.INFO: count ==1769 [2025-03-28 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:26:05 - End Time 2025-03-28 23:26:05 [2025-03-28 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784853', 'tblTempUsageDetail_20' ) start [2025-03-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784853', 'tblTempUsageDetail_20' ) end [2025-03-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784853', 'tblTempVendorCDR_20' ) start [2025-03-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784853', 'tblTempVendorCDR_20' ) end [2025-03-28 23:26:18] Production.INFO: ProcessCDR(1,14784853,1,1,2) [2025-03-28 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784853', 'tblTempUsageDetail_20' ) start [2025-03-28 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784853', 'tblTempUsageDetail_20' ) end [2025-03-28 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:26:21] Production.INFO: ==26414== Releasing lock... [2025-03-28 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:26:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:27:05 [end_date_ymd] => 2025-03-28 23:27:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:27:05' and `end` < '2025-03-28 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-28 23:27:18] Production.INFO: count ==1765 [2025-03-28 23:27:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:27:05 - End Time 2025-03-28 23:27:05 [2025-03-28 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784858', 'tblTempUsageDetail_20' ) start [2025-03-28 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784858', 'tblTempUsageDetail_20' ) end [2025-03-28 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784858', 'tblTempVendorCDR_20' ) start [2025-03-28 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784858', 'tblTempVendorCDR_20' ) end [2025-03-28 23:27:19] Production.INFO: ProcessCDR(1,14784858,1,1,2) [2025-03-28 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784858', 'tblTempUsageDetail_20' ) start [2025-03-28 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784858', 'tblTempUsageDetail_20' ) end [2025-03-28 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:27:22] Production.INFO: ==26487== Releasing lock... [2025-03-28 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:27:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:28:05 [end_date_ymd] => 2025-03-28 23:28:05 [RateCDR] => 1 ) [2025-03-28 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:28:05' and `end` < '2025-03-28 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:28:17] Production.INFO: count ==1765 [2025-03-28 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:28:05 - End Time 2025-03-28 23:28:05 [2025-03-28 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784863', 'tblTempUsageDetail_20' ) start [2025-03-28 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784863', 'tblTempUsageDetail_20' ) end [2025-03-28 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784863', 'tblTempVendorCDR_20' ) start [2025-03-28 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784863', 'tblTempVendorCDR_20' ) end [2025-03-28 23:28:18] Production.INFO: ProcessCDR(1,14784863,1,1,2) [2025-03-28 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784863', 'tblTempUsageDetail_20' ) start [2025-03-28 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784863', 'tblTempUsageDetail_20' ) end [2025-03-28 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:28:21] Production.INFO: ==26567== Releasing lock... [2025-03-28 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:28:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:29:05 [end_date_ymd] => 2025-03-28 23:29:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:29:05' and `end` < '2025-03-28 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-28 23:29:18] Production.INFO: count ==1756 [2025-03-28 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:29:05 - End Time 2025-03-28 23:29:05 [2025-03-28 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784868', 'tblTempUsageDetail_20' ) start [2025-03-28 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784868', 'tblTempUsageDetail_20' ) end [2025-03-28 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784868', 'tblTempVendorCDR_20' ) start [2025-03-28 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784868', 'tblTempVendorCDR_20' ) end [2025-03-28 23:29:18] Production.INFO: ProcessCDR(1,14784868,1,1,2) [2025-03-28 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784868', 'tblTempUsageDetail_20' ) start [2025-03-28 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784868', 'tblTempUsageDetail_20' ) end [2025-03-28 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:29:22] Production.INFO: ==26640== Releasing lock... [2025-03-28 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:29:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 23:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:30:06 [end_date_ymd] => 2025-03-28 23:30:06 [RateCDR] => 1 ) [2025-03-28 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-28 20:30:06' and `end` < '2025-03-28 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:30:19] Production.INFO: count ==1766 [2025-03-28 23:30:20] Production.ERROR: pbx CDR StartTime 2025-03-28 20:30:06 - End Time 2025-03-28 23:30:06 [2025-03-28 23:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784873', 'tblTempUsageDetail_20' ) start [2025-03-28 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784873', 'tblTempUsageDetail_20' ) end [2025-03-28 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784873', 'tblTempVendorCDR_20' ) start [2025-03-28 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784873', 'tblTempVendorCDR_20' ) end [2025-03-28 23:30:20] Production.INFO: ProcessCDR(1,14784873,1,1,2) [2025-03-28 23:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784873', 'tblTempUsageDetail_20' ) start [2025-03-28 23:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784873', 'tblTempUsageDetail_20' ) end [2025-03-28 23:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:30:25] Production.INFO: ==26720== Releasing lock... [2025-03-28 23:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:30:25] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:31:05 [end_date_ymd] => 2025-03-28 23:31:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:31:05' and `end` < '2025-03-28 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-28 23:31:17] Production.INFO: count ==1722 [2025-03-28 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:31:05 - End Time 2025-03-28 23:31:05 [2025-03-28 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784879', 'tblTempUsageDetail_20' ) start [2025-03-28 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784879', 'tblTempUsageDetail_20' ) end [2025-03-28 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784879', 'tblTempVendorCDR_20' ) start [2025-03-28 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784879', 'tblTempVendorCDR_20' ) end [2025-03-28 23:31:18] Production.INFO: ProcessCDR(1,14784879,1,1,2) [2025-03-28 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784879', 'tblTempUsageDetail_20' ) start [2025-03-28 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784879', 'tblTempUsageDetail_20' ) end [2025-03-28 23:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:31:23] Production.INFO: ==26797== Releasing lock... [2025-03-28 23:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:31:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:32:06 [end_date_ymd] => 2025-03-28 23:32:06 [RateCDR] => 1 ) [2025-03-28 23: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-28 20:32:06' and `end` < '2025-03-28 23: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-28 23:32:18] Production.INFO: count ==1710 [2025-03-28 23:32:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:32:06 - End Time 2025-03-28 23:32:06 [2025-03-28 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784884', 'tblTempUsageDetail_20' ) start [2025-03-28 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784884', 'tblTempUsageDetail_20' ) end [2025-03-28 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784884', 'tblTempVendorCDR_20' ) start [2025-03-28 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784884', 'tblTempVendorCDR_20' ) end [2025-03-28 23:32:19] Production.INFO: ProcessCDR(1,14784884,1,1,2) [2025-03-28 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784884', 'tblTempUsageDetail_20' ) start [2025-03-28 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784884', 'tblTempUsageDetail_20' ) end [2025-03-28 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:32:22] Production.INFO: ==26868== Releasing lock... [2025-03-28 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:32:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-28 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:33:05 [end_date_ymd] => 2025-03-28 23:33:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:33:05' and `end` < '2025-03-28 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-28 23:33:18] Production.INFO: count ==1705 [2025-03-28 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:33:05 - End Time 2025-03-28 23:33:05 [2025-03-28 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784889', 'tblTempUsageDetail_20' ) start [2025-03-28 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784889', 'tblTempUsageDetail_20' ) end [2025-03-28 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784889', 'tblTempVendorCDR_20' ) start [2025-03-28 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784889', 'tblTempVendorCDR_20' ) end [2025-03-28 23:33:18] Production.INFO: ProcessCDR(1,14784889,1,1,2) [2025-03-28 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784889', 'tblTempUsageDetail_20' ) start [2025-03-28 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784889', 'tblTempUsageDetail_20' ) end [2025-03-28 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:33:23] Production.INFO: ==26941== Releasing lock... [2025-03-28 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:33:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-28 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:34:06 [end_date_ymd] => 2025-03-28 23:34:06 [RateCDR] => 1 ) [2025-03-28 23:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:34:06' and `end` < '2025-03-28 23:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:34:18] Production.INFO: count ==1703 [2025-03-28 23:34:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:34:06 - End Time 2025-03-28 23:34:06 [2025-03-28 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784894', 'tblTempUsageDetail_20' ) start [2025-03-28 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784894', 'tblTempUsageDetail_20' ) end [2025-03-28 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784894', 'tblTempVendorCDR_20' ) start [2025-03-28 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784894', 'tblTempVendorCDR_20' ) end [2025-03-28 23:34:19] Production.INFO: ProcessCDR(1,14784894,1,1,2) [2025-03-28 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784894', 'tblTempUsageDetail_20' ) start [2025-03-28 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784894', 'tblTempUsageDetail_20' ) end [2025-03-28 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:34:22] Production.INFO: ==27015== Releasing lock... [2025-03-28 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:34:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-28 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:35:05 [end_date_ymd] => 2025-03-28 23:35:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:35:05' and `end` < '2025-03-28 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-28 23:35:18] Production.INFO: count ==1686 [2025-03-28 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:35:05 - End Time 2025-03-28 23:35:05 [2025-03-28 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784899', 'tblTempUsageDetail_20' ) start [2025-03-28 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784899', 'tblTempUsageDetail_20' ) end [2025-03-28 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784899', 'tblTempVendorCDR_20' ) start [2025-03-28 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784899', 'tblTempVendorCDR_20' ) end [2025-03-28 23:35:18] Production.INFO: ProcessCDR(1,14784899,1,1,2) [2025-03-28 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784899', 'tblTempUsageDetail_20' ) start [2025-03-28 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784899', 'tblTempUsageDetail_20' ) end [2025-03-28 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:35:22] Production.INFO: ==27089== Releasing lock... [2025-03-28 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:35:22] Production.INFO: 41 MB #Memory Used# [2025-03-28 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:36:06 [end_date_ymd] => 2025-03-28 23:36:06 [RateCDR] => 1 ) [2025-03-28 23:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:36:06' and `end` < '2025-03-28 23:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:36:19] Production.INFO: count ==1687 [2025-03-28 23:36:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:36:06 - End Time 2025-03-28 23:36:06 [2025-03-28 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784904', 'tblTempUsageDetail_20' ) start [2025-03-28 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784904', 'tblTempUsageDetail_20' ) end [2025-03-28 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784904', 'tblTempVendorCDR_20' ) start [2025-03-28 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784904', 'tblTempVendorCDR_20' ) end [2025-03-28 23:36:19] Production.INFO: ProcessCDR(1,14784904,1,1,2) [2025-03-28 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784904', 'tblTempUsageDetail_20' ) start [2025-03-28 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784904', 'tblTempUsageDetail_20' ) end [2025-03-28 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:36:23] Production.INFO: ==27164== Releasing lock... [2025-03-28 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:36:23] Production.INFO: 41 MB #Memory Used# [2025-03-28 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:37:05 [end_date_ymd] => 2025-03-28 23:37:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:37:05' and `end` < '2025-03-28 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-28 23:37:18] Production.INFO: count ==1682 [2025-03-28 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:37:05 - End Time 2025-03-28 23:37:05 [2025-03-28 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784909', 'tblTempUsageDetail_20' ) start [2025-03-28 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784909', 'tblTempUsageDetail_20' ) end [2025-03-28 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784909', 'tblTempVendorCDR_20' ) start [2025-03-28 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784909', 'tblTempVendorCDR_20' ) end [2025-03-28 23:37:18] Production.INFO: ProcessCDR(1,14784909,1,1,2) [2025-03-28 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784909', 'tblTempUsageDetail_20' ) start [2025-03-28 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784909', 'tblTempUsageDetail_20' ) end [2025-03-28 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:37:22] Production.INFO: ==27237== Releasing lock... [2025-03-28 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:37:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-28 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:38:05 [end_date_ymd] => 2025-03-28 23:38:05 [RateCDR] => 1 ) [2025-03-28 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:38:05' and `end` < '2025-03-28 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:38:18] Production.INFO: count ==1686 [2025-03-28 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:38:05 - End Time 2025-03-28 23:38:05 [2025-03-28 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784914', 'tblTempUsageDetail_20' ) start [2025-03-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784914', 'tblTempUsageDetail_20' ) end [2025-03-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784914', 'tblTempVendorCDR_20' ) start [2025-03-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784914', 'tblTempVendorCDR_20' ) end [2025-03-28 23:38:18] Production.INFO: ProcessCDR(1,14784914,1,1,2) [2025-03-28 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784914', 'tblTempUsageDetail_20' ) start [2025-03-28 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784914', 'tblTempUsageDetail_20' ) end [2025-03-28 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:38:24] Production.INFO: ==27351== Releasing lock... [2025-03-28 23:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:38:24] Production.INFO: 41 MB #Memory Used# [2025-03-28 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:39:04 [end_date_ymd] => 2025-03-28 23:39:04 [RateCDR] => 1 ) [2025-03-28 23: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-28 20:39:04' and `end` < '2025-03-28 23: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-28 23:39:17] Production.INFO: count ==1676 [2025-03-28 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:39:04 - End Time 2025-03-28 23:39:04 [2025-03-28 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784919', 'tblTempUsageDetail_20' ) start [2025-03-28 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784919', 'tblTempUsageDetail_20' ) end [2025-03-28 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784919', 'tblTempVendorCDR_20' ) start [2025-03-28 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784919', 'tblTempVendorCDR_20' ) end [2025-03-28 23:39:18] Production.INFO: ProcessCDR(1,14784919,1,1,2) [2025-03-28 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784919', 'tblTempUsageDetail_20' ) start [2025-03-28 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784919', 'tblTempUsageDetail_20' ) end [2025-03-28 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:39:21] Production.INFO: ==27426== Releasing lock... [2025-03-28 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:39:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-28 23:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:40:07 [end_date_ymd] => 2025-03-28 23:40:07 [RateCDR] => 1 ) [2025-03-28 23: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-28 20:40:07' and `end` < '2025-03-28 23: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-28 23:40:19] Production.INFO: count ==1645 [2025-03-28 23:40:20] Production.ERROR: pbx CDR StartTime 2025-03-28 20:40:07 - End Time 2025-03-28 23:40:07 [2025-03-28 23:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784925', 'tblTempUsageDetail_20' ) start [2025-03-28 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784925', 'tblTempUsageDetail_20' ) end [2025-03-28 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784925', 'tblTempVendorCDR_20' ) start [2025-03-28 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784925', 'tblTempVendorCDR_20' ) end [2025-03-28 23:40:20] Production.INFO: ProcessCDR(1,14784925,1,1,2) [2025-03-28 23:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784925', 'tblTempUsageDetail_20' ) start [2025-03-28 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784925', 'tblTempUsageDetail_20' ) end [2025-03-28 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:40:23] Production.INFO: ==27503== Releasing lock... [2025-03-28 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:40:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-28 23:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:41:06 [end_date_ymd] => 2025-03-28 23:41:06 [RateCDR] => 1 ) [2025-03-28 23: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-28 20:41:06' and `end` < '2025-03-28 23: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-28 23:41:18] Production.INFO: count ==1578 [2025-03-28 23:41:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:41:06 - End Time 2025-03-28 23:41:06 [2025-03-28 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784930', 'tblTempUsageDetail_20' ) start [2025-03-28 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784930', 'tblTempUsageDetail_20' ) end [2025-03-28 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784930', 'tblTempVendorCDR_20' ) start [2025-03-28 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784930', 'tblTempVendorCDR_20' ) end [2025-03-28 23:41:19] Production.INFO: ProcessCDR(1,14784930,1,1,2) [2025-03-28 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784930', 'tblTempUsageDetail_20' ) start [2025-03-28 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784930', 'tblTempUsageDetail_20' ) end [2025-03-28 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:41:22] Production.INFO: ==27579== Releasing lock... [2025-03-28 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:41:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-28 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:42:06 [end_date_ymd] => 2025-03-28 23:42:06 [RateCDR] => 1 ) [2025-03-28 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:42:06' and `end` < '2025-03-28 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:42:19] Production.INFO: count ==1571 [2025-03-28 23:42:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:42:06 - End Time 2025-03-28 23:42:06 [2025-03-28 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784935', 'tblTempUsageDetail_20' ) start [2025-03-28 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784935', 'tblTempUsageDetail_20' ) end [2025-03-28 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784935', 'tblTempVendorCDR_20' ) start [2025-03-28 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784935', 'tblTempVendorCDR_20' ) end [2025-03-28 23:42:19] Production.INFO: ProcessCDR(1,14784935,1,1,2) [2025-03-28 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784935', 'tblTempUsageDetail_20' ) start [2025-03-28 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784935', 'tblTempUsageDetail_20' ) end [2025-03-28 23:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:42:23] Production.INFO: ==27651== Releasing lock... [2025-03-28 23:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:42:23] Production.INFO: 40 MB #Memory Used# [2025-03-28 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:43:05 [end_date_ymd] => 2025-03-28 23:43:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:43:05' and `end` < '2025-03-28 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-28 23:43:18] Production.INFO: count ==1566 [2025-03-28 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:43:05 - End Time 2025-03-28 23:43:05 [2025-03-28 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784940', 'tblTempUsageDetail_20' ) start [2025-03-28 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784940', 'tblTempUsageDetail_20' ) end [2025-03-28 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784940', 'tblTempVendorCDR_20' ) start [2025-03-28 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784940', 'tblTempVendorCDR_20' ) end [2025-03-28 23:43:18] Production.INFO: ProcessCDR(1,14784940,1,1,2) [2025-03-28 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784940', 'tblTempUsageDetail_20' ) start [2025-03-28 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784940', 'tblTempUsageDetail_20' ) end [2025-03-28 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:43:22] Production.INFO: ==27729== Releasing lock... [2025-03-28 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:43:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-28 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:44:05 [end_date_ymd] => 2025-03-28 23:44:05 [RateCDR] => 1 ) [2025-03-28 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:44:05' and `end` < '2025-03-28 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:44:18] Production.INFO: count ==1565 [2025-03-28 23:44:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:44:05 - End Time 2025-03-28 23:44:05 [2025-03-28 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784945', 'tblTempUsageDetail_20' ) start [2025-03-28 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784945', 'tblTempUsageDetail_20' ) end [2025-03-28 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784945', 'tblTempVendorCDR_20' ) start [2025-03-28 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784945', 'tblTempVendorCDR_20' ) end [2025-03-28 23:44:19] Production.INFO: ProcessCDR(1,14784945,1,1,2) [2025-03-28 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784945', 'tblTempUsageDetail_20' ) start [2025-03-28 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784945', 'tblTempUsageDetail_20' ) end [2025-03-28 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:44:22] Production.INFO: ==27806== Releasing lock... [2025-03-28 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:44:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-28 23:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:45:06 [end_date_ymd] => 2025-03-28 23:45:06 [RateCDR] => 1 ) [2025-03-28 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-28 20:45:06' and `end` < '2025-03-28 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-28 23:45:19] Production.INFO: count ==1578 [2025-03-28 23:45:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:45:06 - End Time 2025-03-28 23:45:06 [2025-03-28 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784950', 'tblTempUsageDetail_20' ) start [2025-03-28 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784950', 'tblTempUsageDetail_20' ) end [2025-03-28 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784950', 'tblTempVendorCDR_20' ) start [2025-03-28 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784950', 'tblTempVendorCDR_20' ) end [2025-03-28 23:45:19] Production.INFO: ProcessCDR(1,14784950,1,1,2) [2025-03-28 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784950', 'tblTempUsageDetail_20' ) start [2025-03-28 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784950', 'tblTempUsageDetail_20' ) end [2025-03-28 23:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:45:23] Production.INFO: ==27882== Releasing lock... [2025-03-28 23:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:45:23] Production.INFO: 40 MB #Memory Used# [2025-03-28 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:46:05 [end_date_ymd] => 2025-03-28 23:46:05 [RateCDR] => 1 ) [2025-03-28 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:46:05' and `end` < '2025-03-28 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:46:18] Production.INFO: count ==1573 [2025-03-28 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:46:05 - End Time 2025-03-28 23:46:05 [2025-03-28 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784955', 'tblTempUsageDetail_20' ) start [2025-03-28 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784955', 'tblTempUsageDetail_20' ) end [2025-03-28 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784955', 'tblTempVendorCDR_20' ) start [2025-03-28 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784955', 'tblTempVendorCDR_20' ) end [2025-03-28 23:46:18] Production.INFO: ProcessCDR(1,14784955,1,1,2) [2025-03-28 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784955', 'tblTempUsageDetail_20' ) start [2025-03-28 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784955', 'tblTempUsageDetail_20' ) end [2025-03-28 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:46:22] Production.INFO: ==27956== Releasing lock... [2025-03-28 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:46:22] Production.INFO: 40 MB #Memory Used# [2025-03-28 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:47:05 [end_date_ymd] => 2025-03-28 23:47:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:47:05' and `end` < '2025-03-28 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-28 23:47:18] Production.INFO: count ==1579 [2025-03-28 23:47:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:47:05 - End Time 2025-03-28 23:47:05 [2025-03-28 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784960', 'tblTempUsageDetail_20' ) start [2025-03-28 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784960', 'tblTempUsageDetail_20' ) end [2025-03-28 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784960', 'tblTempVendorCDR_20' ) start [2025-03-28 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784960', 'tblTempVendorCDR_20' ) end [2025-03-28 23:47:19] Production.INFO: ProcessCDR(1,14784960,1,1,2) [2025-03-28 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784960', 'tblTempUsageDetail_20' ) start [2025-03-28 23:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784960', 'tblTempUsageDetail_20' ) end [2025-03-28 23:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:47:24] Production.INFO: ==28029== Releasing lock... [2025-03-28 23:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:47:24] Production.INFO: 40 MB #Memory Used# [2025-03-28 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:48:05 [end_date_ymd] => 2025-03-28 23:48:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:48:05' and `end` < '2025-03-28 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-28 23:48:18] Production.INFO: count ==1578 [2025-03-28 23:48:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:48:05 - End Time 2025-03-28 23:48:05 [2025-03-28 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784965', 'tblTempUsageDetail_20' ) start [2025-03-28 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784965', 'tblTempUsageDetail_20' ) end [2025-03-28 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784965', 'tblTempVendorCDR_20' ) start [2025-03-28 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784965', 'tblTempVendorCDR_20' ) end [2025-03-28 23:48:19] Production.INFO: ProcessCDR(1,14784965,1,1,2) [2025-03-28 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784965', 'tblTempUsageDetail_20' ) start [2025-03-28 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784965', 'tblTempUsageDetail_20' ) end [2025-03-28 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:48:22] Production.INFO: ==28103== Releasing lock... [2025-03-28 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:48:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-28 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:49:05 [end_date_ymd] => 2025-03-28 23:49:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:49:05' and `end` < '2025-03-28 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-28 23:49:18] Production.INFO: count ==1579 [2025-03-28 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:49:05 - End Time 2025-03-28 23:49:05 [2025-03-28 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784970', 'tblTempUsageDetail_20' ) start [2025-03-28 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784970', 'tblTempUsageDetail_20' ) end [2025-03-28 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784970', 'tblTempVendorCDR_20' ) start [2025-03-28 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784970', 'tblTempVendorCDR_20' ) end [2025-03-28 23:49:18] Production.INFO: ProcessCDR(1,14784970,1,1,2) [2025-03-28 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784970', 'tblTempUsageDetail_20' ) start [2025-03-28 23:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784970', 'tblTempUsageDetail_20' ) end [2025-03-28 23:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:49:24] Production.INFO: ==28180== Releasing lock... [2025-03-28 23:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:49:24] Production.INFO: 40 MB #Memory Used# [2025-03-28 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:50:06 [end_date_ymd] => 2025-03-28 23:50:06 [RateCDR] => 1 ) [2025-03-28 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-28 20:50:06' and `end` < '2025-03-28 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-28 23:50:18] Production.INFO: count ==1582 [2025-03-28 23:50:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:50:06 - End Time 2025-03-28 23:50:06 [2025-03-28 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784976', 'tblTempUsageDetail_20' ) start [2025-03-28 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784976', 'tblTempUsageDetail_20' ) end [2025-03-28 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784976', 'tblTempVendorCDR_20' ) start [2025-03-28 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784976', 'tblTempVendorCDR_20' ) end [2025-03-28 23:50:19] Production.INFO: ProcessCDR(1,14784976,1,1,2) [2025-03-28 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784976', 'tblTempUsageDetail_20' ) start [2025-03-28 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784976', 'tblTempUsageDetail_20' ) end [2025-03-28 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:50:23] Production.INFO: ==28257== Releasing lock... [2025-03-28 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:50:23] Production.INFO: 40 MB #Memory Used# [2025-03-28 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:51:06 [end_date_ymd] => 2025-03-28 23:51:06 [RateCDR] => 1 ) [2025-03-28 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-28 20:51:06' and `end` < '2025-03-28 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-28 23:51:18] Production.INFO: count ==1522 [2025-03-28 23:51:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:51:06 - End Time 2025-03-28 23:51:06 [2025-03-28 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784981', 'tblTempUsageDetail_20' ) start [2025-03-28 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784981', 'tblTempUsageDetail_20' ) end [2025-03-28 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784981', 'tblTempVendorCDR_20' ) start [2025-03-28 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784981', 'tblTempVendorCDR_20' ) end [2025-03-28 23:51:19] Production.INFO: ProcessCDR(1,14784981,1,1,2) [2025-03-28 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784981', 'tblTempUsageDetail_20' ) start [2025-03-28 23:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784981', 'tblTempUsageDetail_20' ) end [2025-03-28 23:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:51:24] Production.INFO: ==28331== Releasing lock... [2025-03-28 23:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:51:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-28 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:52:05 [end_date_ymd] => 2025-03-28 23:52:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:52:05' and `end` < '2025-03-28 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-28 23:52:17] Production.INFO: count ==1517 [2025-03-28 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:52:05 - End Time 2025-03-28 23:52:05 [2025-03-28 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784986', 'tblTempUsageDetail_20' ) start [2025-03-28 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784986', 'tblTempUsageDetail_20' ) end [2025-03-28 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784986', 'tblTempVendorCDR_20' ) start [2025-03-28 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784986', 'tblTempVendorCDR_20' ) end [2025-03-28 23:52:18] Production.INFO: ProcessCDR(1,14784986,1,1,2) [2025-03-28 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784986', 'tblTempUsageDetail_20' ) start [2025-03-28 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784986', 'tblTempUsageDetail_20' ) end [2025-03-28 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:52:21] Production.INFO: ==28409== Releasing lock... [2025-03-28 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:52:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-28 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:53:05 [end_date_ymd] => 2025-03-28 23:53:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:53:05' and `end` < '2025-03-28 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-28 23:53:18] Production.INFO: count ==1516 [2025-03-28 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:53:05 - End Time 2025-03-28 23:53:05 [2025-03-28 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784991', 'tblTempUsageDetail_20' ) start [2025-03-28 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784991', 'tblTempUsageDetail_20' ) end [2025-03-28 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784991', 'tblTempVendorCDR_20' ) start [2025-03-28 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784991', 'tblTempVendorCDR_20' ) end [2025-03-28 23:53:19] Production.INFO: ProcessCDR(1,14784991,1,1,2) [2025-03-28 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784991', 'tblTempUsageDetail_20' ) start [2025-03-28 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784991', 'tblTempUsageDetail_20' ) end [2025-03-28 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:53:22] Production.INFO: ==28524== Releasing lock... [2025-03-28 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:53:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-28 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:54:05 [end_date_ymd] => 2025-03-28 23:54:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:54:05' and `end` < '2025-03-28 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-28 23:54:18] Production.INFO: count ==1514 [2025-03-28 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:54:05 - End Time 2025-03-28 23:54:05 [2025-03-28 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784996', 'tblTempUsageDetail_20' ) start [2025-03-28 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14784996', 'tblTempUsageDetail_20' ) end [2025-03-28 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784996', 'tblTempVendorCDR_20' ) start [2025-03-28 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14784996', 'tblTempVendorCDR_20' ) end [2025-03-28 23:54:18] Production.INFO: ProcessCDR(1,14784996,1,1,2) [2025-03-28 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14784996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14784996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14784996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14784996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784996', 'tblTempUsageDetail_20' ) start [2025-03-28 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14784996', 'tblTempUsageDetail_20' ) end [2025-03-28 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:54:22] Production.INFO: ==28599== Releasing lock... [2025-03-28 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:54:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-28 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:55:05 [end_date_ymd] => 2025-03-28 23:55:05 [RateCDR] => 1 ) [2025-03-28 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-28 20:55:05' and `end` < '2025-03-28 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-28 23:55:18] Production.INFO: count ==1522 [2025-03-28 23:55:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:55:05 - End Time 2025-03-28 23:55:05 [2025-03-28 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785001', 'tblTempUsageDetail_20' ) start [2025-03-28 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785001', 'tblTempUsageDetail_20' ) end [2025-03-28 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785001', 'tblTempVendorCDR_20' ) start [2025-03-28 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785001', 'tblTempVendorCDR_20' ) end [2025-03-28 23:55:19] Production.INFO: ProcessCDR(1,14785001,1,1,2) [2025-03-28 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785001', 'tblTempUsageDetail_20' ) start [2025-03-28 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785001', 'tblTempUsageDetail_20' ) end [2025-03-28 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:55:22] Production.INFO: ==28678== Releasing lock... [2025-03-28 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:55:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-28 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:56:06 [end_date_ymd] => 2025-03-28 23:56:06 [RateCDR] => 1 ) [2025-03-28 23:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:56:06' and `end` < '2025-03-28 23:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:56:19] Production.INFO: count ==1528 [2025-03-28 23:56:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:56:06 - End Time 2025-03-28 23:56:06 [2025-03-28 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785006', 'tblTempUsageDetail_20' ) start [2025-03-28 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785006', 'tblTempUsageDetail_20' ) end [2025-03-28 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785006', 'tblTempVendorCDR_20' ) start [2025-03-28 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785006', 'tblTempVendorCDR_20' ) end [2025-03-28 23:56:19] Production.INFO: ProcessCDR(1,14785006,1,1,2) [2025-03-28 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785006', 'tblTempUsageDetail_20' ) start [2025-03-28 23:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785006', 'tblTempUsageDetail_20' ) end [2025-03-28 23:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:56:23] Production.INFO: ==28757== Releasing lock... [2025-03-28 23:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:56:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-28 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:57:05 [end_date_ymd] => 2025-03-28 23:57:05 [RateCDR] => 1 ) [2025-03-28 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:57:05' and `end` < '2025-03-28 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:57:18] Production.INFO: count ==1541 [2025-03-28 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-28 20:57:05 - End Time 2025-03-28 23:57:05 [2025-03-28 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785011', 'tblTempUsageDetail_20' ) start [2025-03-28 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785011', 'tblTempUsageDetail_20' ) end [2025-03-28 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785011', 'tblTempVendorCDR_20' ) start [2025-03-28 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785011', 'tblTempVendorCDR_20' ) end [2025-03-28 23:57:18] Production.INFO: ProcessCDR(1,14785011,1,1,2) [2025-03-28 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785011', 'tblTempUsageDetail_20' ) start [2025-03-28 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785011', 'tblTempUsageDetail_20' ) end [2025-03-28 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:57:22] Production.INFO: ==28833== Releasing lock... [2025-03-28 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:57:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-28 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:58:06 [end_date_ymd] => 2025-03-28 23:58:06 [RateCDR] => 1 ) [2025-03-28 23:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:58:06' and `end` < '2025-03-28 23:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:58:19] Production.INFO: count ==1539 [2025-03-28 23:58:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:58:06 - End Time 2025-03-28 23:58:06 [2025-03-28 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785016', 'tblTempUsageDetail_20' ) start [2025-03-28 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785016', 'tblTempUsageDetail_20' ) end [2025-03-28 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785016', 'tblTempVendorCDR_20' ) start [2025-03-28 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785016', 'tblTempVendorCDR_20' ) end [2025-03-28 23:58:19] Production.INFO: ProcessCDR(1,14785016,1,1,2) [2025-03-28 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785016', 'tblTempUsageDetail_20' ) start [2025-03-28 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785016', 'tblTempUsageDetail_20' ) end [2025-03-28 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:58:23] Production.INFO: ==28909== Releasing lock... [2025-03-28 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:58:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-28 23:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-28 20:59:06 [end_date_ymd] => 2025-03-28 23:59:06 [RateCDR] => 1 ) [2025-03-28 23:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-28 20:59:06' and `end` < '2025-03-28 23:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-28 23:59:18] Production.INFO: count ==1535 [2025-03-28 23:59:19] Production.ERROR: pbx CDR StartTime 2025-03-28 20:59:06 - End Time 2025-03-28 23:59:06 [2025-03-28 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-28 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785021', 'tblTempUsageDetail_20' ) start [2025-03-28 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14785021', 'tblTempUsageDetail_20' ) end [2025-03-28 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785021', 'tblTempVendorCDR_20' ) start [2025-03-28 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14785021', 'tblTempVendorCDR_20' ) end [2025-03-28 23:59:19] Production.INFO: ProcessCDR(1,14785021,1,1,2) [2025-03-28 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14785021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14785021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-28 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14785021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14785021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-28 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785021', 'tblTempUsageDetail_20' ) start [2025-03-28 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14785021', 'tblTempUsageDetail_20' ) end [2025-03-28 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-28 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-28 23:59:22] Production.INFO: ==28983== Releasing lock... [2025-03-28 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-28 23:59:22] Production.INFO: 39.5 MB #Memory Used#